/*******************************************************************************
* Copyright (c) 2007-2008 Cambridge Semantics Incorporated.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* File: $Source$
* Created by: Generated Source from org.openanzo.rdf.utils.properties.jet
* Created on: Generated Source from org.openanzo.rdf.utils.properties.jet
* Revision: $Id$
*
* Contributors:
* Cambridge Semantics Incorporated - initial API and implementation
*******************************************************************************/
package org.openanzo.jdbc.container;
import java.util.Properties;
/**
* Configuration properties for the RDB database connection.
* @author Generated Source from org.openanzo.rdf.utils.properties.jet
*/
public class RDBProperties{
/**
* Key for property "org.openanzo.database.url"
* The jdbc URL for the connection to the database.
* <li><b>Server:</b>Not Used</li>
* <li><b>Client:</b>Used if local persistence is enabled.</li>
* <li><b>Embedded:</b>See client. Note: Persistence shouldn't be used when in embedded mode since stack already has direct access to the database.</li>
*
* Examples:
* On DB2: jdbc:db2://localhost:50000/anzo
* On Oracle: jdbc:oracle:thin:@localhost:1521
* On PostgreSQL: jdbc:postgresql:anzo
* On HSQL: jdbc:hsqldb:mem:anzodb
* On MySQL: jdbc:mysql://localhost/anzo
*/
public static final String KEY_DATABASE_URL = "org.openanzo.database.url";
/**
* Key for property "org.openanzo.database.url.prefix"
* String prepended to the jdbc URLs.
*
* Examples:
* jdbc:derby:
*/
public static final String KEY_DATABASE_URL_PREFIX = "org.openanzo.database.url.prefix";
/**
* Key for property "org.openanzo.database.url.postfix"
* String appended to the jdbc URLs
*
* Examples:
* ;create=true;upgrade=true
*/
public static final String KEY_DATABASE_URL_POSTFIX = "org.openanzo.database.url.postfix";
/**
* Key for property "org.openanzo.database.type"
* Anzo database type name.
* <li><b>Server:</b>Not Used</li>
* <li><b>Client:</b>Used if local persistence is enabled.</li>
* <li><b>Embedded:</b>See client. Note: Persistence shouldn't be used when in embedded mode since stack already has direct access to the database.</li>
*
* Examples:
* For DB2: DB2
* For Oracle: Oracle
* For Derby: Derby
* For PostgreSQL: Postgres
* For HSQL: HSQL
* For MySQL: MySQL
*/
public static final String KEY_DATABASE_TYPE = "org.openanzo.database.type";
/**
* Key for property "org.openanzo.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
*/
public static final String KEY_DATABASE_DRIVER = "org.openanzo.database.driver";
/**
* Key for property "org.openanzo.database.user"
* Login id for the connection to the database.
* <li><b>Server:</b>Not Used</li>
* <li><b>Client:</b>Used if local persistence is enabled.</li>
* <li><b>Embedded:</b>See client. Note: Persistence shouldn't be used when in embedded mode since stack already has direct access to the database.</li>
*
* Examples:
* For DB2: db2inst1
* For Oracle: anzo
* For Derby: anzo
* For PostgreSQL: anzo
* For HSQL: sa
* For MySQL: anzo
*/
public static final String KEY_DATABASE_USER = "org.openanzo.database.user";
/**
* Key for property "org.openanzo.database.password"
* Password for the connection to the database.
* <li><b>Server:</b>Not Used</li>
* <li><b>Client:</b>Used if local persistence is enabled.</li>
* <li><b>Embedded:</b>See client. Note: Persistence shouldn't be used when in embedded mode since stack already has direct access to the database.</li>
*
* 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
*/
public static final String KEY_DATABASE_PASSWORD = "org.openanzo.database.password";
/**
* Key for property "org.openanzo.database.fileLocation"
* Local directory path from where file based database will be loaded.
* <li><b>Server:</b>Not Used</li>
* <li><b>Client:</b>Used if local persistence is enabled.</li>
* <li><b>Embedded:</b>See client. Note: Persistence shouldn't be used when in embedded mode since stack already has direct access to the database.</li>
*
* Examples:
* For Derby: /tmp/anzoDerby
*/
public static final String KEY_DATABASE_FILE_LOCATION = "org.openanzo.database.fileLocation";
/**
* Key for property "org.openanzo.database.containerName"
* Unique URI to name container of statements and named graphs.
* <li><b>Server:</b>Not Used</li>
* <li><b>Client:</b>Used if local persistence is enabled.</li>
* <li><b>Embedded:</b>See client. Note: Persistence shouldn't be used when in embedded mode since stack already has direct access to the database.</li>
*
* Examples:
* http://openanzo.org/container1
*/
public static final String KEY_DATABASE_CONTAINER_NAME = "org.openanzo.database.containerName";
/**
* Key for property "org.openanzo.database.clearOnLoad"
* Flag for whether or not the database should be cleared when the database is first loaded.
* <li><b>Server:</b>Not Used</li>
* <li><b>Client:</b>Used if local persistence is enabled.</li>
* <li><b>Embedded:</b>See client. Note: Persistence shouldn't be used when in embedded mode since stack already has direct access to the database.</li>
*
*/
public static final String KEY_DATABASE_CLEAR = "org.openanzo.database.clearOnLoad";
/**
* Key for property "org.openanzo.database.sqlfile"
* Path to file containing table, index definitions as well as text of prepared statements.
* 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 standard file for you database.
*
*/
public static final String KEY_DATABASE_SQL_FILENAME = "org.openanzo.database.sqlfile";
/**
* Key for property "org.openanzo.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.
*/
public static final String KEY_DATABASE_QUOTE_CHAR = "org.openanzo.database.quotechar";
/**
* Key for property "org.openanzo.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.
*/
public static final String KEY_DATABASE_MAX_TABLENAME_LENGTH = "org.openanzo.database.maxTablenameLength";
/**
* Key for property "org.openanzo.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.
*/
public static final String KEY_DATABASE_USE_TEMP_INSERT = "org.openanzo.database.useTempTableInsert";
/**
* Key for property "org.openanzo.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.
*/
public static final String KEY_DATABASE_USE_TEMP_FIND = "org.openanzo.database.useTempTableFind";
/**
* Key for property "org.openanzo.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.
*/
public static final String KEY_DATABASE_UNIQUE_TEMP_NAMES = "org.openanzo.database.uniqueTempNames";
/**
* Key for property "org.openanzo.database.supportsOptionalJoins"
* Does the database support optional 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.
*/
public static final String KEY_DATABASE_SUPPORTS_OPTIONAL_JOINS = "org.openanzo.database.supportsOptionalJoins";
/**
* Key for property "org.openanzo.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.
*/
public static final String KEY_DATABASE_SUPPORTS_SEQUENCES = "org.openanzo.database.supportsSequences";
/**
* Key for property "org.openanzo.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.
*/
public static final String KEY_DATABASE_SUPPORTS_FULLOUTER_JOINS = "org.openanzo.database.supportsFullouterJoins";
/**
* Key for property "org.openanzo.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.
*/
public static final String KEY_DATABASE_SUPPORTS_WITH_CLAUSE = "org.openanzo.database.supportsWithClause";
/**
* Key for property "org.openanzo.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.
*/
public static final String KEY_DATABASE_MAX_INDEX_KEY_LENGTH = "org.openanzo.database.maxIndexKeyLength";
/**
* Key for property "org.openanzo.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.
*/
public static final String KEY_DATABASE_MAX_LONG_OBJECT_LENGTH = "org.openanzo.database.maxLongObjectLength";
/**
* Key for property "org.openanzo.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.
*/
public static final String KEY_DATABASE_USES_UPPERCASE = "org.openanzo.database.usesUppercase";
/**
* Key for property "org.openanzo.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.
*/
public static final String KEY_DATABASE_USES_UPPERCASE_TEMPTABLES = "org.openanzo.database.usesUppercaseTempTables";
/**
* Key for property "org.openanzo.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.
*/
public static final String KEY_DATABASE_SESSION_PREFIX = "org.openanzo.database.sessionPrefix";
/**
* Key for property "org.openanzo.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.
*/
public static final String KEY_DATABASE_SUPPORTS_TABLELOCKS = "org.openanzo.database.supportsTableLocks";
/**
* Key for property "org.openanzo.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.
*/
public static final String KEY_DATABASE_SUPPORTS_TABLEUNLOCKS = "org.openanzo.database.supportsTableUnLocks";
/**
* Key for property "org.openanzo.database.nodeCacheSize"
* Size of node cache
*
* Examples:
* Default is 25000
*/
public static final String KEY_DATABASE_NODE_CACHE_SIZE = "org.openanzo.database.nodeCacheSize";
/**
* Key for property "org.openanzo.database.useHardReset"
* Does the database need to drop all tables for a reset, instead of just deleting the rows from the existing 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.
*/
public static final String KEY_DATABASE_USE_HARD_RESET = "org.openanzo.database.useHardReset";
/**
* Key for property "org.openanzo.database.bigInt"
* The text required within a create table operation for specifying a BIGINT
*
* 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.
*/
public static final String KEY_DATABASE_BIG_INT = "org.openanzo.database.bigInt";
/**
* Key for property "org.openanzo.database.dropTableSuffix"
* The text added to the end of a table drop command.
*
* 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.
*/
public static final String KEY_DATABASE_DROP_TABLE_SUFFIX = "org.openanzo.database.dropTableSuffix";
/**
* Key for property "org.openanzo.database.forceTempTablePurge"
* True if temporary tables need to be explicitly purged after using.
*
* 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.
*/
public static final String KEY_DATABASE_FORCE_TT_PURGE = "org.openanzo.database.forceTempTablePurge";
/**
* Key for property "org.openanzo.database.forceTempTableCreation"
* Force the creation of temporary tables, even if they are already showing up in the catalog.
*
* 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.
*/
public static final String KEY_DATABASE_FORCE_TT_CREATE = "org.openanzo.database.forceTempTableCreation";
/**
* Key for property "org.openanzo.database.indexSuffix"
* Text to add to the end of a create index call
*
* 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.
*/
public static final String KEY_DATABASE_SESSION_INDEX_SUFFIX = "org.openanzo.database.indexSuffix";
/**
* Key for property "org.openanzo.database.singleRowOptimizationString"
* Text added to the end of a query that is expected to return 1 row
*
* 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.
*/
public static final String KEY_DATABASE_SINGLE_ROW = "org.openanzo.database.singleRowOptimizationString";
/**
* Key for property "org.openanzo.database.smallInt"
* The text required within a create table operation for specifying a SMALLINT
*
* 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.
*/
public static final String KEY_DATABASE_SMALL_INT = "org.openanzo.database.smallInt";
/**
* Key for property "org.openanzo.database.varChar"
* The text required within a create table operation for specifying a VARCHAR
*
* 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.
*/
public static final String KEY_DATABASE_VAR_CHAR = "org.openanzo.database.varChar";
/**
* Key for property "org.openanzo.database.blob"
* The text required within a create table operation for specifying a BLOB
*
* 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.
*/
public static final String KEY_DATABASE_BLOB = "org.openanzo.database.blob";
/**
* Key for property "org.openanzo.database.supportsIsolation"
* True if this database supports setting isolation levels on the jdbc driver
*
* 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.
*/
public static final String KEY_DATABASE_ISOLATION = "org.openanzo.database.supportsIsolation";
/**
* Key for property "org.openanzo.database.supportsIndividualBatchUpdates"
* True if the database supports batch operations where individual batch calls fail
*
* 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.
*/
public static final String KEY_DATABASE_SUPPORT_SINGLE_BATCH = "org.openanzo.database.supportsIndividualBatchUpdates";
/**
* Key for property "org.openanzo.database.tableCreateSuffix"
* Text added to the end of a table creation call
*
* 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.
*/
public static final String KEY_DATABASE_CREATE_SUFFIX = "org.openanzo.database.tableCreateSuffix";
/**
* Key for property "org.openanzo.database.tableLockSuffix"
* Text added to the end of a lock table call
*
* 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.
*/
public static final String KEY_DATABASE_LOCK_SUFFIX = "org.openanzo.database.tableLockSuffix";
/**
* Key for property "org.openanzo.database.textFieldSuffix"
* Text added to the end of a text field definition within a create table call.
*
* 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.
*/
public static final String KEY_DATABASE_TEXT_FIELD_SUFFIX = "org.openanzo.database.textFieldSuffix";
/**
* Key for property "org.openanzo.database.generatedIdString"
* The text required within a create table operation for specifying a generated id column
*
* 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.
*/
public static final String KEY_DATABASE_GENERATED_ID = "org.openanzo.database.generatedIdString";
/**
* Key for property "org.openanzo.database.requiresTempTablespace"
* True if this database requires the creation of a temporary tablespace
*
* 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.
*/
public static final String KEY_DATABASE_REQUIRES_TT = "org.openanzo.database.requiresTempTablespace";
/**
* Key for property "org.openanzo.database.canonicalTableName"
* Name of table used to determine if database is initialized
*
* 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.
*/
public static final String KEY_DATABASE_CANONICAL_TABLE_NAME = "org.openanzo.database.canonicalTableName";
/**
* Key for property "org.openanzo.database.initializationFiles"
* Comma separated list of files that are used to initialize database at creation time.
*
* Examples:
*
*/
public static final String KEY_DATABASE_INITIALIZATION_FILES = "org.openanzo.database.initializationFiles";
/**
* Key for property "org.openanzo.database.supportsIdentity"
* Supports identity.
*
* Examples:
*
*/
public static final String KEY_DATABASE_SUPPORTS_IDENTITY = "org.openanzo.database.supportsIdentity";
/**
* Key for property "org.openanzo.database.supportsLimitOffset"
* Supports Limit Offset queries.
*
* Examples:
*
*/
public static final String KEY_DATABASE_SUPPORTS_LIMIT_OFFSET = "org.openanzo.database.supportsLimitOffset";
/**
* Key for property "org.openanzo.database.limitTransactionSize"
* Limit the transactions size.
*
* Examples:
*
*/
public static final String KEY_DATABASE_LIMIT_TRANSACTION_SIZE = "org.openanzo.database.limitTransactionSize";
/**
* Key for property "org.openanzo.database.validationQuery"
* Query that validates the connection is still valid.
*
* Examples:
*
*/
public static final String KEY_DATABASE_VALIDATION_QUERY = "org.openanzo.database.validationQuery";
/**
* Get {@link #KEY_DATABASE_URL} property from properties
*
* @param properties
* containing configuration data
*
* @return value of {@link #KEY_DATABASE_URL} if not present
*/
static public String getUrl(Properties properties) {
return properties.getProperty(KEY_DATABASE_URL);
}
/**
* Set {@link #KEY_DATABASE_URL} property to url in properties
*
* @param properties
* containing configuration data
* @param url
* value for url
*/
static public void setUrl(Properties properties, String url) {
if(url==null){
properties.remove(KEY_DATABASE_URL);
}else{
properties.setProperty(KEY_DATABASE_URL, url);
}
}
/**
* Get {@link #KEY_DATABASE_URL_PREFIX} property from properties
*
* @param properties
* containing configuration data
*
* @return value of {@link #KEY_DATABASE_URL_PREFIX} if not present
*/
static public String getUrlPrefix(Properties properties) {
return properties.getProperty(KEY_DATABASE_URL_PREFIX);
}
/**
* Set {@link #KEY_DATABASE_URL_PREFIX} property to url.prefix in properties
*
* @param properties
* containing configuration data
* @param urlPrefix
* value for url.prefix
*/
static public void setUrlPrefix(Properties properties, String urlPrefix) {
if(urlPrefix==null){
properties.remove(KEY_DATABASE_URL_PREFIX);
}else{
properties.setProperty(KEY_DATABASE_URL_PREFIX, urlPrefix);
}
}
/**
* Get {@link #KEY_DATABASE_URL_POSTFIX} property from properties
*
* @param properties
* containing configuration data
*
* @return value of {@link #KEY_DATABASE_URL_POSTFIX} if not present
*/
static public String getUrlPostfix(Properties properties) {
return properties.getProperty(KEY_DATABASE_URL_POSTFIX);
}
/**
* Set {@link #KEY_DATABASE_URL_POSTFIX} property to url.postfix in properties
*
* @param properties
* containing configuration data
* @param urlPostfix
* value for url.postfix
*/
static public void setUrlPostfix(Properties properties, String urlPostfix) {
if(urlPostfix==null){
properties.remove(KEY_DATABASE_URL_POSTFIX);
}else{
properties.setProperty(KEY_DATABASE_URL_POSTFIX, urlPostfix);
}
}
/**
* Get {@link #KEY_DATABASE_TYPE} property from properties
*
* @param properties
* containing configuration data
*
* @return value of {@link #KEY_DATABASE_TYPE} if not present
*/
static public String getType(Properties properties) {
return properties.getProperty(KEY_DATABASE_TYPE);
}
/**
* Set {@link #KEY_DATABASE_TYPE} property to type in properties
*
* @param properties
* containing configuration data
* @param type
* value for type
*/
static public void setType(Properties properties, String type) {
if(type==null){
properties.remove(KEY_DATABASE_TYPE);
}else{
properties.setProperty(KEY_DATABASE_TYPE, type);
}
}
/**
* Get {@link #KEY_DATABASE_DRIVER} property from properties
*
* @param properties
* containing configuration data
*
* @return value of {@link #KEY_DATABASE_DRIVER} if not present
*/
static public String getDriver(Properties properties) {
return properties.getProperty(KEY_DATABASE_DRIVER);
}
/**
* Set {@link #KEY_DATABASE_DRIVER} property to driver in properties
*
* @param properties
* containing configuration data
* @param driver
* value for driver
*/
static public void setDriver(Properties properties, String driver) {
if(driver==null){
properties.remove(KEY_DATABASE_DRIVER);
}else{
properties.setProperty(KEY_DATABASE_DRIVER, driver);
}
}
/**
* Get {@link #KEY_DATABASE_USER} property from properties
*
* @param properties
* containing configuration data
*
* @return value of {@link #KEY_DATABASE_USER} if not present
*/
static public String getUser(Properties properties) {
return properties.getProperty(KEY_DATABASE_USER);
}
/**
* Set {@link #KEY_DATABASE_USER} property to user in properties
*
* @param properties
* containing configuration data
* @param user
* value for user
*/
static public void setUser(Properties properties, String user) {
if(user==null){
properties.remove(KEY_DATABASE_USER);
}else{
properties.setProperty(KEY_DATABASE_USER, user);
}
}
/**
* Get {@link #KEY_DATABASE_PASSWORD} property from properties
*
* @param properties
* containing configuration data
*
* @return value of {@link #KEY_DATABASE_PASSWORD} if not present
* @throws org.openanzo.exceptions.AnzoException if there is an exception decrypting value
*/
static public String getPassword(Properties properties) throws org.openanzo.exceptions.AnzoException{
try{
String result= properties.getProperty(KEY_DATABASE_PASSWORD
);
if(result!=null){
if(result.startsWith("encrypted:")){
result=result.substring("encrypted:".length());
if(result.length()>0){
result=org.openanzo.exceptions.EncryptionUtil.decryptBase64(result);
}
}
}
return result;
}catch(Exception e){
throw new org.openanzo.exceptions.AnzoException( org.openanzo.exceptions.ExceptionConstants.IO.PROPERTIES_ERROR, e);
}
}
/**
* Set {@link #KEY_DATABASE_PASSWORD} property to password in properties
*
* @param properties
* containing configuration data
* @param password
* value for password
* @throws org.openanzo.exceptions.AnzoException if there is an exception encrypting value
*/
static public void setPassword(Properties properties, String password) throws org.openanzo.exceptions.AnzoException{
try{if(password==null){
properties.remove(KEY_DATABASE_PASSWORD);
}else{
password=org.openanzo.exceptions.EncryptionUtil.encryptBase64(password);
properties.setProperty(KEY_DATABASE_PASSWORD, "encrypted:"+password);
}
}catch(Exception e){
throw new org.openanzo.exceptions.AnzoException( org.openanzo.exceptions.ExceptionConstants.IO.PROPERTIES_ERROR, e);
}
}
/**
* Get {@link #KEY_DATABASE_FILE_LOCATION} property from properties
*
* @param properties
* containing configuration data
*
* @return value of {@link #KEY_DATABASE_FILE_LOCATION} if not present
*/
static public String getFileLocation(Properties properties) {
return properties.getProperty(KEY_DATABASE_FILE_LOCATION);
}
/**
* Set {@link #KEY_DATABASE_FILE_LOCATION} property to fileLocation in properties
*
* @param properties
* containing configuration data
* @param fileLocation
* value for fileLocation
*/
static public void setFileLocation(Properties properties, String fileLocation) {
if(fileLocation==null){
properties.remove(KEY_DATABASE_FILE_LOCATION);
}else{
properties.setProperty(KEY_DATABASE_FILE_LOCATION, fileLocation);
}
}
/**
* Get {@link #KEY_DATABASE_CONTAINER_NAME} property from properties
*
* @param properties
* containing configuration data
*
* @return value of {@link #KEY_DATABASE_CONTAINER_NAME} if not present
*/
static public String getContainerName(Properties properties) {
return properties.getProperty(KEY_DATABASE_CONTAINER_NAME);
}
/**
* Set {@link #KEY_DATABASE_CONTAINER_NAME} property to containerName in properties
*
* @param properties
* containing configuration data
* @param containerName
* value for containerName
*/
static public void setContainerName(Properties properties, String containerName) {
if(containerName==null){
properties.remove(KEY_DATABASE_CONTAINER_NAME);
}else{
properties.setProperty(KEY_DATABASE_CONTAINER_NAME, containerName);
}
}
/**
* Get {@link #KEY_DATABASE_CLEAR} property from properties
*
* @param properties
* containing configuration data
*
* @return value of {@link #KEY_DATABASE_CLEAR},or "false" if not present
*/
static public boolean getClearOnLoad(Properties properties) {
return Boolean.valueOf(properties.getProperty(KEY_DATABASE_CLEAR,""+"false")).booleanValue();
}
/**
* Set {@link #KEY_DATABASE_CLEAR} property to clearOnLoad in properties
*
* @param properties
* containing configuration data
* @param clearOnLoad
* value for clearOnLoad
*/
static public void setClearOnLoad(Properties properties, boolean clearOnLoad) {
properties.setProperty(KEY_DATABASE_CLEAR, Boolean.toString(clearOnLoad));
}
/**
* Get {@link #KEY_DATABASE_SQL_FILENAME} property from properties
*
* @param properties
* containing configuration data
*
* @return value of {@link #KEY_DATABASE_SQL_FILENAME} if not present
*/
static public String getSqlfile(Properties properties) {
return properties.getProperty(KEY_DATABASE_SQL_FILENAME);
}
/**
* Set {@link #KEY_DATABASE_SQL_FILENAME} property to sqlfile in properties
*
* @param properties
* containing configuration data
* @param sqlfile
* value for sqlfile
*/
static public void setSqlfile(Properties properties, String sqlfile) {
if(sqlfile==null){
properties.remove(KEY_DATABASE_SQL_FILENAME);
}else{
properties.setProperty(KEY_DATABASE_SQL_FILENAME, sqlfile);
}
}
/**
* Get {@link #KEY_DATABASE_QUOTE_CHAR} property from properties
*
* @param properties
* containing configuration data
*
* @return value of {@link #KEY_DATABASE_QUOTE_CHAR} if not present
*/
static public String getQuotechar(Properties properties) {
return properties.getProperty(KEY_DATABASE_QUOTE_CHAR);
}
/**
* Set {@link #KEY_DATABASE_QUOTE_CHAR} property to quotechar in properties
*
* @param properties
* containing configuration data
* @param quotechar
* value for quotechar
*/
static public void setQuotechar(Properties properties, String quotechar) {
if(quotechar==null){
properties.remove(KEY_DATABASE_QUOTE_CHAR);
}else{
properties.setProperty(KEY_DATABASE_QUOTE_CHAR, quotechar);
}
}
/**
* Get {@link #KEY_DATABASE_MAX_TABLENAME_LENGTH} property from properties
*
* @param properties
* containing configuration data
*
* @return value of {@link #KEY_DATABASE_MAX_TABLENAME_LENGTH},or "64" if not present
*/
static public int getMaxTablenameLength(Properties properties) {
int value= Integer.parseInt(properties.getProperty(KEY_DATABASE_MAX_TABLENAME_LENGTH,""+64));
if(value <= 0)
throw new org.openanzo.exceptions.AnzoRuntimeException(org.openanzo.exceptions.ExceptionConstants.OSGI.PARAM_GREATER_THAN,"maxTablenameLength","0");
return value;
}
/**
* Set {@link #KEY_DATABASE_MAX_TABLENAME_LENGTH} property to maxTablenameLength in properties
*
* @param properties
* containing configuration data
* @param maxTablenameLength
* value for maxTablenameLength
*/
static public void setMaxTablenameLength(Properties properties, int maxTablenameLength) {
if(maxTablenameLength <= 0)
throw new org.openanzo.exceptions.AnzoRuntimeException(org.openanzo.exceptions.ExceptionConstants.OSGI.PARAM_GREATER_THAN,"maxTablenameLength","0");
properties.setProperty(KEY_DATABASE_MAX_TABLENAME_LENGTH, Integer.toString(maxTablenameLength));
}
/**
* Get {@link #KEY_DATABASE_USE_TEMP_INSERT} property from properties
*
* @param properties
* containing configuration data
*
* @return value of {@link #KEY_DATABASE_USE_TEMP_INSERT},or "false" if not present
*/
static public boolean getUseTempTableInsert(Properties properties) {
return Boolean.valueOf(properties.getProperty(KEY_DATABASE_USE_TEMP_INSERT,""+"false")).booleanValue();
}
/**
* Set {@link #KEY_DATABASE_USE_TEMP_INSERT} property to useTempTableInsert in properties
*
* @param properties
* containing configuration data
* @param useTempTableInsert
* value for useTempTableInsert
*/
static public void setUseTempTableInsert(Properties properties, boolean useTempTableInsert) {
properties.setProperty(KEY_DATABASE_USE_TEMP_INSERT, Boolean.toString(useTempTableInsert));
}
/**
* Get {@link #KEY_DATABASE_USE_TEMP_FIND} property from properties
*
* @param properties
* containing configuration data
*
* @return value of {@link #KEY_DATABASE_USE_TEMP_FIND},or "false" if not present
*/
static public boolean getUseTempTableFind(Properties properties) {
return Boolean.valueOf(properties.getProperty(KEY_DATABASE_USE_TEMP_FIND,""+"false")).booleanValue();
}
/**
* Set {@link #KEY_DATABASE_USE_TEMP_FIND} property to useTempTableFind in properties
*
* @param properties
* containing configuration data
* @param useTempTableFind
* value for useTempTableFind
*/
static public void setUseTempTableFind(Properties properties, boolean useTempTableFind) {
properties.setProperty(KEY_DATABASE_USE_TEMP_FIND, Boolean.toString(useTempTableFind));
}
/**
* Get {@link #KEY_DATABASE_UNIQUE_TEMP_NAMES} property from properties
*
* @param properties
* containing configuration data
*
* @return value of {@link #KEY_DATABASE_UNIQUE_TEMP_NAMES},or "false" if not present
*/
static public boolean getUniqueTempNames(Properties properties) {
return Boolean.valueOf(properties.getProperty(KEY_DATABASE_UNIQUE_TEMP_NAMES,""+"false")).booleanValue();
}
/**
* Set {@link #KEY_DATABASE_UNIQUE_TEMP_NAMES} property to uniqueTempNames in properties
*
* @param properties
* containing configuration data
* @param uniqueTempNames
* value for uniqueTempNames
*/
static public void setUniqueTempNames(Properties properties, boolean uniqueTempNames) {
properties.setProperty(KEY_DATABASE_UNIQUE_TEMP_NAMES, Boolean.toString(uniqueTempNames));
}
/**
* Get {@link #KEY_DATABASE_SUPPORTS_OPTIONAL_JOINS} property from properties
*
* @param properties
* containing configuration data
*
* @return value of {@link #KEY_DATABASE_SUPPORTS_OPTIONAL_JOINS},or "true" if not present
*/
static public boolean getSupportsOptionalJoins(Properties properties) {
return Boolean.valueOf(properties.getProperty(KEY_DATABASE_SUPPORTS_OPTIONAL_JOINS,""+"true")).booleanValue();
}
/**
* Set {@link #KEY_DATABASE_SUPPORTS_OPTIONAL_JOINS} property to supportsOptionalJoins in properties
*
* @param properties
* containing configuration data
* @param supportsOptionalJoins
* value for supportsOptionalJoins
*/
static public void setSupportsOptionalJoins(Properties properties, boolean supportsOptionalJoins) {
properties.setProperty(KEY_DATABASE_SUPPORTS_OPTIONAL_JOINS, Boolean.toString(supportsOptionalJoins));
}
/**
* Get {@link #KEY_DATABASE_SUPPORTS_SEQUENCES} property from properties
*
* @param properties
* containing configuration data
*
* @return value of {@link #KEY_DATABASE_SUPPORTS_SEQUENCES},or "false" if not present
*/
static public boolean getSupportsSequences(Properties properties) {
return Boolean.valueOf(properties.getProperty(KEY_DATABASE_SUPPORTS_SEQUENCES,""+"false")).booleanValue();
}
/**
* Set {@link #KEY_DATABASE_SUPPORTS_SEQUENCES} property to supportsSequences in properties
*
* @param properties
* containing configuration data
* @param supportsSequences
* value for supportsSequences
*/
static public void setSupportsSequences(Properties properties, boolean supportsSequences) {
properties.setProperty(KEY_DATABASE_SUPPORTS_SEQUENCES, Boolean.toString(supportsSequences));
}
/**
* Get {@link #KEY_DATABASE_SUPPORTS_FULLOUTER_JOINS} property from properties
*
* @param properties
* containing configuration data
*
* @return value of {@link #KEY_DATABASE_SUPPORTS_FULLOUTER_JOINS},or "false" if not present
*/
static public boolean getSupportsFullouterJoins(Properties properties) {
return Boolean.valueOf(properties.getProperty(KEY_DATABASE_SUPPORTS_FULLOUTER_JOINS,""+"false")).booleanValue();
}
/**
* Set {@link #KEY_DATABASE_SUPPORTS_FULLOUTER_JOINS} property to supportsFullouterJoins in properties
*
* @param properties
* containing configuration data
* @param supportsFullouterJoins
* value for supportsFullouterJoins
*/
static public void setSupportsFullouterJoins(Properties properties, boolean supportsFullouterJoins) {
properties.setProperty(KEY_DATABASE_SUPPORTS_FULLOUTER_JOINS, Boolean.toString(supportsFullouterJoins));
}
/**
* Get {@link #KEY_DATABASE_SUPPORTS_WITH_CLAUSE} property from properties
*
* @param properties
* containing configuration data
*
* @return value of {@link #KEY_DATABASE_SUPPORTS_WITH_CLAUSE},or "false" if not present
*/
static public boolean getSupportsWithClause(Properties properties) {
return Boolean.valueOf(properties.getProperty(KEY_DATABASE_SUPPORTS_WITH_CLAUSE,""+"false")).booleanValue();
}
/**
* Set {@link #KEY_DATABASE_SUPPORTS_WITH_CLAUSE} property to supportsWithClause in properties
*
* @param properties
* containing configuration data
* @param supportsWithClause
* value for supportsWithClause
*/
static public void setSupportsWithClause(Properties properties, boolean supportsWithClause) {
properties.setProperty(KEY_DATABASE_SUPPORTS_WITH_CLAUSE, Boolean.toString(supportsWithClause));
}
/**
* Get {@link #KEY_DATABASE_MAX_INDEX_KEY_LENGTH} property from properties
*
* @param properties
* containing configuration data
*
* @return value of {@link #KEY_DATABASE_MAX_INDEX_KEY_LENGTH},or "64" if not present
*/
static public int getMaxIndexKeyLength(Properties properties) {
int value= Integer.parseInt(properties.getProperty(KEY_DATABASE_MAX_INDEX_KEY_LENGTH,""+64));
if(value <= 0)
throw new org.openanzo.exceptions.AnzoRuntimeException(org.openanzo.exceptions.ExceptionConstants.OSGI.PARAM_GREATER_THAN,"maxIndexKeyLength","0");
return value;
}
/**
* Set {@link #KEY_DATABASE_MAX_INDEX_KEY_LENGTH} property to maxIndexKeyLength in properties
*
* @param properties
* containing configuration data
* @param maxIndexKeyLength
* value for maxIndexKeyLength
*/
static public void setMaxIndexKeyLength(Properties properties, int maxIndexKeyLength) {
if(maxIndexKeyLength <= 0)
throw new org.openanzo.exceptions.AnzoRuntimeException(org.openanzo.exceptions.ExceptionConstants.OSGI.PARAM_GREATER_THAN,"maxIndexKeyLength","0");
properties.setProperty(KEY_DATABASE_MAX_INDEX_KEY_LENGTH, Integer.toString(maxIndexKeyLength));
}
/**
* Get {@link #KEY_DATABASE_MAX_LONG_OBJECT_LENGTH} property from properties
*
* @param properties
* containing configuration data
*
* @return value of {@link #KEY_DATABASE_MAX_LONG_OBJECT_LENGTH},or "64" if not present
*/
static public int getMaxLongObjectLength(Properties properties) {
int value= Integer.parseInt(properties.getProperty(KEY_DATABASE_MAX_LONG_OBJECT_LENGTH,""+64));
if(value <= 0)
throw new org.openanzo.exceptions.AnzoRuntimeException(org.openanzo.exceptions.ExceptionConstants.OSGI.PARAM_GREATER_THAN,"maxLongObjectLength","0");
return value;
}
/**
* Set {@link #KEY_DATABASE_MAX_LONG_OBJECT_LENGTH} property to maxLongObjectLength in properties
*
* @param properties
* containing configuration data
* @param maxLongObjectLength
* value for maxLongObjectLength
*/
static public void setMaxLongObjectLength(Properties properties, int maxLongObjectLength) {
if(maxLongObjectLength <= 0)
throw new org.openanzo.exceptions.AnzoRuntimeException(org.openanzo.exceptions.ExceptionConstants.OSGI.PARAM_GREATER_THAN,"maxLongObjectLength","0");
properties.setProperty(KEY_DATABASE_MAX_LONG_OBJECT_LENGTH, Integer.toString(maxLongObjectLength));
}
/**
* Get {@link #KEY_DATABASE_USES_UPPERCASE} property from properties
*
* @param properties
* containing configuration data
*
* @return value of {@link #KEY_DATABASE_USES_UPPERCASE},or "false" if not present
*/
static public boolean getUsesUppercase(Properties properties) {
return Boolean.valueOf(properties.getProperty(KEY_DATABASE_USES_UPPERCASE,""+"false")).booleanValue();
}
/**
* Set {@link #KEY_DATABASE_USES_UPPERCASE} property to usesUppercase in properties
*
* @param properties
* containing configuration data
* @param usesUppercase
* value for usesUppercase
*/
static public void setUsesUppercase(Properties properties, boolean usesUppercase) {
properties.setProperty(KEY_DATABASE_USES_UPPERCASE, Boolean.toString(usesUppercase));
}
/**
* Get {@link #KEY_DATABASE_USES_UPPERCASE_TEMPTABLES} property from properties
*
* @param properties
* containing configuration data
*
* @return value of {@link #KEY_DATABASE_USES_UPPERCASE_TEMPTABLES},or "false" if not present
*/
static public boolean getUsesUppercaseTempTables(Properties properties) {
return Boolean.valueOf(properties.getProperty(KEY_DATABASE_USES_UPPERCASE_TEMPTABLES,""+"false")).booleanValue();
}
/**
* Set {@link #KEY_DATABASE_USES_UPPERCASE_TEMPTABLES} property to usesUppercaseTempTables in properties
*
* @param properties
* containing configuration data
* @param usesUppercaseTempTables
* value for usesUppercaseTempTables
*/
static public void setUsesUppercaseTempTables(Properties properties, boolean usesUppercaseTempTables) {
properties.setProperty(KEY_DATABASE_USES_UPPERCASE_TEMPTABLES, Boolean.toString(usesUppercaseTempTables));
}
/**
* Get {@link #KEY_DATABASE_SESSION_PREFIX} property from properties
*
* @param properties
* containing configuration data
*
* @return value of {@link #KEY_DATABASE_SESSION_PREFIX} if not present
*/
static public String getSessionPrefix(Properties properties) {
return properties.getProperty(KEY_DATABASE_SESSION_PREFIX);
}
/**
* Set {@link #KEY_DATABASE_SESSION_PREFIX} property to sessionPrefix in properties
*
* @param properties
* containing configuration data
* @param sessionPrefix
* value for sessionPrefix
*/
static public void setSessionPrefix(Properties properties, String sessionPrefix) {
if(sessionPrefix==null){
properties.remove(KEY_DATABASE_SESSION_PREFIX);
}else{
properties.setProperty(KEY_DATABASE_SESSION_PREFIX, sessionPrefix);
}
}
/**
* Get {@link #KEY_DATABASE_SUPPORTS_TABLELOCKS} property from properties
*
* @param properties
* containing configuration data
*
* @return value of {@link #KEY_DATABASE_SUPPORTS_TABLELOCKS},or "false" if not present
*/
static public boolean getSupportsTableLocks(Properties properties) {
return Boolean.valueOf(properties.getProperty(KEY_DATABASE_SUPPORTS_TABLELOCKS,""+"false")).booleanValue();
}
/**
* Set {@link #KEY_DATABASE_SUPPORTS_TABLELOCKS} property to supportsTableLocks in properties
*
* @param properties
* containing configuration data
* @param supportsTableLocks
* value for supportsTableLocks
*/
static public void setSupportsTableLocks(Properties properties, boolean supportsTableLocks) {
properties.setProperty(KEY_DATABASE_SUPPORTS_TABLELOCKS, Boolean.toString(supportsTableLocks));
}
/**
* Get {@link #KEY_DATABASE_SUPPORTS_TABLEUNLOCKS} property from properties
*
* @param properties
* containing configuration data
*
* @return value of {@link #KEY_DATABASE_SUPPORTS_TABLEUNLOCKS},or "false" if not present
*/
static public boolean getSupportsTableUnLocks(Properties properties) {
return Boolean.valueOf(properties.getProperty(KEY_DATABASE_SUPPORTS_TABLEUNLOCKS,""+"false")).booleanValue();
}
/**
* Set {@link #KEY_DATABASE_SUPPORTS_TABLEUNLOCKS} property to supportsTableUnLocks in properties
*
* @param properties
* containing configuration data
* @param supportsTableUnLocks
* value for supportsTableUnLocks
*/
static public void setSupportsTableUnLocks(Properties properties, boolean supportsTableUnLocks) {
properties.setProperty(KEY_DATABASE_SUPPORTS_TABLEUNLOCKS, Boolean.toString(supportsTableUnLocks));
}
/**
* Get {@link #KEY_DATABASE_NODE_CACHE_SIZE} property from properties
*
* @param properties
* containing configuration data
* @param defaultValue defaultValue for nodeCacheSize
* @return value of {@link #KEY_DATABASE_NODE_CACHE_SIZE}or defaultValue if not present
*/
static public int getNodeCacheSize(Properties properties,int defaultValue) {
int value= Integer.parseInt(properties.getProperty(KEY_DATABASE_NODE_CACHE_SIZE,""+defaultValue));
if(value <= 0)
throw new org.openanzo.exceptions.AnzoRuntimeException(org.openanzo.exceptions.ExceptionConstants.OSGI.PARAM_GREATER_THAN,"nodeCacheSize","0");
return value;
}
/**
* Set {@link #KEY_DATABASE_NODE_CACHE_SIZE} property to nodeCacheSize in properties
*
* @param properties
* containing configuration data
* @param nodeCacheSize
* value for nodeCacheSize
*/
static public void setNodeCacheSize(Properties properties, int nodeCacheSize) {
if(nodeCacheSize <= 0)
throw new org.openanzo.exceptions.AnzoRuntimeException(org.openanzo.exceptions.ExceptionConstants.OSGI.PARAM_GREATER_THAN,"nodeCacheSize","0");
properties.setProperty(KEY_DATABASE_NODE_CACHE_SIZE, Integer.toString(nodeCacheSize));
}
/**
* Get {@link #KEY_DATABASE_USE_HARD_RESET} property from properties
*
* @param properties
* containing configuration data
*
* @return value of {@link #KEY_DATABASE_USE_HARD_RESET},or "false" if not present
*/
static public boolean getUseHardReset(Properties properties) {
return Boolean.valueOf(properties.getProperty(KEY_DATABASE_USE_HARD_RESET,""+"false")).booleanValue();
}
/**
* Set {@link #KEY_DATABASE_USE_HARD_RESET} property to useHardReset in properties
*
* @param properties
* containing configuration data
* @param useHardReset
* value for useHardReset
*/
static public void setUseHardReset(Properties properties, boolean useHardReset) {
properties.setProperty(KEY_DATABASE_USE_HARD_RESET, Boolean.toString(useHardReset));
}
/**
* Get {@link #KEY_DATABASE_BIG_INT} property from properties
*
* @param properties
* containing configuration data
*
* @return value of {@link #KEY_DATABASE_BIG_INT} if not present
*/
static public String getBigInt(Properties properties) {
return properties.getProperty(KEY_DATABASE_BIG_INT);
}
/**
* Set {@link #KEY_DATABASE_BIG_INT} property to bigInt in properties
*
* @param properties
* containing configuration data
* @param bigInt
* value for bigInt
*/
static public void setBigInt(Properties properties, String bigInt) {
if(bigInt==null){
properties.remove(KEY_DATABASE_BIG_INT);
}else{
properties.setProperty(KEY_DATABASE_BIG_INT, bigInt);
}
}
/**
* Get {@link #KEY_DATABASE_DROP_TABLE_SUFFIX} property from properties
*
* @param properties
* containing configuration data
*
* @return value of {@link #KEY_DATABASE_DROP_TABLE_SUFFIX} if not present
*/
static public String getDropTableSuffix(Properties properties) {
return properties.getProperty(KEY_DATABASE_DROP_TABLE_SUFFIX);
}
/**
* Set {@link #KEY_DATABASE_DROP_TABLE_SUFFIX} property to dropTableSuffix in properties
*
* @param properties
* containing configuration data
* @param dropTableSuffix
* value for dropTableSuffix
*/
static public void setDropTableSuffix(Properties properties, String dropTableSuffix) {
if(dropTableSuffix==null){
properties.remove(KEY_DATABASE_DROP_TABLE_SUFFIX);
}else{
properties.setProperty(KEY_DATABASE_DROP_TABLE_SUFFIX, dropTableSuffix);
}
}
/**
* Get {@link #KEY_DATABASE_FORCE_TT_PURGE} property from properties
*
* @param properties
* containing configuration data
*
* @return value of {@link #KEY_DATABASE_FORCE_TT_PURGE}, or false if not present
*/
static public boolean getForceTempTablePurge(Properties properties) {
return Boolean.valueOf(properties.getProperty(KEY_DATABASE_FORCE_TT_PURGE,"false")).booleanValue();
}
/**
* Set {@link #KEY_DATABASE_FORCE_TT_PURGE} property to forceTempTablePurge in properties
*
* @param properties
* containing configuration data
* @param forceTempTablePurge
* value for forceTempTablePurge
*/
static public void setForceTempTablePurge(Properties properties, boolean forceTempTablePurge) {
properties.setProperty(KEY_DATABASE_FORCE_TT_PURGE, Boolean.toString(forceTempTablePurge));
}
/**
* Get {@link #KEY_DATABASE_FORCE_TT_CREATE} property from properties
*
* @param properties
* containing configuration data
*
* @return value of {@link #KEY_DATABASE_FORCE_TT_CREATE}, or false if not present
*/
static public boolean getForceTempTableCreation(Properties properties) {
return Boolean.valueOf(properties.getProperty(KEY_DATABASE_FORCE_TT_CREATE,"false")).booleanValue();
}
/**
* Set {@link #KEY_DATABASE_FORCE_TT_CREATE} property to forceTempTableCreation in properties
*
* @param properties
* containing configuration data
* @param forceTempTableCreation
* value for forceTempTableCreation
*/
static public void setForceTempTableCreation(Properties properties, boolean forceTempTableCreation) {
properties.setProperty(KEY_DATABASE_FORCE_TT_CREATE, Boolean.toString(forceTempTableCreation));
}
/**
* Get {@link #KEY_DATABASE_SESSION_INDEX_SUFFIX} property from properties
*
* @param properties
* containing configuration data
*
* @return value of {@link #KEY_DATABASE_SESSION_INDEX_SUFFIX} if not present
*/
static public String getIndexSuffix(Properties properties) {
return properties.getProperty(KEY_DATABASE_SESSION_INDEX_SUFFIX);
}
/**
* Set {@link #KEY_DATABASE_SESSION_INDEX_SUFFIX} property to indexSuffix in properties
*
* @param properties
* containing configuration data
* @param indexSuffix
* value for indexSuffix
*/
static public void setIndexSuffix(Properties properties, String indexSuffix) {
if(indexSuffix==null){
properties.remove(KEY_DATABASE_SESSION_INDEX_SUFFIX);
}else{
properties.setProperty(KEY_DATABASE_SESSION_INDEX_SUFFIX, indexSuffix);
}
}
/**
* Get {@link #KEY_DATABASE_SINGLE_ROW} property from properties
*
* @param properties
* containing configuration data
*
* @return value of {@link #KEY_DATABASE_SINGLE_ROW} if not present
*/
static public String getSingleRowOptimizationString(Properties properties) {
return properties.getProperty(KEY_DATABASE_SINGLE_ROW);
}
/**
* Set {@link #KEY_DATABASE_SINGLE_ROW} property to singleRowOptimizationString in properties
*
* @param properties
* containing configuration data
* @param singleRowOptimizationString
* value for singleRowOptimizationString
*/
static public void setSingleRowOptimizationString(Properties properties, String singleRowOptimizationString) {
if(singleRowOptimizationString==null){
properties.remove(KEY_DATABASE_SINGLE_ROW);
}else{
properties.setProperty(KEY_DATABASE_SINGLE_ROW, singleRowOptimizationString);
}
}
/**
* Get {@link #KEY_DATABASE_SMALL_INT} property from properties
*
* @param properties
* containing configuration data
*
* @return value of {@link #KEY_DATABASE_SMALL_INT} if not present
*/
static public String getSmallInt(Properties properties) {
return properties.getProperty(KEY_DATABASE_SMALL_INT);
}
/**
* Set {@link #KEY_DATABASE_SMALL_INT} property to smallInt in properties
*
* @param properties
* containing configuration data
* @param smallInt
* value for smallInt
*/
static public void setSmallInt(Properties properties, String smallInt) {
if(smallInt==null){
properties.remove(KEY_DATABASE_SMALL_INT);
}else{
properties.setProperty(KEY_DATABASE_SMALL_INT, smallInt);
}
}
/**
* Get {@link #KEY_DATABASE_VAR_CHAR} property from properties
*
* @param properties
* containing configuration data
*
* @return value of {@link #KEY_DATABASE_VAR_CHAR} if not present
*/
static public String getVarChar(Properties properties) {
return properties.getProperty(KEY_DATABASE_VAR_CHAR);
}
/**
* Set {@link #KEY_DATABASE_VAR_CHAR} property to varChar in properties
*
* @param properties
* containing configuration data
* @param varChar
* value for varChar
*/
static public void setVarChar(Properties properties, String varChar) {
if(varChar==null){
properties.remove(KEY_DATABASE_VAR_CHAR);
}else{
properties.setProperty(KEY_DATABASE_VAR_CHAR, varChar);
}
}
/**
* Get {@link #KEY_DATABASE_BLOB} property from properties
*
* @param properties
* containing configuration data
*
* @return value of {@link #KEY_DATABASE_BLOB} if not present
*/
static public String getBlob(Properties properties) {
return properties.getProperty(KEY_DATABASE_BLOB);
}
/**
* Set {@link #KEY_DATABASE_BLOB} property to blob in properties
*
* @param properties
* containing configuration data
* @param blob
* value for blob
*/
static public void setBlob(Properties properties, String blob) {
if(blob==null){
properties.remove(KEY_DATABASE_BLOB);
}else{
properties.setProperty(KEY_DATABASE_BLOB, blob);
}
}
/**
* Get {@link #KEY_DATABASE_ISOLATION} property from properties
*
* @param properties
* containing configuration data
*
* @return value of {@link #KEY_DATABASE_ISOLATION}, or false if not present
*/
static public boolean getSupportsIsolation(Properties properties) {
return Boolean.valueOf(properties.getProperty(KEY_DATABASE_ISOLATION,"false")).booleanValue();
}
/**
* Set {@link #KEY_DATABASE_ISOLATION} property to supportsIsolation in properties
*
* @param properties
* containing configuration data
* @param supportsIsolation
* value for supportsIsolation
*/
static public void setSupportsIsolation(Properties properties, boolean supportsIsolation) {
properties.setProperty(KEY_DATABASE_ISOLATION, Boolean.toString(supportsIsolation));
}
/**
* Get {@link #KEY_DATABASE_SUPPORT_SINGLE_BATCH} property from properties
*
* @param properties
* containing configuration data
*
* @return value of {@link #KEY_DATABASE_SUPPORT_SINGLE_BATCH}, or false if not present
*/
static public boolean getSupportsIndividualBatchUpdates(Properties properties) {
return Boolean.valueOf(properties.getProperty(KEY_DATABASE_SUPPORT_SINGLE_BATCH,"false")).booleanValue();
}
/**
* Set {@link #KEY_DATABASE_SUPPORT_SINGLE_BATCH} property to supportsIndividualBatchUpdates in properties
*
* @param properties
* containing configuration data
* @param supportsIndividualBatchUpdates
* value for supportsIndividualBatchUpdates
*/
static public void setSupportsIndividualBatchUpdates(Properties properties, boolean supportsIndividualBatchUpdates) {
properties.setProperty(KEY_DATABASE_SUPPORT_SINGLE_BATCH, Boolean.toString(supportsIndividualBatchUpdates));
}
/**
* Get {@link #KEY_DATABASE_CREATE_SUFFIX} property from properties
*
* @param properties
* containing configuration data
*
* @return value of {@link #KEY_DATABASE_CREATE_SUFFIX} if not present
*/
static public String getTableCreateSuffix(Properties properties) {
return properties.getProperty(KEY_DATABASE_CREATE_SUFFIX);
}
/**
* Set {@link #KEY_DATABASE_CREATE_SUFFIX} property to tableCreateSuffix in properties
*
* @param properties
* containing configuration data
* @param tableCreateSuffix
* value for tableCreateSuffix
*/
static public void setTableCreateSuffix(Properties properties, String tableCreateSuffix) {
if(tableCreateSuffix==null){
properties.remove(KEY_DATABASE_CREATE_SUFFIX);
}else{
properties.setProperty(KEY_DATABASE_CREATE_SUFFIX, tableCreateSuffix);
}
}
/**
* Get {@link #KEY_DATABASE_LOCK_SUFFIX} property from properties
*
* @param properties
* containing configuration data
*
* @return value of {@link #KEY_DATABASE_LOCK_SUFFIX} if not present
*/
static public String getTableLockSuffix(Properties properties) {
return properties.getProperty(KEY_DATABASE_LOCK_SUFFIX);
}
/**
* Set {@link #KEY_DATABASE_LOCK_SUFFIX} property to tableLockSuffix in properties
*
* @param properties
* containing configuration data
* @param tableLockSuffix
* value for tableLockSuffix
*/
static public void setTableLockSuffix(Properties properties, String tableLockSuffix) {
if(tableLockSuffix==null){
properties.remove(KEY_DATABASE_LOCK_SUFFIX);
}else{
properties.setProperty(KEY_DATABASE_LOCK_SUFFIX, tableLockSuffix);
}
}
/**
* Get {@link #KEY_DATABASE_TEXT_FIELD_SUFFIX} property from properties
*
* @param properties
* containing configuration data
*
* @return value of {@link #KEY_DATABASE_TEXT_FIELD_SUFFIX} if not present
*/
static public String getTextFieldSuffix(Properties properties) {
return properties.getProperty(KEY_DATABASE_TEXT_FIELD_SUFFIX);
}
/**
* Set {@link #KEY_DATABASE_TEXT_FIELD_SUFFIX} property to textFieldSuffix in properties
*
* @param properties
* containing configuration data
* @param textFieldSuffix
* value for textFieldSuffix
*/
static public void setTextFieldSuffix(Properties properties, String textFieldSuffix) {
if(textFieldSuffix==null){
properties.remove(KEY_DATABASE_TEXT_FIELD_SUFFIX);
}else{
properties.setProperty(KEY_DATABASE_TEXT_FIELD_SUFFIX, textFieldSuffix);
}
}
/**
* Get {@link #KEY_DATABASE_GENERATED_ID} property from properties
*
* @param properties
* containing configuration data
*
* @return value of {@link #KEY_DATABASE_GENERATED_ID} if not present
*/
static public String getGeneratedIdString(Properties properties) {
return properties.getProperty(KEY_DATABASE_GENERATED_ID);
}
/**
* Set {@link #KEY_DATABASE_GENERATED_ID} property to generatedIdString in properties
*
* @param properties
* containing configuration data
* @param generatedIdString
* value for generatedIdString
*/
static public void setGeneratedIdString(Properties properties, String generatedIdString) {
if(generatedIdString==null){
properties.remove(KEY_DATABASE_GENERATED_ID);
}else{
properties.setProperty(KEY_DATABASE_GENERATED_ID, generatedIdString);
}
}
/**
* Get {@link #KEY_DATABASE_REQUIRES_TT} property from properties
*
* @param properties
* containing configuration data
*
* @return value of {@link #KEY_DATABASE_REQUIRES_TT}, or false if not present
*/
static public boolean getRequiresTempTablespace(Properties properties) {
return Boolean.valueOf(properties.getProperty(KEY_DATABASE_REQUIRES_TT,"false")).booleanValue();
}
/**
* Set {@link #KEY_DATABASE_REQUIRES_TT} property to requiresTempTablespace in properties
*
* @param properties
* containing configuration data
* @param requiresTempTablespace
* value for requiresTempTablespace
*/
static public void setRequiresTempTablespace(Properties properties, boolean requiresTempTablespace) {
properties.setProperty(KEY_DATABASE_REQUIRES_TT, Boolean.toString(requiresTempTablespace));
}
/**
* Get {@link #KEY_DATABASE_CANONICAL_TABLE_NAME} property from properties
*
* @param properties
* containing configuration data
*
* @return value of {@link #KEY_DATABASE_CANONICAL_TABLE_NAME} if not present
*/
static public String getCanonicalTableName(Properties properties) {
return properties.getProperty(KEY_DATABASE_CANONICAL_TABLE_NAME);
}
/**
* Set {@link #KEY_DATABASE_CANONICAL_TABLE_NAME} property to canonicalTableName in properties
*
* @param properties
* containing configuration data
* @param canonicalTableName
* value for canonicalTableName
*/
static public void setCanonicalTableName(Properties properties, String canonicalTableName) {
if(canonicalTableName==null){
properties.remove(KEY_DATABASE_CANONICAL_TABLE_NAME);
}else{
properties.setProperty(KEY_DATABASE_CANONICAL_TABLE_NAME, canonicalTableName);
}
}
/**
* Get {@link #KEY_DATABASE_INITIALIZATION_FILES} property from properties
*
* @param properties
* containing configuration data
*
* @return value of {@link #KEY_DATABASE_INITIALIZATION_FILES} if not present
*/
static public String getInitializationFiles(Properties properties) {
return properties.getProperty(KEY_DATABASE_INITIALIZATION_FILES);
}
/**
* Set {@link #KEY_DATABASE_INITIALIZATION_FILES} property to initializationFiles in properties
*
* @param properties
* containing configuration data
* @param initializationFiles
* value for initializationFiles
*/
static public void setInitializationFiles(Properties properties, String initializationFiles) {
if(initializationFiles==null){
properties.remove(KEY_DATABASE_INITIALIZATION_FILES);
}else{
properties.setProperty(KEY_DATABASE_INITIALIZATION_FILES, initializationFiles);
}
}
/**
* Get {@link #KEY_DATABASE_SUPPORTS_IDENTITY} property from properties
*
* @param properties
* containing configuration data
*
* @return value of {@link #KEY_DATABASE_SUPPORTS_IDENTITY}, or false if not present
*/
static public boolean getSupportsIdentity(Properties properties) {
return Boolean.valueOf(properties.getProperty(KEY_DATABASE_SUPPORTS_IDENTITY,"false")).booleanValue();
}
/**
* Set {@link #KEY_DATABASE_SUPPORTS_IDENTITY} property to supportsIdentity in properties
*
* @param properties
* containing configuration data
* @param supportsIdentity
* value for supportsIdentity
*/
static public void setSupportsIdentity(Properties properties, boolean supportsIdentity) {
properties.setProperty(KEY_DATABASE_SUPPORTS_IDENTITY, Boolean.toString(supportsIdentity));
}
/**
* Get {@link #KEY_DATABASE_SUPPORTS_LIMIT_OFFSET} property from properties
*
* @param properties
* containing configuration data
*
* @return value of {@link #KEY_DATABASE_SUPPORTS_LIMIT_OFFSET}, or false if not present
*/
static public boolean getSupportsLimitOffset(Properties properties) {
return Boolean.valueOf(properties.getProperty(KEY_DATABASE_SUPPORTS_LIMIT_OFFSET,"false")).booleanValue();
}
/**
* Set {@link #KEY_DATABASE_SUPPORTS_LIMIT_OFFSET} property to supportsLimitOffset in properties
*
* @param properties
* containing configuration data
* @param supportsLimitOffset
* value for supportsLimitOffset
*/
static public void setSupportsLimitOffset(Properties properties, boolean supportsLimitOffset) {
properties.setProperty(KEY_DATABASE_SUPPORTS_LIMIT_OFFSET, Boolean.toString(supportsLimitOffset));
}
/**
* Get {@link #KEY_DATABASE_LIMIT_TRANSACTION_SIZE} property from properties
*
* @param properties
* containing configuration data
*
* @return value of {@link #KEY_DATABASE_LIMIT_TRANSACTION_SIZE}, or false if not present
*/
static public boolean getLimitTransactionSize(Properties properties) {
return Boolean.valueOf(properties.getProperty(KEY_DATABASE_LIMIT_TRANSACTION_SIZE,"false")).booleanValue();
}
/**
* Set {@link #KEY_DATABASE_LIMIT_TRANSACTION_SIZE} property to limitTransactionSize in properties
*
* @param properties
* containing configuration data
* @param limitTransactionSize
* value for limitTransactionSize
*/
static public void setLimitTransactionSize(Properties properties, boolean limitTransactionSize) {
properties.setProperty(KEY_DATABASE_LIMIT_TRANSACTION_SIZE, Boolean.toString(limitTransactionSize));
}
/**
* Get {@link #KEY_DATABASE_VALIDATION_QUERY} property from properties
*
* @param properties
* containing configuration data
*
* @return value of {@link #KEY_DATABASE_VALIDATION_QUERY} if not present
*/
static public String getValidationQuery(Properties properties) {
return properties.getProperty(KEY_DATABASE_VALIDATION_QUERY);
}
/**
* Set {@link #KEY_DATABASE_VALIDATION_QUERY} property to validationQuery in properties
*
* @param properties
* containing configuration data
* @param validationQuery
* value for validationQuery
*/
static public void setValidationQuery(Properties properties, String validationQuery) {
if(validationQuery==null){
properties.remove(KEY_DATABASE_VALIDATION_QUERY);
}else{
properties.setProperty(KEY_DATABASE_VALIDATION_QUERY, validationQuery);
}
}
}