|
DODS 7.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lutris.appserver.server.sql.standard.DatabaseConfiguration
public class DatabaseConfiguration
TableConfiguration contains parameters about table configuration. It reads these parameters from application's configuration file, sets them to new values or returns their current values.
Field Summary |
---|
Constructor Summary | |
---|---|
DatabaseConfiguration(java.lang.String database)
|
|
DatabaseConfiguration(java.lang.String database,
DatabaseManagerConfiguration DbManagerConf)
|
Method Summary | |
---|---|
boolean |
getAutoSave()
Returns AutoSave parameter. |
boolean |
getAutoSaveCreateVirgin()
Returns AutoSaveCreateVirgin parameter. |
boolean |
getAutoWrite()
Returns AutoWrite parameter. |
double |
getCachePercentage()
|
boolean |
getCaseSensitive()
Returns CaseSensitive parameter. |
java.lang.String |
getConnectionAllocatorName()
|
java.lang.String |
getDBConnectionFactoryName()
|
java.lang.String |
getDBTransactionFactoryName()
|
int |
getDeadlockRetryCount()
Returns DeadlockRetryCount parameter. |
int |
getDeadlockWaitTime()
Returns DeadlockWaitTime parameter. |
int |
getDefaultFetchSize()
Returns DefaultFetchSize parameter. |
int |
getDefaultMaxRows()
|
boolean |
getDeleteCheckVersion()
Returns DeleteCheckVersion parameter. |
boolean |
getDisableFetchSizeWithMaxRows()
Returns UseCursorName parameter. |
java.lang.String |
getDodsCacheFactory()
|
int |
getFullCacheCountLimit()
|
boolean |
getIncrementVersions()
Returns IncrementVersions parameter. |
boolean |
getInitAllCaches()
Returns InitAllCaches parameter. |
java.lang.String |
getInitCachesResultSetConcurrency()
|
java.lang.String |
getInitCachesResultSetType()
|
int |
getInitialCacheFetchSize()
|
int |
getInitialDSCacheSize()
|
int |
getMaxCacheSize()
Returns maxCacheSize parameter. |
int |
getMaxComplexCacheSize()
Returns maxComplexCacheSize parameter. |
int |
getMaxExecuteTime()
Returns maxExecuteTime parameter. |
int |
getMaxExecuteTimeCacheInit()
Returns the max time above which query is printed (SQL statement, execution time and maxExecutionTime) in application's log file durung the cache initialization. |
int |
getMaxMultiJoinCacheSize()
Returns maxMultiJoinCacheSize parameter. |
int |
getMaxSimpleCacheSize()
Returns maxSimpleCacheSize parameter. |
int |
getObjectIdentityType()
|
java.lang.String |
getQueryCacheImplClass()
|
java.lang.Integer |
getQueryTimeLimit()
|
int |
getQueryTimeLimitCacheInit()
Returns max number of milliseconds for which the query for cache initialization should be executed and the resulset read from ResultSet. |
int |
getQueryTimeout()
Returns QueryTimeout parameter. |
int |
getQueryTimeoutCacheInit()
Returns the number of seconds for which the query for cache initialization should be executed. |
double |
getReserveFactor()
Returns reserveFactor parameter. |
int |
getResultSetConcurrency()
Returns ResultSetConcurrency parameter. |
int |
getResultSetType()
Returns ResultSetType parameter. |
boolean |
getSelectOids()
Returns selectOids parameter. |
int |
getSimpleCacheRowCountLimit()
Returns the max number of rows in the table until which the simple cache is used. |
int |
getSynchLoadRowCountLimit()
Returns the max number of rows in the table above which the asynch cache load is performed, no matter how are configuration parameters for asynch cache load defined. |
boolean |
getTransactionCaches()
Returns TransactionCaches parameter. |
boolean |
getTransactionCheck()
Returns TransactionCheck parameter. |
java.lang.Boolean |
getUseCursorName()
Returns UseCursorName parameter. |
int |
getXaDefaultTimeout()
|
java.lang.String |
getXaJtaSupport()
|
java.lang.String |
getXaTransactionManagerLookupName()
|
int |
getXaUsageCase()
|
java.lang.String |
getXaUserTransactionLookupName()
|
java.lang.String |
getXaWrappedTransImplFactory()
|
boolean |
isAllReadOnly()
Returns readOnly parameter. |
boolean |
isCaseInsensitiveDatabase()
|
boolean |
isCursorless()
|
boolean |
isLazyLoading()
Returns lazyLoading parameter. |
boolean |
isSqlBatch()
|
void |
readDatabaseConfiguration()
Reads database configuration parameters. |
protected void |
setAutoSave(boolean newCheck)
Sets AutoSave parameter to value newCheck. |
protected void |
setAutoSaveCreateVirgin(boolean newCheck)
Sets AutoSaveCreateVirgin parameter to value newCheck. |
protected void |
setAutoWrite(boolean newCheck)
Sets AutoWrite parameter to value newCheck. |
protected void |
setCachePercentage(double percent)
|
void |
setCaseInsensitiveDatabase(boolean caseInsensitiveDatabase)
|
void |
setCaseSensitive(boolean newValue)
Set CaseSensitive parameter to newValue value. |
void |
setConnectionAllocatorName(java.lang.String string)
|
protected void |
setCursorless(boolean cursorless)
|
void |
setDBConnectionFactoryName(java.lang.String string)
|
void |
setDBTransactionFactoryName(java.lang.String string)
|
protected void |
setDeadlockRetryCount(int newValue)
Sets DeadlockRetryCount parameter to value newValue. |
protected void |
setDeadlockWaitTime(int waitTime)
Sets DeadlockWaitTime parameter to value waitTime. |
protected void |
setDefaultFetchSize(int newValue)
Sets DefaultFetchSize parameter to value newValue. |
protected void |
setDefaultMaxRows(int defaultMaxRows)
|
protected void |
setDeleteCheckVersion(boolean newCheck)
Sets DeleteCheckVersion parameter to value newCheck. |
void |
setDisableFetchSizeWithMaxRows(boolean newValue)
Sets DisableFetchSizeWithMaxRows parameter. |
void |
setDodsCacheFactory(java.lang.String dods_cache_factory)
|
void |
setFullCacheCountLimit(int i)
|
protected void |
setIncrementVersions(boolean newValue)
Sets IncrementVersions parameter. |
protected void |
setInitAllCaches(boolean newValue)
Sets InitAllCaches parameter to value newValue. |
void |
setInitCachesResultSetConcurrency(java.lang.String string)
|
void |
setInitCachesResultSetType(java.lang.String string)
|
void |
setInitialCacheFetchSize(int i)
|
void |
setInitialDSCacheSize(int i)
|
protected void |
setLazyLoading(boolean newlazyLoading)
Sets lazyLoading parameter to value newlazyLoading. |
protected void |
setMaxCacheSize(int newMaxCacheSize)
Sets maxCacheSize parameter to value newMaxCacheSize. |
protected void |
setMaxComplexCacheSize(int newMaxCacheSize)
Sets maxComplexCacheSize parameter to value newMaxCacheSize. |
protected void |
setMaxExecuteTime(int newMaxExecuteTime)
Sets maxExecuteTime parameter to value newMaxExecuteTime. |
protected void |
setMaxExecuteTimeCacheInit(int maxExeTime)
Sets the max time above which query is printed (SQL statement, execution time and maxExecutionTime) in application's log file durung the cache initialization. |
protected void |
setMaxMultiJoinCacheSize(int newMaxCacheSize)
Sets maxMultiJoinCacheSize parameter to value newMaxCacheSize. |
protected void |
setMaxSimpleCacheSize(int newMaxCacheSize)
Sets maxSimpleCacheSize parameter to value newMaxCacheSize. |
void |
setObjectIdentityType(int objectIdentityType)
|
void |
setQueryCacheImplClass(java.lang.String string)
|
void |
setQueryTimeLimit(java.lang.Integer queryTimeLimit)
|
protected void |
setQueryTimeLimitCacheInit(int timeLimit)
Sets max number of milliseconds for which the query for cache initialization should be executed and the resulset read from ResultSet. |
protected void |
setQueryTimeout(int newValue)
Sets QueryTimeout parameter to value newValue. |
protected void |
setQueryTimeoutCacheInit(int timeout)
Sets the number of seconds for which the query for cache initialization should be executed. |
protected void |
setReadOnly(boolean newReadOnly)
Sets readOnly parameter to value newReadOnly. |
protected void |
setReserveFactor(double newReserveFactor)
Sets reserveFactor parameter to value newReserveFactor. |
void |
setResultSetConcurrency(int newValue)
Sets ResultSetConcurrency parameter. |
void |
setResultSetType(int newValue)
Sets ResultSetType parameter. |
protected void |
setSelectOids(boolean newValue)
Sets selectOids parameter. |
protected void |
setSimpleCacheRowCountLimit(int rowCount)
Sets the max number of rows in the table until which the simple cache is used. |
void |
setSqlBatch(boolean b)
|
protected void |
setSynchLoadRowCountLimit(int rowCount)
Sets the max number of rows in the table above which the asynch cache load is performed, no matter how are configuration parameters for asynch cache load defined. |
protected void |
setTransactionCaches(boolean newCheck)
Sets TransactionCaches parameter to value newCheck. |
protected void |
setTransactionCheck(boolean newCheck)
Sets TransactionCheck parameter to value newCheck. |
void |
setUseCursorName(boolean newValue)
Sets UseCursorName parameter. |
void |
setUseCursorName(java.lang.Boolean newValue)
Sets UseCursorName parameter. |
void |
setXaDefaultTimeout(int xaDefaultTimeout)
|
void |
setXaJtaSupport(java.lang.String xaJtaSupport)
|
void |
setXaTransactionManagerLookupName(java.lang.String xaTransactionManagerLookupName)
|
void |
setXaUsageCase(int xaUsageCase)
|
void |
setXaUserTransactionLookupName(java.lang.String xaUserTransactionLookupName)
|
void |
setXaWrappedTransImplFactory(java.lang.String xaWrappedTransImplFactory)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DatabaseConfiguration(java.lang.String database)
public DatabaseConfiguration(java.lang.String database, DatabaseManagerConfiguration DbManagerConf)
Method Detail |
---|
public boolean isAllReadOnly()
protected void setReadOnly(boolean newReadOnly) throws AssertionDataObjectException
newReadOnly
- New read-only value.
AssertionDataObjectException
- If new value of read-only is
false, but all application's tables are read-only.public boolean isLazyLoading()
protected void setLazyLoading(boolean newlazyLoading)
newlazyLoading
- New lazy-loading value.public int getMaxExecuteTime()
protected void setMaxExecuteTime(int newMaxExecuteTime)
newMaxExecuteTime
- New maxExecuteTime value.public int getMaxCacheSize()
protected void setMaxCacheSize(int newMaxCacheSize)
newMaxCacheSize
- New newMaxCacheSize value.public double getReserveFactor()
protected void setReserveFactor(double newReserveFactor)
newReserveFactor
- New reserveFactor value.protected void setCachePercentage(double percent)
public double getCachePercentage()
public int getMaxComplexCacheSize()
protected void setMaxComplexCacheSize(int newMaxCacheSize)
newMaxCacheSize
- New newMaxComplexCacheSize value.public int getMaxMultiJoinCacheSize()
protected void setMaxMultiJoinCacheSize(int newMaxCacheSize)
newMaxCacheSize
- New maxMultiJoinCacheSize value.public int getMaxSimpleCacheSize()
protected void setMaxSimpleCacheSize(int newMaxCacheSize)
newMaxCacheSize
- New newMaxCacheSize value.public boolean getTransactionCheck()
protected void setTransactionCheck(boolean newCheck)
newCheck
- New TransactionCheck value.public boolean getDeleteCheckVersion()
protected void setDeleteCheckVersion(boolean newCheck)
newCheck
- New DeleteCheckVersion value.public boolean getAutoSave()
protected void setAutoSave(boolean newCheck)
newCheck
- New AutoSave value.public boolean getAutoSaveCreateVirgin()
protected void setAutoSaveCreateVirgin(boolean newCheck)
newCheck
- New AutoSaveCreateVirgin value.public boolean getAutoWrite()
protected void setAutoWrite(boolean newCheck)
newCheck
- New AutoWrite value.public boolean getTransactionCaches()
protected void setTransactionCaches(boolean newCheck)
newCheck
- New TransactionCaches value.public int getDeadlockWaitTime()
protected void setDeadlockWaitTime(int waitTime)
waitTime
- New DeadlockWaitTime value.public int getDeadlockRetryCount()
protected void setDeadlockRetryCount(int newValue)
newValue
- New DeadlockRetryCount value.public boolean getInitAllCaches()
protected void setInitAllCaches(boolean newValue)
newValue
- New InitAllCaches value.public int getDefaultFetchSize()
protected void setDefaultFetchSize(int newValue)
newValue
- New DefaultFetchSize value.public int getQueryTimeout()
protected void setQueryTimeout(int newValue)
newValue
- New QueryTimeout value.public boolean getSelectOids()
protected void setSelectOids(boolean newValue)
newValue
- New selectOids value.public boolean getIncrementVersions()
protected void setIncrementVersions(boolean newValue)
newValue
- New IncrementVersions value.public java.lang.Boolean getUseCursorName()
public void setUseCursorName(boolean newValue)
newValue
- New UseCursorName value.public void setUseCursorName(java.lang.Boolean newValue)
newValue
- New UseCursorName value.public boolean getDisableFetchSizeWithMaxRows()
public void setDisableFetchSizeWithMaxRows(boolean newValue)
newValue
- New UseCursorName value.public int getResultSetType()
public void setResultSetType(int newValue)
newValue
- New ResultSetType value.public int getResultSetConcurrency()
public void setResultSetConcurrency(int newValue)
newValue
- New ResultSetConcurrency value.public java.lang.String getDBTransactionFactoryName()
public void setDBTransactionFactoryName(java.lang.String string)
string
- public java.lang.String getConnectionAllocatorName()
public void setConnectionAllocatorName(java.lang.String string)
string
- public int getFullCacheCountLimit()
public void setFullCacheCountLimit(int i)
public void readDatabaseConfiguration()
public boolean getCaseSensitive()
public void setCaseSensitive(boolean newValue)
newValue
- New value for CaseSensitive parameterpublic java.lang.String getDBConnectionFactoryName()
public void setDBConnectionFactoryName(java.lang.String string)
string
- public int getInitialCacheFetchSize()
public int getInitialDSCacheSize()
public void setInitialCacheFetchSize(int i)
i
- public void setInitialDSCacheSize(int i)
i
- public java.lang.String getQueryCacheImplClass()
public void setQueryCacheImplClass(java.lang.String string)
string
- public java.lang.String getInitCachesResultSetConcurrency()
public java.lang.String getInitCachesResultSetType()
public void setInitCachesResultSetConcurrency(java.lang.String string)
string
- public void setInitCachesResultSetType(java.lang.String string)
string
- public boolean isSqlBatch()
public void setSqlBatch(boolean b)
b
- public boolean isCaseInsensitiveDatabase()
public void setCaseInsensitiveDatabase(boolean caseInsensitiveDatabase)
caseInsensitiveDatabase
- The caseInsensitiveDatabase to set.public java.lang.Integer getQueryTimeLimit()
public void setQueryTimeLimit(java.lang.Integer queryTimeLimit)
queryTimeLimit
- The queryTimeLimit to set.public int getXaDefaultTimeout()
public void setXaDefaultTimeout(int xaDefaultTimeout)
xaDefaultTimeout
- The xaDefaultTimeout to set.public java.lang.String getXaTransactionManagerLookupName()
public void setXaTransactionManagerLookupName(java.lang.String xaTransactionManagerLookupName)
xaTransactionManagerLookupName
- The xaTransactionManagerLookupName to set.public int getXaUsageCase()
public void setXaUsageCase(int xaUsageCase)
xaUsageCase
- The xaUsageCase to set.public java.lang.String getXaWrappedTransImplFactory()
public void setXaWrappedTransImplFactory(java.lang.String xaWrappedTransImplFactory)
xaWrappedTransImplFactory
- The xaWrappedTransImplFactory to set.public java.lang.String getXaUserTransactionLookupName()
public void setXaUserTransactionLookupName(java.lang.String xaUserTransactionLookupName)
xaUserTransactionLookupName
- The xaUserTransactionLookupName to set.public java.lang.String getXaJtaSupport()
public void setXaJtaSupport(java.lang.String xaJtaSupport)
xaJtaSupport
- The xaJtaSupport to set.public java.lang.String getDodsCacheFactory()
public void setDodsCacheFactory(java.lang.String dods_cache_factory)
dods_cache_factory
- The dods_cache_factory to set.public int getObjectIdentityType()
public void setObjectIdentityType(int objectIdentityType)
objectIdentityType
- The objectIdentityType to set.public int getSimpleCacheRowCountLimit()
protected void setSimpleCacheRowCountLimit(int rowCount)
rowCount
- the max number of rows in the table until which
the simple cache is used.public int getSynchLoadRowCountLimit()
protected void setSynchLoadRowCountLimit(int rowCount)
rowCount
- the max number of rows in the table above which the
asynch cache load is performed.public int getMaxExecuteTimeCacheInit()
protected void setMaxExecuteTimeCacheInit(int maxExeTime)
maxExeTime
- new value for max execution time for the cache
initialization.public int getQueryTimeLimitCacheInit()
protected void setQueryTimeLimitCacheInit(int timeLimit)
timeLimit
- new value for time limit for cache initialization.public int getQueryTimeoutCacheInit()
protected void setQueryTimeoutCacheInit(int timeout)
timeout
- new value for query timeout for cache initialization.public boolean isCursorless()
protected void setCursorless(boolean cursorless)
public int getDefaultMaxRows()
protected void setDefaultMaxRows(int defaultMaxRows)
|
DODS 7.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |