org.openanzo.server.repository.rdb
Class RepositoryConnectionProperties

java.lang.Object
  extended by org.openanzo.server.repository.rdb.RepositoryConnectionProperties

public class RepositoryConnectionProperties
extends java.lang.Object

Configuration properties for the RDB database connection.

Author:
Generated Source from org.openanzo.utils.properties.jet

Field Summary
static java.lang.String KEY_DATABASE_CLEAR
          Key for property "org.openanzo.repository.database.clearOnLoad" Flag for whether or not the database should be cleared when the database is first loaded.
static java.lang.String KEY_DATABASE_CONTAINER_NAME
          Key for property "org.openanzo.repository.database.containerName" Unique URI to name container of statements and named graphs.
static java.lang.String KEY_DATABASE_DRIVER
          Key for property "org.openanzo.repository.database.driver" JDBC driver class name.
static java.lang.String KEY_DATABASE_FILE_LOCATION
          Key for property "org.openanzo.repository.database.fileLocation" Local directory path from where file based database will be loaded.
static java.lang.String KEY_DATABASE_MAX_INDEX_KEY_LENGTH
          Key for property "org.openanzo.repository.database.maxIndexKeyLength" The max length of an index Examples: This property is automatically set based on the database type.
static java.lang.String KEY_DATABASE_MAX_LONG_OBJECT_LENGTH
          Key for property "org.openanzo.repository.database.maxLongObjectLength" The max length of a node's value before using the long table.
static java.lang.String KEY_DATABASE_MAX_TABLENAME_LENGTH
          Key for property "org.openanzo.repository.database.maxTablenameLength" Max length of table names Examples: This property is automatically set based on the database type.
static java.lang.String KEY_DATABASE_NODE_CACHE_SIZE
          Key for property "org.openanzo.repository.database.nodeCacheSize" Size of node cache Examples: Default is 25000
static java.lang.String KEY_DATABASE_PASSWORD
          Key for property "org.openanzo.repository.database.password" Password for the connection to the database.
static java.lang.String KEY_DATABASE_QUOTE_CHAR
          Key for property "org.openanzo.repository.database.quotechar" Quote char used in queries Examples: This property is automatically set based on the database type.
static java.lang.String KEY_DATABASE_SESSION_PREFIX
          Key for property "org.openanzo.repository.database.sessionPrefix" Prefix prepended to start of temporary tables Examples: This property is automatically set based on the database type.
static java.lang.String KEY_DATABASE_SQL_FILENAME
          Key for property "org.openanzo.repository.database.sqlfile" Path to file containing table, index definitions as well as text of prepared statements.
static java.lang.String KEY_DATABASE_SUPPORTS_FULLOUTER_JOINS
          Key for property "org.openanzo.repository.database.supportsFullouterJoins" Does the database support full outer joins Examples: This property is automatically set based on the database type.
static java.lang.String KEY_DATABASE_SUPPORTS_SEQUENCES
          Key for property "org.openanzo.repository.database.supportsSequences" Does the database support sequences Examples: This property is automatically set based on the database type.
static java.lang.String KEY_DATABASE_SUPPORTS_TABLELOCKS
          Key for property "org.openanzo.repository.database.supportsTableLocks" Does the database support table locks Examples: This property is automatically set based on the database type.
static java.lang.String KEY_DATABASE_SUPPORTS_TABLEUNLOCKS
          Key for property "org.openanzo.repository.database.supportsTableUnLocks" Does the database support explicit table unlocks Examples: This property is automatically set based on the database type.
static java.lang.String KEY_DATABASE_SUPPORTS_WITH_CLAUSE
          Key for property "org.openanzo.repository.database.supportsWithClause" Does the database support the WITH clause Examples: This property is automatically set based on the database type.
static java.lang.String KEY_DATABASE_TYPE
          Key for property "org.openanzo.repository.database.type" Anzo database type name.
static java.lang.String KEY_DATABASE_UNIQUE_TEMP_NAMES
          Key for property "org.openanzo.repository.database.uniqueTempNames" Does the database disallow multiple references to the same temporary table within a query.
static java.lang.String KEY_DATABASE_URL
          Key for property "org.openanzo.repository.database.url" The jdbc URL for the connection to the database.
static java.lang.String KEY_DATABASE_URL_POSTFIX
          Key for property "org.openanzo.repository.database.url.postfix" String appended to the jdbc URLs Examples: ;create=true;upgrade=true
static java.lang.String KEY_DATABASE_URL_PREFIX
          Key for property "org.openanzo.repository.database.url.prefix" String prepended to the jdbc URLs.
static java.lang.String KEY_DATABASE_USE_TEMP_FIND
          Key for property "org.openanzo.repository.database.useTempTableFind" Can database use temporary tables for find operations Examples: This property is automatically set based on the database type.
static java.lang.String KEY_DATABASE_USE_TEMP_INSERT
          Key for property "org.openanzo.repository.database.useTempTableInsert" Can database use temporary tables for insert operations Examples: This property is automatically set based on the database type.
static java.lang.String KEY_DATABASE_USER
          Key for property "org.openanzo.repository.database.user" Login id for the connection to the database.
static java.lang.String KEY_DATABASE_USES_UPPERCASE
          Key for property "org.openanzo.repository.database.usesUppercase" Does the database use all uppercase strings for table and column names Examples: This property is automatically set based on the database type.
static java.lang.String KEY_DATABASE_USES_UPPERCASE_TEMPTABLES
          Key for property "org.openanzo.repository.database.usesUppercaseTempTables" Does the database use all uppercase strings for temporary tables and column names Examples: This property is automatically set based on the database type.
 
Constructor Summary
RepositoryConnectionProperties()
           
 
Method Summary
static boolean getClearOnLoad(java.util.Properties properties)
          Get KEY_DATABASE_CLEAR property from properties
static java.lang.String getContainerName(java.util.Properties properties)
          Get KEY_DATABASE_CONTAINER_NAME property from properties
static java.lang.String getDriver(java.util.Properties properties)
          Get KEY_DATABASE_DRIVER property from properties
static java.lang.String getFileLocation(java.util.Properties properties)
          Get KEY_DATABASE_FILE_LOCATION property from properties
static int getMaxIndexKeyLength(java.util.Properties properties)
          Get KEY_DATABASE_MAX_INDEX_KEY_LENGTH property from properties
static int getMaxLongObjectLength(java.util.Properties properties)
          Get KEY_DATABASE_MAX_LONG_OBJECT_LENGTH property from properties
static int getMaxTablenameLength(java.util.Properties properties)
          Get KEY_DATABASE_MAX_TABLENAME_LENGTH property from properties
static int getNodeCacheSize(java.util.Properties properties, int defaultValue)
          Get KEY_DATABASE_NODE_CACHE_SIZE property from properties
static java.lang.String getPassword(java.util.Properties properties)
          Get KEY_DATABASE_PASSWORD property from properties
static java.lang.String getQuotechar(java.util.Properties properties)
          Get KEY_DATABASE_QUOTE_CHAR property from properties
static java.lang.String getSessionPrefix(java.util.Properties properties)
          Get KEY_DATABASE_SESSION_PREFIX property from properties
static java.lang.String getSqlfile(java.util.Properties properties)
          Get KEY_DATABASE_SQL_FILENAME property from properties
static boolean getSupportsFullouterJoins(java.util.Properties properties)
          Get KEY_DATABASE_SUPPORTS_FULLOUTER_JOINS property from properties
static boolean getSupportsSequences(java.util.Properties properties)
          Get KEY_DATABASE_SUPPORTS_SEQUENCES property from properties
static boolean getSupportsTableLocks(java.util.Properties properties)
          Get KEY_DATABASE_SUPPORTS_TABLELOCKS property from properties
static boolean getSupportsTableUnLocks(java.util.Properties properties)
          Get KEY_DATABASE_SUPPORTS_TABLEUNLOCKS property from properties
static boolean getSupportsWithClause(java.util.Properties properties)
          Get KEY_DATABASE_SUPPORTS_WITH_CLAUSE property from properties
static java.lang.String getType(java.util.Properties properties)
          Get KEY_DATABASE_TYPE property from properties
static boolean getUniqueTempNames(java.util.Properties properties)
          Get KEY_DATABASE_UNIQUE_TEMP_NAMES property from properties
static java.lang.String getUrl(java.util.Properties properties)
          Get KEY_DATABASE_URL property from properties
static java.lang.String getUrlPostfix(java.util.Properties properties)
          Get KEY_DATABASE_URL_POSTFIX property from properties
static java.lang.String getUrlPrefix(java.util.Properties properties)
          Get KEY_DATABASE_URL_PREFIX property from properties
static java.lang.String getUser(java.util.Properties properties)
          Get KEY_DATABASE_USER property from properties
static boolean getUsesUppercase(java.util.Properties properties)
          Get KEY_DATABASE_USES_UPPERCASE property from properties
static boolean getUsesUppercaseTempTables(java.util.Properties properties)
          Get KEY_DATABASE_USES_UPPERCASE_TEMPTABLES property from properties
static boolean getUseTempTableFind(java.util.Properties properties)
          Get KEY_DATABASE_USE_TEMP_FIND property from properties
static boolean getUseTempTableInsert(java.util.Properties properties)
          Get KEY_DATABASE_USE_TEMP_INSERT property from properties
static void setClearOnLoad(java.util.Properties properties, boolean clearOnLoad)
          Set KEY_DATABASE_CLEAR property to clearOnLoad in properties
static void setContainerName(java.util.Properties properties, java.lang.String containerName)
          Set KEY_DATABASE_CONTAINER_NAME property to containerName in properties
static void setDriver(java.util.Properties properties, java.lang.String driver)
          Set KEY_DATABASE_DRIVER property to driver in properties
static void setFileLocation(java.util.Properties properties, java.lang.String fileLocation)
          Set KEY_DATABASE_FILE_LOCATION property to fileLocation in properties
static void setMaxIndexKeyLength(java.util.Properties properties, int maxIndexKeyLength)
          Set KEY_DATABASE_MAX_INDEX_KEY_LENGTH property to maxIndexKeyLength in properties
static void setMaxLongObjectLength(java.util.Properties properties, int maxLongObjectLength)
          Set KEY_DATABASE_MAX_LONG_OBJECT_LENGTH property to maxLongObjectLength in properties
