|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.common.rdb.container.CoreDBConfiguration
public class CoreDBConfiguration
| Constructor Summary | |
|---|---|
CoreDBConfiguration()
Core configuration properties for jdbc connections |
|
| Method Summary | |
|---|---|
java.lang.String |
getBigInt()
Get the SQL String for BigInt declaration |
boolean |
getClearOnStartup()
Get the clear on startup flag |
java.lang.String |
getDBContainerName()
Get the container name |
java.lang.String |
getDriverClassName()
Get the driver's class name |
java.lang.String |
getDropExtras()
Get the SQL string needed by this database at the end of the standard drop table call |
java.lang.String |
getFileLocation()
Get the file_location for file based rdbs |
boolean |
getForceTempCreation()
Determine if the database requires a forced creation of temporary tables |
boolean |
getForceTempTablePurge()
Determine if connection needs to force a clear on temporary tables |
java.lang.String |
getIndexSuffix()
Get the string to add to the end of index creation |
java.lang.String |
getJdbcUrl()
Get the JDBC url for connections |
java.lang.String |
getLiteralFalse()
Get the string that the database uses to represent FALSE |
java.lang.String |
getLiteralTrue()
Get the string that the database uses to represent TRUE |
int |
getMaxIndexKeyLength()
Get the max length an index key can be |
int |
getMaxLongObjectLength()
Get the max length of a long object |
int |
getMaxTablenameLength()
Get the max table name length |
int |
getNodeCacheSize()
Get the size of the caches for the ID->Node and Node->ID maps |
java.lang.String |
getOptimizationString()
Get the String containing any extra sql text to be added to the end of a query |
java.lang.String |
getPassword()
Get the password |
java.lang.String |
getQuoteChar()
Get the quote char |
boolean |
getRequiresUniqueTempNames()
Determine if the database requires unique temporary table names |
java.lang.String |
getSessionPrefix()
Get the sessionPrefix for temporary tables |
java.lang.String |
getSmallInt()
Get the SQL String for SmallInt declaration |
java.lang.String |
getSqlFilename()
Get the sql filename |
boolean |
getSupportsFullouterJoins()
Determine if the db supports full outer joins |
boolean |
getSupportsIsolation()
Determine if the database supports transaction isolation modes |
boolean |
getSupportsSequences()
Determine if the db supports sequences |
boolean |
getSupportsTableLocks()
Determine if the database supports table locks |
boolean |
getSupportsTableUnLocks()
Determine if the database supports table unlocks |
boolean |
getSupportsTempForInsert()
Determine if the db should use temporary tables during insert operations |
boolean |
getSupportsTempOnFind()
Determine if the db should use temporary tables during find operations |
boolean |
getSupportsWithClause()
Determine if the database supports the WITH clause |
java.lang.String |
getTableCreateExtras()
Get the String containing any extra sql text to be added to the end of a create table call |
java.lang.String |
getTableLocksExtras()
Get the string needed at the end of a table lock call |
java.lang.String |
getTextFieldExtras()
Get the String containing any extra sql needed as part of a text column definition |
java.lang.String |
getType()
|
java.lang.String |
getUniqueTempName(java.lang.String name,
int index)
Return a temporary table name, with an appended number string if the table requires unique temporary table names |
java.lang.String |
getUrlPostfix()
Get the string to add to the end of all jdbc urls |
java.lang.String |
getUrlPrefix()
Get the string to add to the start of all jdbc urls |
java.lang.String |
getUser()
Get the database user |
boolean |
getUsesUppercase()
Determine if the database uses all uppercase table and column names |
boolean |
getUsesUppercaseTempTables()
Determine if the database uses all uppercase temporary table and column names |
java.lang.String |
getVarChar()
Get the SQL String for VarChar declaration |
void |
setClearOnStartup(boolean clear)
Set the clear on startup flag |
void |
setDBContainerName(java.lang.String containerName)
Set the container's name |
void |
setDriverClassName(java.lang.String driver)
Set the jdbc driver's class name |
void |
setDropExtras(java.lang.String dropExtras)
Set the SQL string needed by this database at the end of the standard drop table call |
void |
setFileLocation(java.lang.String file_location)
Set the file location for file based rdbs |
void |
setForceTempCreation(boolean forceTempTableCreation)
Set if the database requires a forced creation of temporary tables |
void |
setForceTempTablePurge(boolean forceTempTablePurge)
Set if connection needs to force a clear on temporary tables |
void |
setJBDCUrl(java.lang.String url)
Set the jdbc URL |
void |
setLiteralFalse(java.lang.String literalFalse)
Set the string that the database uses to represent FALSE |
void |
setLiteralTrue(java.lang.String literalTrue)
Set the string that the database uses to represent TRUE |
void |
setMaxIndexKeyLength(int max_index_key_length)
Set the max length an index key can be |
void |
setMaxLongObjectLength(int max_long_object_length)
Set the max length of a long object |
void |
setMaxTablenameLength(int max_tablename_length)
Set the max table name length |
void |
setNodeCacheSize(int nodeCacheSize)
Set the size of the caches for the ID->Node and Node->ID maps |
void |
setOptimizationString(java.lang.String optimizationString)
Set the String containing any extra sql text to be added to the end of a query |
void |
setPassword(java.lang.String password)
Set the password |
void |
setQuoteChar(java.lang.String quote_char)
Set the quote char |
void |
setRequiresUniqueTempNames(boolean uniqueTempNames)
Set if the database requires unique temporary table names |
void |
setSessionPrefix(java.lang.String sessionPrefix)
Set the sessionPrefix for temporary tables |
void |
setSqlFilename(java.lang.String sql_filename)
Set the sql filename |
void |
setSupportsFullouterJoins(boolean supports_fullouter_joins)
Set if the db supports full outer joins |
void |
setSupportsSequences(boolean supports_sequences)
Set if the database supports sequences |
void |
setSupportsTableLocks(boolean supportsTableLocks)
Set if database supports table locks |
void |
setSupportsTableUnLocks(boolean supportsTableUnLocks)
Set if database supports table unlocks |
void |
setSupportsTempForInsert(boolean use_temp_inserts)
Set if the database should use temporary tables during find operations |
void |
setSupportsTempOnFind(boolean use_temp_find)
Set if the database should use temporary tables during find operations |
void |
setSupportsWithClause(boolean supports_with_clause)
Set if the database supports the WITH clause |
void |
setTableCreateExtras(java.lang.String tableCreateExtras)
Set the String containing any extra sql text to be added to the end of a create table call |
void |
setTableLocksExtras(java.lang.String tableLocksExtras)
Set the String needed at the end of a table lock call |
void |
setTextFieldExtras(java.lang.String textFieldExtras)
Set the String containing any extra sql needed as part of a text column definition |
void |
setType(java.lang.String type)
Set the db type string |
void |
setUrlPostfix(java.lang.String url_postfix)
Set the string to add to the end of all jdbc urls |
void |
setUrlPrefix(java.lang.String url_prefix)
Set the string to add to the end of all jdbc urls |
void |
setUser(java.lang.String user)
Set the database user |
void |
setUsesUppercase(boolean uses_uppercase)
Set if the database uses all uppercase table and column names |
void |
setUsesUppercaseTempTables(boolean uses_uppercase_temptables)
Set if the database uses all uppercase temporary table and column names |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CoreDBConfiguration()
| Method Detail |
|---|
public boolean getClearOnStartup()
public void setClearOnStartup(boolean clear)
clear - true if the database is should be cleared on startpublic java.lang.String getDBContainerName()
public void setDBContainerName(java.lang.String containerName)
containerName - the container's namepublic java.lang.String getDriverClassName()
public void setDriverClassName(java.lang.String driver)
driver - the jdbc driver's class namepublic java.lang.String getFileLocation()
public void setFileLocation(java.lang.String file_location)
file_location - the file_location to setpublic int getMaxIndexKeyLength()
public void setMaxIndexKeyLength(int max_index_key_length)
max_index_key_length - the max_index_key_length to setpublic int getMaxLongObjectLength()
public void setMaxLongObjectLength(int max_long_object_length)
max_long_object_length - the max_long_object_length to setpublic int getMaxTablenameLength()
public void setMaxTablenameLength(int max_tablename_length)
max_tablename_length - the max tablename length to setpublic java.lang.String getPassword()
public void setPassword(java.lang.String password)
password - the password to setpublic java.lang.String getQuoteChar()
public void setQuoteChar(java.lang.String quote_char)
quote_char - the quote char to setpublic java.lang.String getSqlFilename()
public void setSqlFilename(java.lang.String sql_filename)
sql_filename - the sql filename to setpublic boolean getSupportsFullouterJoins()
public void setSupportsFullouterJoins(boolean supports_fullouter_joins)
supports_fullouter_joins - supports full outer joinspublic boolean getSupportsSequences()
public void setSupportsSequences(boolean supports_sequences)
supports_sequences - flag if the database supports sequencespublic boolean getSupportsTempOnFind()
public void setSupportsTempOnFind(boolean use_temp_find)
use_temp_find - if the database should use temporary tables during find operationspublic boolean getSupportsTempForInsert()
public void setSupportsTempForInsert(boolean use_temp_inserts)
use_temp_inserts - db should use temporary tables during find operationspublic boolean getSupportsWithClause()
public void setSupportsWithClause(boolean supports_with_clause)
supports_with_clause - db supports the WITH clausepublic java.lang.String getType()
public void setType(java.lang.String type)
type - the db typepublic void setJBDCUrl(java.lang.String url)
url - the jdbc urlpublic java.lang.String getUrlPostfix()
public void setUrlPostfix(java.lang.String url_postfix)
url_postfix - the string to add to the end of all jdbc urlspublic java.lang.String getUrlPrefix()
public void setUrlPrefix(java.lang.String url_prefix)
url_prefix - the string to add to the end of all jdbc urlspublic java.lang.String getUser()
public void setUser(java.lang.String user)
user - the usernamepublic boolean getUsesUppercase()
public void setUsesUppercase(boolean uses_uppercase)
uses_uppercase - if the database uses all uppercase table and column namespublic boolean getUsesUppercaseTempTables()
public void setUsesUppercaseTempTables(boolean uses_uppercase_temptables)
uses_uppercase_temptables - if the database uses all uppercase temporary table and column namespublic java.lang.String getJdbcUrl()
public java.lang.String getSessionPrefix()
public void setSessionPrefix(java.lang.String sessionPrefix)
sessionPrefix - the sessionPrefix for temporary tablespublic boolean getForceTempTablePurge()
public void setForceTempTablePurge(boolean forceTempTablePurge)
forceTempTablePurge - if connection needs to force a clear on temporary tablespublic java.lang.String getIndexSuffix()
public java.lang.String getOptimizationString()
public void setOptimizationString(java.lang.String optimizationString)
optimizationString - the String containing any extra sql text to be added to the end of a querypublic java.lang.String getTableCreateExtras()
public void setTableCreateExtras(java.lang.String tableCreateExtras)
tableCreateExtras - the String containing any extra sql text to be added to the end of a create table callpublic java.lang.String getTextFieldExtras()
public void setTextFieldExtras(java.lang.String textFieldExtras)
textFieldExtras - the String containing any extra sql needed as part of a text column definitionpublic boolean getSupportsTableLocks()
public void setSupportsTableLocks(boolean supportsTableLocks)
supportsTableLocks - if database supports table lockspublic boolean getSupportsTableUnLocks()
public void setSupportsTableUnLocks(boolean supportsTableUnLocks)
supportsTableUnLocks - if database supports table unlockspublic java.lang.String getTableLocksExtras()
public void setTableLocksExtras(java.lang.String tableLocksExtras)
tableLocksExtras - the String needed at the end of a table lock callpublic java.lang.String getSmallInt()
public java.lang.String getBigInt()
public java.lang.String getVarChar()
public boolean getSupportsIsolation()
public boolean getRequiresUniqueTempNames()
public void setRequiresUniqueTempNames(boolean uniqueTempNames)
uniqueTempNames - if the database requires unique temporary table namespublic java.lang.String getLiteralTrue()
public void setLiteralTrue(java.lang.String literalTrue)
literalTrue - the string that the database uses to represent TRUEpublic java.lang.String getLiteralFalse()
public void setLiteralFalse(java.lang.String literalFalse)
literalFalse - the string that the database uses to represent FALSEpublic boolean getForceTempCreation()
public void setForceTempCreation(boolean forceTempTableCreation)
forceTempTableCreation - if the database requires a forced creation of temporary tablespublic java.lang.String getDropExtras()
public void setDropExtras(java.lang.String dropExtras)
dropExtras - the SQL string needed by this database at the end of the standard drop table call
public java.lang.String getUniqueTempName(java.lang.String name,
int index)
name - name of tableindex - this occurrence of the temporary table name in the query
public int getNodeCacheSize()
public void setNodeCacheSize(int nodeCacheSize)
nodeCacheSize - the size of the caches for the ID->Node and Node->ID maps
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||