/*******************************************************************************
* 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.osgi.attributes;
import org.openanzo.osgi.AnzoAttributeDefinition;
/**
* Configuration properties for the RDB database connection.
* @author Generated Source from org.openanzo.rdf.utils.properties.jet
*/
public class RDBAttributes{
/**
* AnzoAttributeDefinition for "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 AnzoAttributeDefinition Url = new AnzoAttributeDefinition() {
public String getName() {
return "url";
}
public boolean isRestartRequired() {
return true;
}
public String getID() {
return "org.openanzo.database.url";
}
public String getDescription() {
return ""+"The jdbc URL for the connection to the database.";
}
public String validate(String value) {
return "";
}
public int getType() {
return AnzoAttributeDefinition.STRING;
}
public String[] getOptionValues() {
return null;
}
public String[] getOptionLabels() {
return null;
}
public String[] getDefaultValue() {
return null;
}
public int getCardinality() {
return 0;
}
};
/**
* AnzoAttributeDefinition for "org.openanzo.database.url.prefix"
* String prepended to the jdbc URLs.
*
* Examples:
* jdbc:derby:
*/
public static final AnzoAttributeDefinition UrlPrefix = new AnzoAttributeDefinition() {
public String getName() {
return "url.prefix";
}
public boolean isRestartRequired() {
return true;
}
public String getID() {
return "org.openanzo.database.url.prefix";
}
public String getDescription() {
return ""+"String prepended to the jdbc URLs.";
}
public String validate(String value) {
return "";
}
public int getType() {
return AnzoAttributeDefinition.STRING;
}
public String[] getOptionValues() {
return null;
}
public String[] getOptionLabels() {
return null;
}
public String[] getDefaultValue() {
return null;
}
public int getCardinality() {
return 0;
}
};
/**
* AnzoAttributeDefinition for "org.openanzo.database.url.postfix"
* String appended to the jdbc URLs
*
* Examples:
* ;create=true;upgrade=true
*/
public static final AnzoAttributeDefinition UrlPostfix = new AnzoAttributeDefinition() {
public String getName() {
return "url.postfix";
}
public boolean isRestartRequired() {
return true;
}
public String getID() {
return "org.openanzo.database.url.postfix";
}
public String getDescription() {
return ""+"String appended to the jdbc URLs";
}
public String validate(String value) {
return "";
}
public int getType() {
return AnzoAttributeDefinition.STRING;
}
public String[] getOptionValues() {
return null;
}
public String[] getOptionLabels() {
return null;
}
public String[] getDefaultValue() {
return null;
}
public int getCardinality() {
return 0;
}
};
/**
* AnzoAttributeDefinition for "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 AnzoAttributeDefinition Type = new AnzoAttributeDefinition() {
public String getName() {
return "type";
}
public boolean isRestartRequired() {
return true;
}
public String getID() {
return "org.openanzo.database.type";
}
public String getDescription() {
return ""+"Anzo database type name.";
}
public String validate(String value) {
return "";
}
public int getType() {
return AnzoAttributeDefinition.STRING;
}
public String[] getOptionValues() {
return null;
}
public String[] getOptionLabels() {
return null;
}
public String[] getDefaultValue() {
return null;
}
public int getCardinality() {
return 0;
}
};
/**
* AnzoAttributeDefinition for "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 AnzoAttributeDefinition Driver = new AnzoAttributeDefinition() {
public String getName() {
return "driver";
}
public boolean isRestartRequired() {
return true;
}
public String getID() {
return "org.openanzo.database.driver";
}
public String getDescription() {
return ""+"JDBC driver class name. Only needed if replacing the default driver for the given database type.";
}
public String validate(String value) {
return "";
}
public int getType() {
return AnzoAttributeDefinition.STRING;
}
public String[] getOptionValues() {
return null;
}
public String[] getOptionLabels() {
return null;
}
public String[] getDefaultValue() {
return null;
}
public int getCardinality() {
return 0;
}
};
/**
* AnzoAttributeDefinition for "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 AnzoAttributeDefinition User = new AnzoAttributeDefinition() {
public String getName() {
return "user";
}
public boolean isRestartRequired() {
return true;
}
public String getID() {
return "org.openanzo.database.user";
}
public String getDescription() {
return ""+"Login id for the connection to the database.";
}
public String validate(String value) {
return "";
}
public int getType() {
return AnzoAttributeDefinition.STRING;
}
public String[] getOptionValues() {
return null;
}
public String[] getOptionLabels() {
return null;
}
public String[] getDefaultValue() {
return null;
}
public int getCardinality() {
return 0;
}
};
/**
* AnzoAttributeDefinition for "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 AnzoAttributeDefinition Password = new AnzoAttributeDefinition() {
public String getName() {
return "password";
}
public boolean isRestartRequired() {
return true;
}
public String getID() {
return "org.openanzo.database.password";
}
public String getDescription() {
return ""+"Password for the connection to the database.";
}
public String validate(String value) {
return "";
}
public int getType() {
return AnzoAttributeDefinition.STRING;
}
public String[] getOptionValues() {
return null;
}
public String[] getOptionLabels() {
return null;
}
public String[] getDefaultValue() {
return null;
}
public int getCardinality() {
return 0;
}
};
/**
* AnzoAttributeDefinition for "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 AnzoAttributeDefinition FileLocation = new AnzoAttributeDefinition() {
public String getName() {
return "fileLocation";
}
public boolean isRestartRequired() {
return true;
}
public String getID() {
return "org.openanzo.database.fileLocation";
}
public String getDescription() {
return ""+"Local directory path from where file based database will be loaded.";
}
public String validate(String value) {
return "";
}
public int getType() {
return AnzoAttributeDefinition.STRING;
}
public String[] getOptionValues() {
return null;
}
public String[] getOptionLabels() {
return null;
}
public String[] getDefaultValue() {
return null;
}
public int getCardinality() {
return 0;
}
};
/**
* AnzoAttributeDefinition for "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 AnzoAttributeDefinition ContainerName = new AnzoAttributeDefinition() {
public String getName() {
return "containerName";
}
public boolean isRestartRequired() {
return true;
}
public String getID() {
return "org.openanzo.database.containerName";
}
public String getDescription() {
return ""+"Unique URI to name container of statements and named graphs.";
}
public String validate(String value) {
return "";
}
public int getType() {
return AnzoAttributeDefinition.STRING;
}
public String[] getOptionValues() {
return null;
}
public String[] getOptionLabels() {
return null;
}
public String[] getDefaultValue() {
return null;
}
public int getCardinality() {
return 0;
}
};
/**
* AnzoAttributeDefinition for "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 AnzoAttributeDefinition ClearOnLoad = new AnzoAttributeDefinition() {
public String getName() {
return "clearOnLoad";
}
public boolean isRestartRequired() {
return true;
}
public String getID() {
return "org.openanzo.database.clearOnLoad";
}
public String getDescription() {
return ""+"Flag for whether or not the database should be cleared when the database is first loaded.";
}
public String validate(String value) {
return "";
}
public int getType() {
return AnzoAttributeDefinition.BOOLEAN;
}
public String[] getOptionValues() {
return null;
}
public String[] getOptionLabels() {
return null;
}
public String[] getDefaultValue() {
return new String[] {Boolean.toString(false)};
}
public int getCardinality() {
return 0;
}
};
/**
* AnzoAttributeDefinition for "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 AnzoAttributeDefinition Sqlfile = new AnzoAttributeDefinition() {
public String getName() {
return "sqlfile";
}
public boolean isRestartRequired() {
return true;
}
public String getID() {
return "org.openanzo.database.sqlfile";
}
public String getDescription() {
return ""+"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 String validate(String value) {
return "";
}
public int getType() {
return AnzoAttributeDefinition.STRING;
}
public String[] getOptionValues() {
return null;
}
public String[] getOptionLabels() {
return null;
}
public String[] getDefaultValue() {
return null;
}
public int getCardinality() {
return 0;
}
};
/**
* AnzoAttributeDefinition for "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 AnzoAttributeDefinition Quotechar = new AnzoAttributeDefinition() {
public String getName() {
return "quotechar";
}
public boolean isRestartRequired() {
return true;
}
public String getID() {
return "org.openanzo.database.quotechar";
}
public String getDescription() {
return ""+"Quote char used in queries";
}
public String validate(String value) {
return "";
}
public int getType() {
return AnzoAttributeDefinition.STRING;
}
public String[] getOptionValues() {
return null;
}
public String[] getOptionLabels() {
return null;
}
public String[] getDefaultValue() {
return null;
}
public int getCardinality() {
return 0;
}
};
/**
* AnzoAttributeDefinition for "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 AnzoAttributeDefinition MaxTablenameLength = new AnzoAttributeDefinition() {
public String getName() {
return "maxTablenameLength";
}
public boolean isRestartRequired() {
return true;
}
public String getID() {
return "org.openanzo.database.maxTablenameLength";
}
public String getDescription() {
return ""+"Max length of table names";
}
public String validate(String value) {
try {
int _val = Integer.valueOf(value);
if(_val< 0){return "Value must be greater than 0";}
return "";
} catch (NumberFormatException nfe) {
return "Value is not an Integer";
}
}
public int getType() {
return AnzoAttributeDefinition.INTEGER;
}
public String[] getOptionValues() {
return null;
}
public String[] getOptionLabels() {
return null;
}
public String[] getDefaultValue() {
return new String[] {Integer.toString(64)};
}
public int getCardinality() {
return 0;
}
};
/**
* AnzoAttributeDefinition for "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 AnzoAttributeDefinition UseTempTableInsert = new AnzoAttributeDefinition() {
public String getName() {
return "useTempTableInsert";
}
public boolean isRestartRequired() {
return true;
}
public String getID() {
return "org.openanzo.database.useTempTableInsert";
}
public String getDescription() {
return ""+"Can database use temporary tables for insert operations";
}
public String validate(String value) {
return "";
}
public int getType() {
return AnzoAttributeDefinition.BOOLEAN;
}
public String[] getOptionValues() {
return null;
}
public String[] getOptionLabels() {
return null;
}
public String[] getDefaultValue() {
return new String[] {Boolean.toString(false)};
}
public int getCardinality() {
return 0;
}
};
/**
* AnzoAttributeDefinition for "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 AnzoAttributeDefinition UseTempTableFind = new AnzoAttributeDefinition() {
public String getName() {
return "useTempTableFind";
}
public boolean isRestartRequired() {
return true;
}
public String getID() {
return "org.openanzo.database.useTempTableFind";
}
public String getDescription() {
return ""+"Can database use temporary tables for find operations";
}
public String validate(String value) {
return "";
}
public int getType() {
return AnzoAttributeDefinition.BOOLEAN;
}
public String[] getOptionValues() {
return null;
}
public String[] getOptionLabels() {
return null;
}
public String[] getDefaultValue() {
return new String[] {Boolean.toString(false)};
}
public int getCardinality() {
return 0;
}
};
/**
* AnzoAttributeDefinition for "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 AnzoAttributeDefinition UniqueTempNames = new AnzoAttributeDefinition() {
public String getName() {
return "uniqueTempNames";
}
public boolean isRestartRequired() {
return true;
}
public String getID() {
return "org.openanzo.database.uniqueTempNames";
}
public String getDescription() {
return ""+"Does the database disallow multiple references to the same temporary table within a query.";
}
public String validate(String value) {
return "";
}
public int getType() {
return AnzoAttributeDefinition.BOOLEAN;
}
public String[] getOptionValues() {
return null;
}
public String[] getOptionLabels() {
return null;
}
public String[] getDefaultValue() {
return new String[] {Boolean.toString(false)};
}
public int getCardinality() {
return 0;
}
};
/**
* AnzoAttributeDefinition for "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 AnzoAttributeDefinition SupportsOptionalJoins = new AnzoAttributeDefinition() {
public String getName() {
return "supportsOptionalJoins";
}
public boolean isRestartRequired() {
return true;
}
public String getID() {
return "org.openanzo.database.supportsOptionalJoins";
}
public String getDescription() {
return ""+"Does the database support optional joins";
}
public String validate(String value) {
return "";
}
public int getType() {
return AnzoAttributeDefinition.BOOLEAN;
}
public String[] getOptionValues() {
return null;
}
public String[] getOptionLabels() {
return null;
}
public String[] getDefaultValue() {
return new String[] {Boolean.toString(true)};
}
public int getCardinality() {
return 0;
}
};
/**
* AnzoAttributeDefinition for "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 AnzoAttributeDefinition SupportsSequences = new AnzoAttributeDefinition() {
public String getName() {
return "supportsSequences";
}
public boolean isRestartRequired() {
return true;
}
public String getID() {
return "org.openanzo.database.supportsSequences";
}
public String getDescription() {
return ""+"Does the database support sequences";
}
public String validate(String value) {
return "";
}
public int getType() {
return AnzoAttributeDefinition.BOOLEAN;
}
public String[] getOptionValues() {
return null;
}
public String[] getOptionLabels() {
return null;
}
public String[] getDefaultValue() {
return new String[] {Boolean.toString(false)};
}
public int getCardinality() {
return 0;
}
};
/**
* AnzoAttributeDefinition for "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 AnzoAttributeDefinition SupportsFullouterJoins = new AnzoAttributeDefinition() {
public String getName() {
return "supportsFullouterJoins";
}
public boolean isRestartRequired() {
return true;
}
public String getID() {
return "org.openanzo.database.supportsFullouterJoins";
}
public String getDescription() {
return ""+"Does the database support full outer joins";
}
public String validate(String value) {
return "";
}
public int getType() {
return AnzoAttributeDefinition.BOOLEAN;
}
public String[] getOptionValues() {
return null;
}
public String[] getOptionLabels() {
return null;
}
public String[] getDefaultValue() {
return new String[] {Boolean.toString(false)};
}
public int getCardinality() {
return 0;
}
};
/**
* AnzoAttributeDefinition for "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 AnzoAttributeDefinition SupportsWithClause = new AnzoAttributeDefinition() {
public String getName() {
return "supportsWithClause";
}
public boolean isRestartRequired() {
return true;
}
public String getID() {
return "org.openanzo.database.supportsWithClause";
}
public String getDescription() {
return ""+"Does the database support the WITH clause";
}
public String validate(String value) {
return "";
}
public int getType() {
return AnzoAttributeDefinition.BOOLEAN;
}
public String[] getOptionValues() {
return null;
}
public String[] getOptionLabels() {
return null;
}
public String[] getDefaultValue() {
return new String[] {Boolean.toString(false)};
}
public int getCardinality() {
return 0;
}
};
/**
* AnzoAttributeDefinition for "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 AnzoAttributeDefinition MaxIndexKeyLength = new AnzoAttributeDefinition() {
public String getName() {
return "maxIndexKeyLength";
}
public boolean isRestartRequired() {
return true;
}
public String getID() {
return "org.openanzo.database.maxIndexKeyLength";
}
public String getDescription() {
return ""+"The max length of an index";
}
public String validate(String value) {
try {
int _val = Integer.valueOf(value);
if(_val< 0){return "Value must be greater than 0";}
return "";
} catch (NumberFormatException nfe) {
return "Value is not an Integer";
}
}
public int getType() {
return AnzoAttributeDefinition.INTEGER;
}
public String[] getOptionValues() {
return null;
}
public String[] getOptionLabels() {
return null;
}
public String[] getDefaultValue() {
return new String[] {Integer.toString(64)};
}
public int getCardinality() {
return 0;
}
};
/**
* AnzoAttributeDefinition for "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 AnzoAttributeDefinition MaxLongObjectLength = new AnzoAttributeDefinition() {
public String getName() {
return "maxLongObjectLength";
}
public boolean isRestartRequired() {
return true;
}
public String getID() {
return "org.openanzo.database.maxLongObjectLength";
}
public String getDescription() {
return ""+"The max length of a node's value before using the long table.";
}
public String validate(String value) {
try {
int _val = Integer.valueOf(value);
if(_val< 0){return "Value must be greater than 0";}
return "";
} catch (NumberFormatException nfe) {
return "Value is not an Integer";
}
}
public int getType() {
return AnzoAttributeDefinition.INTEGER;
}
public String[] getOptionValues() {
return null;
}
public String[] getOptionLabels() {
return null;
}
public String[] getDefaultValue() {
return new String[] {Integer.toString(64)};
}
public int getCardinality() {
return 0;
}
};
/**
* AnzoAttributeDefinition for "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 AnzoAttributeDefinition UsesUppercase = new AnzoAttributeDefinition() {
public String getName() {
return "usesUppercase";
}
public boolean isRestartRequired() {
return true;
}
public String getID() {
return "org.openanzo.database.usesUppercase";
}
public String getDescription() {
return ""+"Does the database use all uppercase strings for table and column names";
}
public String validate(String value) {
return "";
}
public int getType() {
return AnzoAttributeDefinition.BOOLEAN;
}
public String[] getOptionValues() {
return null;
}
public String[] getOptionLabels() {
return null;
}
public String[] getDefaultValue() {
return new String[] {Boolean.toString(false)};
}
public int getCardinality() {
return 0;
}
};
/**
* AnzoAttributeDefinition for "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 AnzoAttributeDefinition UsesUppercaseTempTables = new AnzoAttributeDefinition() {
public String getName() {
return "usesUppercaseTempTables";
}
public boolean isRestartRequired() {
return true;
}
public String getID() {
return "org.openanzo.database.usesUppercaseTempTables";
}
public String getDescription() {
return ""+"Does the database use all uppercase strings for temporary tables and column names";
}
public String validate(String value) {
return "";
}
public int getType() {
return AnzoAttributeDefinition.BOOLEAN;
}
public String[] getOptionValues() {
return null;
}
public String[] getOptionLabels() {
return null;
}
public String[] getDefaultValue() {
return new String[] {Boolean.toString(false)};
}
public int getCardinality() {
return 0;
}
};
/**
* AnzoAttributeDefinition for "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 AnzoAttributeDefinition SessionPrefix = new AnzoAttributeDefinition() {
public String getName() {
return "sessionPrefix";
}
public boolean isRestartRequired() {
return true;
}
public String getID() {
return "org.openanzo.database.sessionPrefix";
}
public String getDescription() {
return ""+"Prefix prepended to start of temporary tables";
}
public String validate(String value) {
return "";
}
public int getType() {
return AnzoAttributeDefinition.STRING;
}
public String[] getOptionValues() {
return null;
}
public String[] getOptionLabels() {
return null;
}
public String[] getDefaultValue() {
return null;
}
public int getCardinality() {
return 0;
}
};
/**
* AnzoAttributeDefinition for "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 AnzoAttributeDefinition SupportsTableLocks = new AnzoAttributeDefinition() {
public String getName() {
return "supportsTableLocks";
}
public boolean isRestartRequired() {
return true;
}
public String getID() {
return "org.openanzo.database.supportsTableLocks";
}
public String getDescription() {
return ""+"Does the database support table locks";
}
public String validate(String value) {
return "";
}
public int getType() {
return AnzoAttributeDefinition.BOOLEAN;
}
public String[] getOptionValues() {
return null;
}
public String[] getOptionLabels() {
return null;
}
public String[] getDefaultValue() {
return new String[] {Boolean.toString(false)};
}
public int getCardinality() {
return 0;
}
};
/**
* AnzoAttributeDefinition for "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 AnzoAttributeDefinition SupportsTableUnLocks = new AnzoAttributeDefinition() {
public String getName() {
return "supportsTableUnLocks";
}
public boolean isRestartRequired() {
return true;
}
public String getID() {
return "org.openanzo.database.supportsTableUnLocks";
}
public String getDescription() {
return ""+"Does the database support explicit table unlocks";
}
public String validate(String value) {
return "";
}
public int getType() {
return AnzoAttributeDefinition.BOOLEAN;
}
public String[] getOptionValues() {
return null;
}
public String[] getOptionLabels() {
return null;
}
public String[] getDefaultValue() {
return new String[] {Boolean.toString(false)};
}
public int getCardinality() {
return 0;
}
};
/**
* AnzoAttributeDefinition for "org.openanzo.database.nodeCacheSize"
* Size of node cache
*
* Examples:
* Default is 25000
*/
public static final AnzoAttributeDefinition NodeCacheSize = new AnzoAttributeDefinition() {
public String getName() {
return "nodeCacheSize";
}
public boolean isRestartRequired() {
return true;
}
public String getID() {
return "org.openanzo.database.nodeCacheSize";
}
public String getDescription() {
return ""+"Size of node cache";
}
public String validate(String value) {
try {
int _val = Integer.valueOf(value);
if(_val< 0){return "Value must be greater than 0";}
return "";
} catch (NumberFormatException nfe) {
return "Value is not an Integer";
}
}
public int getType() {
return AnzoAttributeDefinition.INTEGER;
}
public String[] getOptionValues() {
return null;
}
public String[] getOptionLabels() {
return null;
}
public String[] getDefaultValue() {
return null;
}
public int getCardinality() {
return 0;
}
};
/**
* AnzoAttributeDefinition for "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 AnzoAttributeDefinition UseHardReset = new AnzoAttributeDefinition() {
public String getName() {
return "useHardReset";
}
public boolean isRestartRequired() {
return true;
}
public String getID() {
return "org.openanzo.database.useHardReset";
}
public String getDescription() {
return ""+"Does the database need to drop all tables for a reset, instead of just deleting the rows from the existing tables";
}
public String validate(String value) {
return "";
}
public int getType() {
return AnzoAttributeDefinition.BOOLEAN;
}
public String[] getOptionValues() {
return null;
}
public String[] getOptionLabels() {
return null;
}
public String[] getDefaultValue() {
return new String[] {Boolean.toString(false)};
}
public int getCardinality() {
return 0;
}
};
/**
* AnzoAttributeDefinition for "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 AnzoAttributeDefinition BigInt = new AnzoAttributeDefinition() {
public String getName() {
return "bigInt";
}
public boolean isRestartRequired() {
return true;
}
public String getID() {
return "org.openanzo.database.bigInt";
}
public String getDescription() {
return ""+"The text required within a create table operation for specifying a BIGINT";
}
public String validate(String value) {
return "";
}
public int getType() {
return AnzoAttributeDefinition.STRING;
}
public String[] getOptionValues() {
return null;
}
public String[] getOptionLabels() {
return null;
}
public String[] getDefaultValue() {
return null;
}
public int getCardinality() {
return 0;
}
};
/**
* AnzoAttributeDefinition for "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 AnzoAttributeDefinition DropTableSuffix = new AnzoAttributeDefinition() {
public String getName() {
return "dropTableSuffix";
}
public boolean isRestartRequired() {
return true;
}
public String getID() {
return "org.openanzo.database.dropTableSuffix";
}
public String getDescription() {
return ""+"The text added to the end of a table drop command.";
}
public String validate(String value) {
return "";
}
public int getType() {
return AnzoAttributeDefinition.STRING;
}
public String[] getOptionValues() {
return null;
}
public String[] getOptionLabels() {
return null;
}
public String[] getDefaultValue() {
return null;
}
public int getCardinality() {
return 0;
}
};
/**
* AnzoAttributeDefinition for "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 AnzoAttributeDefinition ForceTempTablePurge = new AnzoAttributeDefinition() {
public String getName() {
return "forceTempTablePurge";
}
public boolean isRestartRequired() {
return true;
}
public String getID() {
return "org.openanzo.database.forceTempTablePurge";
}
public String getDescription() {
return ""+"True if temporary tables need to be explicitly purged after using.";
}
public String validate(String value) {
return "";
}
public int getType() {
return AnzoAttributeDefinition.BOOLEAN;
}
public String[] getOptionValues() {
return null;
}
public String[] getOptionLabels() {
return null;
}
public String[] getDefaultValue() {
return null;
}
public int getCardinality() {
return 0;
}
};
/**
* AnzoAttributeDefinition for "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 AnzoAttributeDefinition ForceTempTableCreation = new AnzoAttributeDefinition() {
public String getName() {
return "forceTempTableCreation";
}
public boolean isRestartRequired() {
return true;
}
public String getID() {
return "org.openanzo.database.forceTempTableCreation";
}
public String getDescription() {
return ""+"Force the creation of temporary tables, even if they are already showing up in the catalog.";
}
public String validate(String value) {
return "";
}
public int getType() {
return AnzoAttributeDefinition.BOOLEAN;
}
public String[] getOptionValues() {
return null;
}
public String[] getOptionLabels() {
return null;
}
public String[] getDefaultValue() {
return null;
}
public int getCardinality() {
return 0;
}
};
/**
* AnzoAttributeDefinition for "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 AnzoAttributeDefinition IndexSuffix = new AnzoAttributeDefinition() {
public String getName() {
return "indexSuffix";
}
public boolean isRestartRequired() {
return true;
}
public String getID() {
return "org.openanzo.database.indexSuffix";
}
public String getDescription() {
return ""+"Text to add to the end of a create index call";
}
public String validate(String value) {
return "";
}
public int getType() {
return AnzoAttributeDefinition.STRING;
}
public String[] getOptionValues() {
return null;
}
public String[] getOptionLabels() {
return null;
}
public String[] getDefaultValue() {
return null;
}
public int getCardinality() {
return 0;
}
};
/**
* AnzoAttributeDefinition for "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 AnzoAttributeDefinition SingleRowOptimizationString = new AnzoAttributeDefinition() {
public String getName() {
return "singleRowOptimizationString";
}
public boolean isRestartRequired() {
return true;
}
public String getID() {
return "org.openanzo.database.singleRowOptimizationString";
}
public String getDescription() {
return ""+"Text added to the end of a query that is expected to return 1 row";
}
public String validate(String value) {
return "";
}
public int getType() {
return AnzoAttributeDefinition.STRING;
}
public String[] getOptionValues() {
return null;
}
public String[] getOptionLabels() {
return null;
}
public String[] getDefaultValue() {
return null;
}
public int getCardinality() {
return 0;
}
};
/**
* AnzoAttributeDefinition for "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 AnzoAttributeDefinition SmallInt = new AnzoAttributeDefinition() {
public String getName() {
return "smallInt";
}
public boolean isRestartRequired() {
return true;
}
public String getID() {
return "org.openanzo.database.smallInt";
}
public String getDescription() {
return ""+"The text required within a create table operation for specifying a SMALLINT";
}
public String validate(String value) {
return "";
}
public int getType() {
return AnzoAttributeDefinition.STRING;
}
public String[] getOptionValues() {
return null;
}
public String[] getOptionLabels() {
return null;
}
public String[] getDefaultValue() {
return null;
}
public int getCardinality() {
return 0;
}
};
/**
* AnzoAttributeDefinition for "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 AnzoAttributeDefinition VarChar = new AnzoAttributeDefinition() {
public String getName() {
return "varChar";
}
public boolean isRestartRequired() {
return true;
}
public String getID() {
return "org.openanzo.database.varChar";
}
public String getDescription() {
return ""+"The text required within a create table operation for specifying a VARCHAR";
}
public String validate(String value) {
return "";
}
public int getType() {
return AnzoAttributeDefinition.STRING;
}
public String[] getOptionValues() {
return null;
}
public String[] getOptionLabels() {
return null;
}
public String[] getDefaultValue() {
return null;
}
public int getCardinality() {
return 0;
}
};
/**
* AnzoAttributeDefinition for "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 AnzoAttributeDefinition Blob = new AnzoAttributeDefinition() {
public String getName() {
return "blob";
}
public boolean isRestartRequired() {
return true;
}
public String getID() {
return "org.openanzo.database.blob";
}
public String getDescription() {
return ""+"The text required within a create table operation for specifying a BLOB";
}
public String validate(String value) {
return "";
}
public int getType() {
return AnzoAttributeDefinition.STRING;
}
public String[] getOptionValues() {
return null;
}
public String[] getOptionLabels() {
return null;
}
public String[] getDefaultValue() {
return null;
}
public int getCardinality() {
return 0;
}
};
/**
* AnzoAttributeDefinition for "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 AnzoAttributeDefinition SupportsIsolation = new AnzoAttributeDefinition() {
public String getName() {
return "supportsIsolation";
}
public boolean isRestartRequired() {
return true;
}
public String getID() {
return "org.openanzo.database.supportsIsolation";
}
public String getDescription() {
return ""+"True if this database supports setting isolation levels on the jdbc driver";
}
public String validate(String value) {
return "";
}
public int getType() {
return AnzoAttributeDefinition.BOOLEAN;
}
public String[] getOptionValues() {
return null;
}
public String[] getOptionLabels() {
return null;
}
public String[] getDefaultValue() {
return null;
}
public int getCardinality() {
return 0;
}
};
/**
* AnzoAttributeDefinition for "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 AnzoAttributeDefinition SupportsIndividualBatchUpdates = new AnzoAttributeDefinition() {
public String getName() {
return "supportsIndividualBatchUpdates";
}
public boolean isRestartRequired() {
return true;
}
public String getID() {
return "org.openanzo.database.supportsIndividualBatchUpdates";
}
public String getDescription() {
return ""+"True if the database supports batch operations where individual batch calls fail";
}
public String validate(String value) {
return "";
}
public int getType() {
return AnzoAttributeDefinition.BOOLEAN;
}
public String[] getOptionValues() {
return null;
}
public String[] getOptionLabels() {
return null;
}
public String[] getDefaultValue() {
return null;
}
public int getCardinality() {
return 0;
}
};
/**
* AnzoAttributeDefinition for "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 AnzoAttributeDefinition TableCreateSuffix = new AnzoAttributeDefinition() {
public String getName() {
return "tableCreateSuffix";
}
public boolean isRestartRequired() {
return true;
}
public String getID() {
return "org.openanzo.database.tableCreateSuffix";
}
public String getDescription() {
return ""+"Text added to the end of a table creation call";
}
public String validate(String value) {
return "";
}
public int getType() {
return AnzoAttributeDefinition.STRING;
}
public String[] getOptionValues() {
return null;
}
public String[] getOptionLabels() {
return null;
}
public String[] getDefaultValue() {
return null;
}
public int getCardinality() {
return 0;
}
};
/**
* AnzoAttributeDefinition for "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 AnzoAttributeDefinition TableLockSuffix = new AnzoAttributeDefinition() {
public String getName() {
return "tableLockSuffix";
}
public boolean isRestartRequired() {
return true;
}
public String getID() {
return "org.openanzo.database.tableLockSuffix";
}
public String getDescription() {
return ""+"Text added to the end of a lock table call";
}
public String validate(String value) {
return "";
}
public int getType() {
return AnzoAttributeDefinition.STRING;
}
public String[] getOptionValues() {
return null;
}
public String[] getOptionLabels() {
return null;
}
public String[] getDefaultValue() {
return null;
}
public int getCardinality() {
return 0;
}
};
/**
* AnzoAttributeDefinition for "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 AnzoAttributeDefinition TextFieldSuffix = new AnzoAttributeDefinition() {
public String getName() {
return "textFieldSuffix";
}
public boolean isRestartRequired() {
return true;
}
public String getID() {
return "org.openanzo.database.textFieldSuffix";
}
public String getDescription() {
return ""+"Text added to the end of a text field definition within a create table call.";
}
public String validate(String value) {
return "";
}
public int getType() {
return AnzoAttributeDefinition.STRING;
}
public String[] getOptionValues() {
return null;
}
public String[] getOptionLabels() {
return null;
}
public String[] getDefaultValue() {
return null;
}
public int getCardinality() {
return 0;
}
};
/**
* AnzoAttributeDefinition for "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 AnzoAttributeDefinition GeneratedIdString = new AnzoAttributeDefinition() {
public String getName() {
return "generatedIdString";
}
public boolean isRestartRequired() {
return true;
}
public String getID() {
return "org.openanzo.database.generatedIdString";
}
public String getDescription() {
return ""+"The text required within a create table operation for specifying a generated id column";
}
public String validate(String value) {
return "";
}
public int getType() {
return AnzoAttributeDefinition.STRING;
}
public String[] getOptionValues() {
return null;
}
public String[] getOptionLabels() {
return null;
}
public String[] getDefaultValue() {
return null;
}
public int getCardinality() {
return 0;
}
};
/**
* AnzoAttributeDefinition for "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 AnzoAttributeDefinition RequiresTempTablespace = new AnzoAttributeDefinition() {
public String getName() {
return "requiresTempTablespace";
}
public boolean isRestartRequired() {
return true;
}
public String getID() {
return "org.openanzo.database.requiresTempTablespace";
}
public String getDescription() {
return ""+"True if this database requires the creation of a temporary tablespace";
}
public String validate(String value) {
return "";
}
public int getType() {
return AnzoAttributeDefinition.BOOLEAN;
}
public String[] getOptionValues() {
return null;
}
public String[] getOptionLabels() {
return null;
}
public String[] getDefaultValue() {
return null;
}
public int getCardinality() {
return 0;
}
};
/**
* AnzoAttributeDefinition for "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 AnzoAttributeDefinition CanonicalTableName = new AnzoAttributeDefinition() {
public String getName() {
return "canonicalTableName";
}
public boolean isRestartRequired() {
return true;
}
public String getID() {
return "org.openanzo.database.canonicalTableName";
}
public String getDescription() {
return ""+"Name of table used to determine if database is initialized";
}
public String validate(String value) {
return "";
}
public int getType() {
return AnzoAttributeDefinition.STRING;
}
public String[] getOptionValues() {
return null;
}
public String[] getOptionLabels() {
return null;
}
public String[] getDefaultValue() {
return null;
}
public int getCardinality() {
return 0;
}
};
/**
* AnzoAttributeDefinition for "org.openanzo.database.initializationFiles"
* Comma separated list of files that are used to initialize database at creation time.
*
* Examples:
*
*/
public static final AnzoAttributeDefinition InitializationFiles = new AnzoAttributeDefinition() {
public String getName() {
return "initializationFiles";
}
public boolean isRestartRequired() {
return true;
}
public String getID() {
return "org.openanzo.database.initializationFiles";
}
public String getDescription() {
return ""+"Comma separated list of files that are used to initialize database at creation time.";
}
public String validate(String value) {
return "";
}
public int getType() {
return AnzoAttributeDefinition.STRING;
}
public String[] getOptionValues() {
return null;
}
public String[] getOptionLabels() {
return null;
}
public String[] getDefaultValue() {
return null;
}
public int getCardinality() {
return 0;
}
};
/**
* AnzoAttributeDefinition for "org.openanzo.database.supportsIdentity"
* Supports identity.
*
* Examples:
*
*/
public static final AnzoAttributeDefinition SupportsIdentity = new AnzoAttributeDefinition() {
public String getName() {
return "supportsIdentity";
}
public boolean isRestartRequired() {
return true;
}
public String getID() {
return "org.openanzo.database.supportsIdentity";
}
public String getDescription() {
return ""+"Supports identity.";
}
public String validate(String value) {
return "";
}
public int getType() {
return AnzoAttributeDefinition.BOOLEAN;
}
public String[] getOptionValues() {
return null;
}
public String[] getOptionLabels() {
return null;
}
public String[] getDefaultValue() {
return null;
}
public int getCardinality() {
return 0;
}
};
/**
* AnzoAttributeDefinition for "org.openanzo.database.supportsLimitOffset"
* Supports Limit Offset queries.
*
* Examples:
*
*/
public static final AnzoAttributeDefinition SupportsLimitOffset = new AnzoAttributeDefinition() {
public String getName() {
return "supportsLimitOffset";
}
public boolean isRestartRequired() {
return true;
}
public String getID() {
return "org.openanzo.database.supportsLimitOffset";
}
public String getDescription() {
return ""+"Supports Limit Offset queries.";
}
public String validate(String value) {
return "";
}
public int getType() {
return AnzoAttributeDefinition.BOOLEAN;
}
public String[] getOptionValues() {
return null;
}
public String[] getOptionLabels() {
return null;
}
public String[] getDefaultValue() {
return null;
}
public int getCardinality() {
return 0;
}
};
/**
* AnzoAttributeDefinition for "org.openanzo.database.limitTransactionSize"
* Limit the transactions size.
*
* Examples:
*
*/
public static final AnzoAttributeDefinition LimitTransactionSize = new AnzoAttributeDefinition() {
public String getName() {
return "limitTransactionSize";
}
public boolean isRestartRequired() {
return true;
}
public String getID() {
return "org.openanzo.database.limitTransactionSize";
}
public String getDescription() {
return ""+"Limit the transactions size.";
}
public String validate(String value) {
return "";
}
public int getType() {
return AnzoAttributeDefinition.BOOLEAN;
}
public String[] getOptionValues() {
return null;
}
public String[] getOptionLabels() {
return null;
}
public String[] getDefaultValue() {
return null;
}
public int getCardinality() {
return 0;
}
};
/**
* AnzoAttributeDefinition for "org.openanzo.database.validationQuery"
* Query that validates the connection is still valid.
*
* Examples:
*
*/
public static final AnzoAttributeDefinition ValidationQuery = new AnzoAttributeDefinition() {
public String getName() {
return "validationQuery";
}
public boolean isRestartRequired() {
return true;
}
public String getID() {
return "org.openanzo.database.validationQuery";
}
public String getDescription() {
return ""+"Query that validates the connection is still valid.";
}
public String validate(String value) {
return "";
}
public int getType() {
return AnzoAttributeDefinition.STRING;
}
public String[] getOptionValues() {
return null;
}
public String[] getOptionLabels() {
return null;
}
public String[] getDefaultValue() {
return null;
}
public int getCardinality() {
return 0;
}
};
}