static void setMaxTablenameLength(java.util.Properties properties, int maxTablenameLength)
          Set KEY_DATABASE_MAX_TABLENAME_LENGTH property to maxTablenameLength in properties
static void setNodeCacheSize(java.util.Properties properties, int nodeCacheSize)
          Set KEY_DATABASE_NODE_CACHE_SIZE property to nodeCacheSize in properties
static void setPassword(java.util.Properties properties, java.lang.String password)
          Set KEY_DATABASE_PASSWORD property to password in properties
static void setQuotechar(java.util.Properties properties, java.lang.String quotechar)
          Set KEY_DATABASE_QUOTE_CHAR property to quotechar in properties
static void setSessionPrefix(java.util.Properties properties, java.lang.String sessionPrefix)
          Set KEY_DATABASE_SESSION_PREFIX property to sessionPrefix in properties
static void setSqlfile(java.util.Properties properties, java.lang.String sqlfile)
          Set KEY_DATABASE_SQL_FILENAME property to sqlfile in properties
static void setSupportsFullouterJoins(java.util.Properties properties, boolean supportsFullouterJoins)
          Set KEY_DATABASE_SUPPORTS_FULLOUTER_JOINS property to supportsFullouterJoins in properties
static void setSupportsSequences(java.util.Properties properties, boolean supportsSequences)
          Set KEY_DATABASE_SUPPORTS_SEQUENCES property to supportsSequences in properties
static void setSupportsTableLocks(java.util.Properties properties, boolean supportsTableLocks)
          Set KEY_DATABASE_SUPPORTS_TABLELOCKS property to supportsTableLocks in properties
static void setSupportsTableUnLocks(java.util.Properties properties, boolean supportsTableUnLocks)
          Set KEY_DATABASE_SUPPORTS_TABLEUNLOCKS property to supportsTableUnLocks in properties
static void setSupportsWithClause(java.util.Properties properties, boolean supportsWithClause)
          Set KEY_DATABASE_SUPPORTS_WITH_CLAUSE property to supportsWithClause in properties
static void setType(java.util.Properties properties, java.lang.String type)
          Set KEY_DATABASE_TYPE property to type in properties
static void setUniqueTempNames(java.util.Properties properties, boolean uniqueTempNames)
          Set KEY_DATABASE_UNIQUE_TEMP_NAMES property to uniqueTempNames in properties
static void setUrl(java.util.Properties properties, java.lang.String url)
          Set KEY_DATABASE_URL property to url in properties
static void setUrlPostfix(java.util.Properties properties, java.lang.String urlPostfix)
          Set KEY_DATABASE_URL_POSTFIX property to url.postfix in properties
static void setUrlPrefix(java.util.Properties properties, java.lang.String urlPrefix)
          Set KEY_DATABASE_URL_PREFIX property to url.prefix in properties
static void setUser(java.util.Properties properties, java.lang.String user)
          Set KEY_DATABASE_USER property to user in properties
static void setUsesUppercase(java.util.Properties properties, boolean usesUppercase)
          Set KEY_DATABASE_USES_UPPERCASE property to usesUppercase in properties
static void setUsesUppercaseTempTables(java.util.Properties properties, boolean usesUppercaseTempTables)
          Set KEY_DATABASE_USES_UPPERCASE_TEMPTABLES property to usesUppercaseTempTables in properties
static void setUseTempTableFind(java.util.Properties properties, boolean useTempTableFind)
          Set KEY_DATABASE_USE_TEMP_FIND property to useTempTableFind in properties
static void setUseTempTableInsert(java.util.Properties properties, boolean useTempTableInsert)
          Set KEY_DATABASE_USE_TEMP_INSERT property to useTempTableInsert in properties
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY_DATABASE_URL

public static final java.lang.String KEY_DATABASE_URL
Key for property "org.openanzo.repository.database.url" The jdbc URL for the connection to the database.
  • Server:This is the URL that the server uses to connect to the database
  • Embedded:Same as server. Note: This property does not affect local persistence when in embedded mode.
  • Examples: On DB2: jdbc:db2://localhost:50000/anzo On Oracle: jdbc:oracle:thin:@localhost:1521 On Derby: jdbc:derby:/tmp/anzoDerby;create=true;upgrade=true On PostgreSQL: jdbc:postgresql:anzo On HSQL: jdbc:hsqldb:mem:anzodb On MySQL: jdbc:mysql://localhost/anzo

    See Also:
    Constant Field Values

    KEY_DATABASE_URL_PREFIX

    public static final java.lang.String KEY_DATABASE_URL_PREFIX
    Key for property "org.openanzo.repository.database.url.prefix" String prepended to the jdbc URLs. Examples: jdbc:derby:

    See Also:
    Constant Field Values

    KEY_DATABASE_URL_POSTFIX

    public static final java.lang.String KEY_DATABASE_URL_POSTFIX
    Key for property "org.openanzo.repository.database.url.postfix" String appended to the jdbc URLs Examples: ;create=true;upgrade=true

    See Also:
    Constant Field Values

    KEY_DATABASE_TYPE

    public static final java.lang.String KEY_DATABASE_TYPE
    Key for property "org.openanzo.repository.database.type" Anzo database type name.
  • Server:Type of database to which the server is connecting. This is used to setup default properties for the database configuration.
  • Embedded:Same as server. Note: This property does not affect local persistence when in embedded mode.
  • Examples: For DB2: ServerDB2 For Oracle: ServerOracle For Derby: ServerDerby For PostgreSQL: ServerPostgres For HSQL: ServerHSQL For MySQL: ServerMySQL

    See Also:
    Constant Field Values

    KEY_DATABASE_DRIVER

    public static final java.lang.String KEY_DATABASE_DRIVER
    Key for property "org.openanzo.repository.database.driver" JDBC driver class name. Only needed if replacing the default driver for the given database type. Examples: For using the derby network client driver: org.apache.derby.jdbc.ClientDriver

    See Also:
    Constant Field Values

    KEY_DATABASE_USER

    public static final java.lang.String KEY_DATABASE_USER
    Key for property "org.openanzo.repository.database.user" Login id for the connection to the database.
  • Server:This is the login id that the server uses to connect to the database.
  • Embedded:Same as server. Note: This property does not affect local persistence when in embedded mode.
  • Examples: For DB2: db2inst1 For Oracle: anzo For Derby: anzo For PostgreSQL: anzo For HSQL: sa For MySQL: anzo

    See Also:
    Constant Field Values

    KEY_DATABASE_PASSWORD

    public static final java.lang.String KEY_DATABASE_PASSWORD
    Key for property "org.openanzo.repository.database.password" Password for the connection to the database.
  • Server:This is the password that the server uses to connect to the database.
  • Embedded:Same as server. Note: This property does not affect local persistence when in embedded mode.
  • Examples: For DB2: password For Oracle: anzo For Derby: (don't specify a password) For PostgreSQL: anzo For HSQL: (don't specify a password) For MySQL: anzo

    See Also:
    Constant Field Values

    KEY_DATABASE_FILE_LOCATION

    public static final java.lang.String KEY_DATABASE_FILE_LOCATION
    Key for property "org.openanzo.repository.database.fileLocation" Local directory path from where file based database will be loaded.
  • Server:Not Used
  • Embedded:Same as server. Note: This property does not affect local persistence when in embedded mode.
  • Examples: For Derby: /tmp/anzoDerby

    See Also:
    Constant Field Values

    KEY_DATABASE_CONTAINER_NAME

    public static final java.lang.String KEY_DATABASE_CONTAINER_NAME
    Key for property "org.openanzo.repository.database.containerName" Unique URI to name container of statements and named graphs.
  • Server:Not Currently Used
  • Embedded:Same as server. Note: This property does not affect local persistence when in embedded mode.
  • Examples: http://openanzo.org/container1

    See Also:
    Constant Field Values

    KEY_DATABASE_CLEAR

    public static final java.lang.String KEY_DATABASE_CLEAR
    Key for property "org.openanzo.repository.database.clearOnLoad" Flag for whether or not the database should be cleared when the database is first loaded.
  • Server:Clear all the content from the database when the server starts.
  • Embedded:Same as server. Note: This property does not affect local persistence when in embedded mode.
  • See Also:
    Constant Field Values

    KEY_DATABASE_SQL_FILENAME

    public static final java.lang.String KEY_DATABASE_SQL_FILENAME
    Key for property "org.openanzo.repository.database.sqlfile" Path to file containing table, index definitions as well as text of prepared statements. Examples: This property is automatically set based on the database type. You only need to change this property if you do not want to use the default for you database.

    See Also:
    Constant Field Values

    KEY_DATABASE_QUOTE_CHAR

    public static final java.lang.String KEY_DATABASE_QUOTE_CHAR
    Key for property "org.openanzo.repository.database.quotechar" Quote char used in queries Examples: This property is automatically set based on the database type. You only need to change this property if you do not want to use the default for you database.

    See Also:
    Constant Field Values

    KEY_DATABASE_MAX_TABLENAME_LENGTH

    public static final java.lang.String KEY_DATABASE_MAX_TABLENAME_LENGTH
    Key for property "org.openanzo.repository.database.maxTablenameLength" Max length of table names Examples: This property is automatically set based on the database type. You only need to change this property if you do not want to use the default for you database.

    See Also:
    Constant Field Values

    KEY_DATABASE_USE_TEMP_INSERT

    public static final java.lang.String KEY_DATABASE_USE_TEMP_INSERT
    Key for property "org.openanzo.repository.database.useTempTableInsert" Can database use temporary tables for insert operations Examples: This property is automatically set based on the database type. You only need to change this property if you do not want to use the default for you database.

    See Also:
    Constant Field Values

    KEY_DATABASE_USE_TEMP_FIND

    public static final java.lang.String KEY_DATABASE_USE_TEMP_FIND
    Key for property "org.openanzo.repository.database.useTempTableFind" Can database use temporary tables for find operations Examples: This property is automatically set based on the database type. You only need to change this property if you do not want to use the default for you database.

    See Also:
    Constant Field Values

    KEY_DATABASE_UNIQUE_TEMP_NAMES

    public static final java.lang.String KEY_DATABASE_UNIQUE_TEMP_NAMES
    Key for property "org.openanzo.repository.database.uniqueTempNames" Does the database disallow multiple references to the same temporary table within a query. Examples: This property is automatically set based on the database type. You only need to change this property if you do not want to use the default for you database.

    See Also:
    Constant Field Values

    KEY_DATABASE_SUPPORTS_SEQUENCES

    public static final java.lang.String KEY_DATABASE_SUPPORTS_SEQUENCES
    Key for property "org.openanzo.repository.database.supportsSequences" Does the database support sequences Examples: This property is automatically set based on the database type. You only need to change this property if you do not want to use the default for you database.

    See Also:
    Constant Field Values

    KEY_DATABASE_SUPPORTS_FULLOUTER_JOINS

    public static final java.lang.String KEY_DATABASE_SUPPORTS_FULLOUTER_JOINS
    Key for property "org.openanzo.repository.database.supportsFullouterJoins" Does the database support full outer joins Examples: This property is automatically set based on the database type. You only need to change this property if you do not want to use the default for you database.

    See Also:
    Constant Field Values

    KEY_DATABASE_SUPPORTS_WITH_CLAUSE

    public static final java.lang.String KEY_DATABASE_SUPPORTS_WITH_CLAUSE
    Key for property "org.openanzo.repository.database.supportsWithClause" Does the database support the WITH clause Examples: This property is automatically set based on the database type. You only need to change this property if you do not want to use the default for you database.

    See Also:
    Constant Field Values

    KEY_DATABASE_MAX_INDEX_KEY_LENGTH

    public static final java.lang.String KEY_DATABASE_MAX_INDEX_KEY_LENGTH
    Key for property "org.openanzo.repository.database.maxIndexKeyLength" The max length of an index Examples: This property is automatically set based on the database type. You only need to change this property if you do not want to use the default for you database.

    See Also:
    Constant Field Values

    KEY_DATABASE_MAX_LONG_OBJECT_LENGTH

    public static final java.lang.String KEY_DATABASE_MAX_LONG_OBJECT_LENGTH
    Key for property "org.openanzo.repository.database.maxLongObjectLength" The max length of a node's value before using the long table. Examples: This property is automatically set based on the database type. You only need to change this property if you do not want to use the default for you database.

    See Also:
    Constant Field Values

    KEY_DATABASE_USES_UPPERCASE

    public static final java.lang.String KEY_DATABASE_USES_UPPERCASE
    Key for property "org.openanzo.repository.database.usesUppercase" Does the database use all uppercase strings for table and column names Examples: This property is automatically set based on the database type. You only need to change this property if you do not want to use the default for you database.

    See Also:
    Constant Field Values

    KEY_DATABASE_USES_UPPERCASE_TEMPTABLES

    public static final java.lang.String KEY_DATABASE_USES_UPPERCASE_TEMPTABLES
    Key for property "org.openanzo.repository.database.usesUppercaseTempTables" Does the database use all uppercase strings for temporary tables and column names Examples: This property is automatically set based on the database type. You only need to change this property if you do not want to use the default for you database.

    See Also:
    Constant Field Values

    KEY_DATABASE_SESSION_PREFIX

    public static final java.lang.String KEY_DATABASE_SESSION_PREFIX
    Key for property "org.openanzo.repository.database.sessionPrefix" Prefix prepended to start of temporary tables Examples: This property is automatically set based on the database type. You only need to change this property if you do not want to use the default for you database.

    See Also:
    Constant Field Values

    KEY_DATABASE_SUPPORTS_TABLELOCKS

    public static final java.lang.String KEY_DATABASE_SUPPORTS_TABLELOCKS
    Key for property "org.openanzo.repository.database.supportsTableLocks" Does the database support table locks Examples: This property is automatically set based on the database type. You only need to change this property if you do not want to use the default for you database.

    See Also:
    Constant Field Values

    KEY_DATABASE_SUPPORTS_TABLEUNLOCKS

    public static final java.lang.String KEY_DATABASE_SUPPORTS_TABLEUNLOCKS
    Key for property "org.openanzo.repository.database.supportsTableUnLocks" Does the database support explicit table unlocks Examples: This property is automatically set based on the database type. You only need to change this property if you do not want to use the default for you database.

    See Also:
    Constant Field Values

    KEY_DATABASE_NODE_CACHE_SIZE

    public static final java.lang.String KEY_DATABASE_NODE_CACHE_SIZE
    Key for property "org.openanzo.repository.database.nodeCacheSize" Size of node cache Examples: Default is 25000

    See Also:
    Constant Field Values
    Constructor Detail

    RepositoryConnectionProperties

    public RepositoryConnectionProperties()
    Method Detail

    getUrl

    public static java.lang.String getUrl(java.util.Properties properties)
    Get KEY_DATABASE_URL property from properties

    Parameters:
    properties - containing configuration data
    Returns:
    value of KEY_DATABASE_URL if not present

    setUrl

    public static void setUrl(java.util.Properties properties,
                              java.lang.String url)
    Set KEY_DATABASE_URL property to url in properties

    Parameters:
    properties - containing configuration data
    url - value for url

    getUrlPrefix

    public static java.lang.String getUrlPrefix(java.util.Properties properties)
    Get KEY_DATABASE_URL_PREFIX property from properties

    Parameters:
    properties - containing configuration data
    Returns:
    value of KEY_DATABASE_URL_PREFIX if not present

    setUrlPrefix

    public static void setUrlPrefix(java.util.Properties properties,
                                    java.lang.String urlPrefix)
    Set KEY_DATABASE_URL_PREFIX property to url.prefix in properties

    Parameters:
    properties - containing configuration data
    urlPrefix - value for url.prefix

    getUrlPostfix

    public static java.lang.String getUrlPostfix(java.util.Properties properties)
    Get KEY_DATABASE_URL_POSTFIX property from properties

    Parameters:
    properties - containing configuration data
    Returns:
    value of KEY_DATABASE_URL_POSTFIX if not present

    setUrlPostfix

    public static void setUrlPostfix(java.util.Properties properties,
                                     java.lang.String urlPostfix)
    Set KEY_DATABASE_URL_POSTFIX property to url.postfix in properties

    Parameters:
    properties - containing configuration data
    urlPostfix - value for url.postfix

    getType

    public static java.lang.String getType(java.util.Properties properties)
    Get KEY_DATABASE_TYPE property from properties

    Parameters:
    properties - containing configuration data
    Returns:
    value of KEY_DATABASE_TYPE if not present

    setType

    public static void setType(java.util.Properties properties,
                               java.lang.String type)
    Set KEY_DATABASE_TYPE property to type in properties

    Parameters:
    properties - containing configuration data
    type - value for type

    getDriver

    public static java.lang.String getDriver(java.util.Properties properties)
    Get KEY_DATABASE_DRIVER property from properties

    Parameters:
    properties - containing configuration data
    Returns:
    value of KEY_DATABASE_DRIVER if not present

    setDriver

    public static void setDriver(java.util.Properties properties,
                                 java.lang.String driver)
    Set KEY_DATABASE_DRIVER property to driver in properties

    Parameters:
    properties - containing configuration data
    driver - value for driver

    getUser

    public static java.lang.String getUser(java.util.Properties properties)
    Get KEY_DATABASE_USER property from properties

    Parameters:
    properties - containing configuration data
    Returns:
    value of KEY_DATABASE_USER if not present

    setUser

    public static void setUser(java.util.Properties properties,
                               java.lang.String user)
    Set KEY_DATABASE_USER property to user in properties

    Parameters:
    properties - containing configuration data
    user - value for user

    getPassword

    public static java.lang.String getPassword(java.util.Properties properties)
    Get KEY_DATABASE_PASSWORD property from properties

    Parameters:
    properties - containing configuration data
    Returns:
    value of KEY_DATABASE_PASSWORD if not present

    setPassword

    public static void setPassword(java.util.Properties properties,
                                   java.lang.String password)
    Set KEY_DATABASE_PASSWORD property to password in properties

    Parameters:
    properties - containing configuration data
    password - value for password

    getFileLocation

    public static java.lang.String getFileLocation(java.util.Properties properties)
    Get KEY_DATABASE_FILE_LOCATION property from properties

    Parameters:
    properties - containing configuration data
    Returns:
    value of KEY_DATABASE_FILE_LOCATION if not present

    setFileLocation

    public static void setFileLocation(java.util.Properties properties,
                                       java.lang.String fileLocation)
    Set KEY_DATABASE_FILE_LOCATION property to fileLocation in properties

    Parameters:
    properties - containing configuration data
    fileLocation - value for fileLocation

    getContainerName

    public static java.lang.String getContainerName(java.util.Properties properties)
    Get KEY_DATABASE_CONTAINER_NAME property from properties

    Parameters:
    properties - containing configuration data
    Returns:
    value of KEY_DATABASE_CONTAINER_NAME if not present

    setContainerName

    public static void setContainerName(java.util.Properties properties,
                                        java.lang.String containerName)
    Set KEY_DATABASE_CONTAINER_NAME property to containerName in properties

    Parameters:
    properties - containing configuration data
    containerName - value for containerName

    getClearOnLoad

    public static boolean getClearOnLoad(java.util.Properties properties)
    Get KEY_DATABASE_CLEAR property from properties

    Parameters:
    properties - containing configuration data
    Returns:
    value of KEY_DATABASE_CLEAR,or "false" if not present

    setClearOnLoad

    public static void setClearOnLoad(java.util.Properties properties,
                                      boolean clearOnLoad)
    Set KEY_DATABASE_CLEAR property to clearOnLoad in properties

    Parameters:
    properties - containing configuration data
    clearOnLoad - value for clearOnLoad

    getSqlfile

    public static java.lang.String getSqlfile(java.util.Properties properties)
    Get KEY_DATABASE_SQL_FILENAME property from properties

    Parameters:
    properties - containing configuration data
    Returns:
    value of KEY_DATABASE_SQL_FILENAME if not present

    setSqlfile

    public static void setSqlfile(java.util.Properties properties,
                                  java.lang.String sqlfile)
    Set KEY_DATABASE_SQL_FILENAME property to sqlfile in properties

    Parameters:
    properties - containing configuration data
    sqlfile - value for sqlfile

    getQuotechar

    public static java.lang.String getQuotechar(java.util.Properties properties)
    Get KEY_DATABASE_QUOTE_CHAR property from properties

    Parameters:
    properties - containing configuration data
    Returns:
    value of KEY_DATABASE_QUOTE_CHAR if not present

    setQuotechar

    public static void setQuotechar(java.util.Properties properties,
                                    java.lang.String quotechar)
    Set KEY_DATABASE_QUOTE_CHAR property to quotechar in properties

    Parameters:
    properties - containing configuration data
    quotechar - value for quotechar

    getMaxTablenameLength

    public static int getMaxTablenameLength(java.util.Properties properties)
    Get KEY_DATABASE_MAX_TABLENAME_LENGTH property from properties

    Parameters:
    properties - containing configuration data
    Returns:
    value of KEY_DATABASE_MAX_TABLENAME_LENGTH,or "64" if not present

    setMaxTablenameLength

    public static void setMaxTablenameLength(java.util.Properties properties,
                                             int maxTablenameLength)
    Set KEY_DATABASE_MAX_TABLENAME_LENGTH property to maxTablenameLength in properties

    Parameters:
    properties - containing configuration data
    maxTablenameLength - value for maxTablenameLength

    getUseTempTableInsert

    public static boolean getUseTempTableInsert(java.util.Properties properties)
    Get KEY_DATABASE_USE_TEMP_INSERT property from properties

    Parameters:
    properties - containing configuration data
    Returns:
    value of KEY_DATABASE_USE_TEMP_INSERT,or "false" if not present

    setUseTempTableInsert

    public static void setUseTempTableInsert(java.util.Properties properties,
                                             boolean useTempTableInsert)
    Set KEY_DATABASE_USE_TEMP_INSERT property to useTempTableInsert in properties

    Parameters:
    properties - containing configuration data
    useTempTableInsert - value for useTempTableInsert

    getUseTempTableFind

    public static boolean getUseTempTableFind(java.util.Properties properties)
    Get KEY_DATABASE_USE_TEMP_FIND property from properties

    Parameters:
    properties - containing configuration data
    Returns:
    value of KEY_DATABASE_USE_TEMP_FIND,or "false" if not present

    setUseTempTableFind

    public static void setUseTempTableFind(java.util.Properties properties,
                                           boolean useTempTableFind)
    Set KEY_DATABASE_USE_TEMP_FIND property to useTempTableFind in properties

    Parameters:
    properties - containing configuration data
    useTempTableFind - value for useTempTableFind

    getUniqueTempNames

    public static boolean getUniqueTempNames(java.util.Properties properties)
    Get KEY_DATABASE_UNIQUE_TEMP_NAMES property from properties

    Parameters:
    properties - containing configuration data
    Returns:
    value of KEY_DATABASE_UNIQUE_TEMP_NAMES,or "false" if not present

    setUniqueTempNames

    public static void setUniqueTempNames(java.util.Properties properties,
                                          boolean uniqueTempNames)
    Set KEY_DATABASE_UNIQUE_TEMP_NAMES property to uniqueTempNames in properties

    Parameters:
    properties - containing configuration data
    uniqueTempNames - value for uniqueTempNames

    getSupportsSequences

    public static boolean getSupportsSequences(java.util.Properties properties)
    Get KEY_DATABASE_SUPPORTS_SEQUENCES property from properties

    Parameters:
    properties - containing configuration data
    Returns:
    value of KEY_DATABASE_SUPPORTS_SEQUENCES,or "false" if not present

    setSupportsSequences

    public static void setSupportsSequences(java.util.Properties properties,
                                            boolean supportsSequences)
    Set KEY_DATABASE_SUPPORTS_SEQUENCES property to supportsSequences in properties

    Parameters:
    properties - containing configuration data
    supportsSequences - value for supportsSequences

    getSupportsFullouterJoins

    public static boolean getSupportsFullouterJoins(java.util.Properties properties)
    Get KEY_DATABASE_SUPPORTS_FULLOUTER_JOINS property from properties

    Parameters:
    properties - containing configuration data
    Returns:
    value of KEY_DATABASE_SUPPORTS_FULLOUTER_JOINS,or "false" if not present

    setSupportsFullouterJoins

    public static void setSupportsFullouterJoins(java.util.Properties properties,
                                                 boolean supportsFullouterJoins)
    Set KEY_DATABASE_SUPPORTS_FULLOUTER_JOINS property to supportsFullouterJoins in properties

    Parameters:
    properties - containing configuration data
    supportsFullouterJoins - value for supportsFullouterJoins

    getSupportsWithClause

    public static boolean getSupportsWithClause(java.util.Properties properties)
    Get KEY_DATABASE_SUPPORTS_WITH_CLAUSE property from properties

    Parameters:
    properties - containing configuration data
    Returns:
    value of KEY_DATABASE_SUPPORTS_WITH_CLAUSE,or "false" if not present

    setSupportsWithClause

    public static void setSupportsWithClause(java.util.Properties properties,
                                             boolean supportsWithClause)
    Set KEY_DATABASE_SUPPORTS_WITH_CLAUSE property to supportsWithClause in properties

    Parameters:
    properties - containing configuration data
    supportsWithClause - value for supportsWithClause

    getMaxIndexKeyLength

    public static int getMaxIndexKeyLength(java.util.Properties properties)
    Get KEY_DATABASE_MAX_INDEX_KEY_LENGTH property from properties

    Parameters:
    properties - containing configuration data
    Returns:
    value of KEY_DATABASE_MAX_INDEX_KEY_LENGTH,or "64" if not present

    setMaxIndexKeyLength

    public static void setMaxIndexKeyLength(java.util.Properties properties,
                                            int maxIndexKeyLength)
    Set KEY_DATABASE_MAX_INDEX_KEY_LENGTH property to maxIndexKeyLength in properties

    Parameters:
    properties - containing configuration data
    maxIndexKeyLength - value for maxIndexKeyLength

    getMaxLongObjectLength

    public static int getMaxLongObjectLength(java.util.Properties properties)
    Get KEY_DATABASE_MAX_LONG_OBJECT_LENGTH property from properties

    Parameters:
    properties - containing configuration data
    Returns:
    value of KEY_DATABASE_MAX_LONG_OBJECT_LENGTH,or "64" if not present

    setMaxLongObjectLength

    public static void setMaxLongObjectLength(java.util.Properties properties,
                                              int maxLongObjectLength)
    Set KEY_DATABASE_MAX_LONG_OBJECT_LENGTH property to maxLongObjectLength in properties

    Parameters:
    properties - containing configuration data
    maxLongObjectLength - value for maxLongObjectLength

    getUsesUppercase

    public static boolean getUsesUppercase(java.util.Properties properties)
    Get KEY_DATABASE_USES_UPPERCASE property from properties

    Parameters:
    properties - containing configuration data
    Returns:
    value of KEY_DATABASE_USES_UPPERCASE,or "false" if not present

    setUsesUppercase

    public static void setUsesUppercase(java.util.Properties properties,
                                        boolean usesUppercase)
    Set KEY_DATABASE_USES_UPPERCASE property to usesUppercase in properties

    Parameters:
    properties - containing configuration data
    usesUppercase - value for usesUppercase

    getUsesUppercaseTempTables

    public static boolean getUsesUppercaseTempTables(java.util.Properties properties)
    Get KEY_DATABASE_USES_UPPERCASE_TEMPTABLES property from properties

    Parameters:
    properties - containing configuration data
    Returns:
    value of KEY_DATABASE_USES_UPPERCASE_TEMPTABLES,or "false" if not present

    setUsesUppercaseTempTables

    public static void setUsesUppercaseTempTables(java.util.Properties properties,
                                                  boolean usesUppercaseTempTables)
    Set KEY_DATABASE_USES_UPPERCASE_TEMPTABLES property to usesUppercaseTempTables in properties

    Parameters:
    properties - containing configuration data
    usesUppercaseTempTables - value for usesUppercaseTempTables

    getSessionPrefix

    public static java.lang.String getSessionPrefix(java.util.Properties properties)
    Get KEY_DATABASE_SESSION_PREFIX property from properties

    Parameters:
    properties - containing configuration data
    Returns:
    value of KEY_DATABASE_SESSION_PREFIX if not present

    setSessionPrefix

    public static void setSessionPrefix(java.util.Properties properties,
                                        java.lang.String sessionPrefix)
    Set KEY_DATABASE_SESSION_PREFIX property to sessionPrefix in properties

    Parameters:
    properties - containing configuration data
    sessionPrefix - value for sessionPrefix

    getSupportsTableLocks

    public static boolean getSupportsTableLocks(java.util.Properties properties)
    Get KEY_DATABASE_SUPPORTS_TABLELOCKS property from properties

    Parameters:
    properties - containing configuration data
    Returns:
    value of KEY_DATABASE_SUPPORTS_TABLELOCKS,or "false" if not present

    setSupportsTableLocks

    public static void setSupportsTableLocks(java.util.Properties properties,
                                             boolean supportsTableLocks)
    Set KEY_DATABASE_SUPPORTS_TABLELOCKS property to supportsTableLocks in properties

    Parameters:
    properties - containing configuration data
    supportsTableLocks - value for supportsTableLocks

    getSupportsTableUnLocks

    public static boolean getSupportsTableUnLocks(java.util.Properties properties)
    Get KEY_DATABASE_SUPPORTS_TABLEUNLOCKS property from properties

    Parameters:
    properties - containing configuration data
    Returns:
    value of KEY_DATABASE_SUPPORTS_TABLEUNLOCKS,or "false" if not present

    setSupportsTableUnLocks

    public static void setSupportsTableUnLocks(java.util.Properties properties,
                                               boolean supportsTableUnLocks)
    Set KEY_DATABASE_SUPPORTS_TABLEUNLOCKS property to supportsTableUnLocks in properties

    Parameters:
    properties - containing configuration data
    supportsTableUnLocks - value for supportsTableUnLocks

    getNodeCacheSize

    public static int getNodeCacheSize(java.util.Properties properties,
                                       int defaultValue)
    Get KEY_DATABASE_NODE_CACHE_SIZE property from properties

    Parameters:
    properties - containing configuration data
    defaultValue - defaultValue for nodeCacheSize
    Returns:
    value of KEY_DATABASE_NODE_CACHE_SIZEor defaultValue if not present

    setNodeCacheSize

    public static void setNodeCacheSize(java.util.Properties properties,
                                        int nodeCacheSize)
    Set KEY_DATABASE_NODE_CACHE_SIZE property to nodeCacheSize in properties

    Parameters:
    properties - containing configuration data
    nodeCacheSize - value for nodeCacheSize


    Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.