DODS 7.3 API

com.lutris.appserver.server.sql
Class DatabaseManagerConfiguration

java.lang.Object
  extended by com.lutris.appserver.server.sql.DatabaseManagerConfiguration
All Implemented Interfaces:
DriverSpecificConstants, CacheConstants

public class DatabaseManagerConfiguration
extends java.lang.Object
implements CacheConstants, DriverSpecificConstants

DatabaseManagerConfiguration contains parameters about defaults configuration. It reads these parameters from application's configuration file - defaults section.

Version:
1.0 01.09.2003.
Author:
Sinisa Milosevic

Field Summary
 
Fields inherited from interface org.enhydra.dods.cache.CacheConstants
COMPLEX_QUERY_CACHE, DATA_CACHE, DATA_CACHING, DEFAULT_All_READONLY, DEFAULT_APP_NAME, DEFAULT_ASYNCH_LOAD_PRIORITY, DEFAULT_ASYNCH_LOAD_THREAD_NUM, DEFAULT_AUTO_SAVE, DEFAULT_AUTO_SAVE_CREATE_VIRGIN, DEFAULT_AUTO_WRITE, DEFAULT_CACHE_PERCENTAGE, DEFAULT_CACHE_PERSISTENCE_ON_DISABLE_CACHING, DEFAULT_CACHE_PERSISTENCE_ON_SHUTDOWN, DEFAULT_CASE_SENSITIVE, DEFAULT_DEADLOCK_READ_TIME, DEFAULT_DEADLOCK_RETRY_NUMBER, DEFAULT_DEFAULT_FETCH_SIZE, DEFAULT_DELETE_CHECK_VERSION, DEFAULT_DODS_CACHE_FACTORY, DEFAULT_FULL_CACHE_COUNT_LIMIT, DEFAULT_INCREMENT_VERSIONS, DEFAULT_INITIAL_ALL_CACHES, DEFAULT_INITIAL_CACHE_FETCH_SIZE, DEFAULT_INITIAL_CONDITION, DEFAULT_INITIAL_DS_CACHE_SIZE, DEFAULT_LAZY_LOADING, DEFAULT_MAX_CACHE_SIZE, DEFAULT_MAX_COMPLEX_QUERY_CACHE_SIZE, DEFAULT_MAX_EXECUTE_TIME, DEFAULT_MAX_EXECUTE_TIME_CACHE_INIT, DEFAULT_MAX_MULTI_JOIN_QUERY_CACHE_SIZE, DEFAULT_MAX_SIMPLE_QUERY_CACHE_SIZE, DEFAULT_QUERY_TIME_LIMIT_CACHE_INIT, DEFAULT_QUERY_TIMEOUT, DEFAULT_QUERY_TIMEOUT_CACHE_INIT, DEFAULT_READONLY, DEFAULT_RESERVE_FACTOR, DEFAULT_SELECT_OIDS, DEFAULT_SIMPLE_CACHE_ROW_COUNT_LIMIT, DEFAULT_SYNCH_LOAD_ROW_COUNT_LIMIT, DEFAULT_TRANSACTION_CACHES, DEFAULT_TRANSACTION_CHECK, FULL_CACHE_COUNT_LIMIT, MULTI_JOIN_QUERY_CACHE, PARAMNAME_ALL_READ_ONLY, PARAMNAME_APP_NAME, PARAMNAME_ASYNCH_LOAD_PRIORITY, PARAMNAME_ASYNCH_LOAD_THREAD_NUM, PARAMNAME_AUTO_SAVE, PARAMNAME_AUTO_SAVE_CREATE_VIRGIN, PARAMNAME_AUTO_WRITE, PARAMNAME_CACHE_PERCENTAGE, PARAMNAME_CACHE_PERSISTENCE_ON_DISABLE_CACHING, PARAMNAME_CACHE_PERSISTENCE_ON_SHUTDOWN, PARAMNAME_CACHE_PERSISTENCE_ROOT, PARAMNAME_CASE_SENSITIVE, PARAMNAME_DEADLOCK_READ_TIME, PARAMNAME_DEADLOCK_RETRY_NUMBER, PARAMNAME_DEFAULT_FETCH_SIZE, PARAMNAME_DELETE_CHECK_VERSION, PARAMNAME_DODS_CACHE_FACTORY, PARAMNAME_INCREMENT_VERSIONS, PARAMNAME_INITIAL_ALL_CACHES, PARAMNAME_INITIAL_CACHE_FETCH_SIZE, PARAMNAME_INITIAL_CONDITION, PARAMNAME_INITIAL_DS_CACHE_SIZE, PARAMNAME_LAZY_LOADING, PARAMNAME_MAX_CACHE_SIZE, PARAMNAME_MAX_COMPLEX_CACHE_SIZE, PARAMNAME_MAX_EXECUTE_TIME, PARAMNAME_MAX_EXECUTE_TIME_CACHE_INIT, PARAMNAME_MAX_MULTI_JOIN_CACHE_SIZE, PARAMNAME_MAX_SIMPLE_CACHE_SIZE, PARAMNAME_QUERY_TIME_LIMIT_CACHE_INIT, PARAMNAME_QUERY_TIMEOUT, PARAMNAME_QUERY_TIMEOUT_CACHE_INIT, PARAMNAME_READ_ONLY, PARAMNAME_RESERVE_FACTOR, PARAMNAME_SELECT_OIDS, PARAMNAME_SIMPLE_CACHE_ROW_COUNT_LIMIT, PARAMNAME_SYNCH_LOAD_ROW_COUNT_LIMIT, PARAMNAME_TRANSACTION_CACHES, PARAMNAME_TRANSACTION_CHECK, QUERY_CACHING, SIMPLE_QUERY_CACHE
 
Fields inherited from interface com.lutris.appserver.server.sql.standard.DriverSpecificConstants
DEFAULT_CUSTOM_NOT_EQUAL_SQL_OPERATOR, DEFAULT_DISABLE_FETCH_SIZE_WITH_MAX_ROWS, DEFAULT_PREPARE_STATEMENT_CACHE_LATENCY, DEFAULT_RESULT_SET_CONCURRENCY, DEFAULT_RESULT_SET_TYPE, DEFAULT_SET_BOOLEAN_AS_STRING, DEFAULT_SET_BYTES_AS_BINARY_STREAM, DEFAULT_SET_BYTES_AS_LONGVARBINARY, DEFAULT_SET_NULL_AS_VARCHAR, DEFAULT_USE_BINARY_STREAM_FOR_LONGVARCHAR, DEFAULT_USE_CURSOR_NAME, DEFAULT_USE_PREFIX_WITH_UPDATE, DEFAULT_USE_TOP_SYNTAX, PARAMNAME_CUSTOM_NOT_EQUAL_SQL_OPERATOR, PARAMNAME_DISABLE_FETCH_SIZE_WITH_MAX_ROWS, PARAMNAME_PREPARE_STATEMENT_CACHE_LATENCY, PARAMNAME_RESULT_SET_CONCURRENCY, PARAMNAME_RESULT_SET_TYPE, PARAMNAME_SET_BOOLEAN_AS_STRING, PARAMNAME_SET_BYTES_AS_BINARY_STREAM, PARAMNAME_SET_BYTES_AS_LONGVARBINARY, PARAMNAME_SET_NULL_AS_VARCHAR, PARAMNAME_USE_BINARY_STREAM_FOR_LONGVARCHAR, PARAMNAME_USE_CURSOR_NAME, PARAMNAME_USE_PREFIX_WITH_UPDATE, PARAMNAME_USE_TOP_SYNTAX, UNDEFINED_PREPARE_STATEMENT_CACHE_LATENCY
 
Constructor Summary
DatabaseManagerConfiguration()
           
 
Method Summary
 int getAsynchLoadThreadNum()
          Returns the number of threads used for asynchronous cache initialization.
 boolean getAutoSave()
          Returns AutoSave parameter.
 boolean getAutoSaveCreateVirgin()
          Returns AutoSaveCreateVirgin parameter.
 boolean getAutoWrite()
          Returns AutoWrite parameter.
 double getCachePercentage()
           
 java.lang.String getCachePersistenceRoot()
           
 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.
 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 for which the query is not printed 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 max number of seconds for which the query for cache initialization should be executed.
 double getReserveFactor()
          Returns reserveFactor parameter.
 boolean getSelectOids()
          Returns selectOids parameter.
 int getSimpleCacheRowCountLimit()
          Returns max number of rows in the table for which is simple cache still used.
 int getSynchLoadRowCountLimit()
          Returns the max number of rows in the table for which the synchronous cache load is performed if defined by configuration.
 boolean getTransactionCaches()
          Returns TransactionCaches parameter.
 boolean getTransactionCheck()
          Returns TransactionCheck parameter.
 java.lang.Boolean getUseCursorName()
          Returns UseCursorName parameter.
 java.lang.String getUserConfigSingleWildcard()
          Returns UserConfigSingleWildcard parameter.
 java.lang.String getUserConfigSingleWildcardEscape()
          Returns UserConfigSingleWildcardEscape parameter.
 java.lang.String getUserConfigWildcard()
          Returns UserConfigWildcard parameter.
 java.lang.String getUserConfigWildcardEscape()
          Returns UserConfigWildcardEscape parameter.
 int getXaDefaultTimeout()
           
 java.lang.String getXaJtaSupport()
           
 java.lang.String getXaTransactionManagerLookupName()
           
 int getXaUsageCase()
           
 java.lang.String getXaUserTransactionLookupName()
           
 java.lang.String getXaWrappedTransImplFactory()
           
 boolean isAllReadOnly()
          Returns AllReadOnly parameter.
 boolean isCachePersistenceOnDisableCaching()
           
 boolean isCachePersistenceOnShutdown()
           
 boolean isCaseInsensitiveDatabase()
           
 boolean isCursorless()
           
 boolean isLazyLoading()
          Returns lazyLoading parameter.
 boolean isSqlBatch()
           
 void readDatabaseManagerConfiguration()
          Reads table configuration parameters.
 void setAllReadOnly(boolean newValue)
          Sets AllReadOnly parameter to value string.
protected  void setAsynchLoadThreadNum(int asynchLoadThreadNum)
          Sets the number of threads used for asynchronous cache initialization.
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)
           
protected  void setCachePersistenceOnDisableCaching(boolean cachePersistenceOnDisableCaching)
           
protected  void setCachePersistenceOnShutdown(boolean cachePersistenceOnShutdown)
           
protected  void setCachePersistenceRoot(java.lang.String cachePersistenceRoot)
           
 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 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 for which the query is not printed 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 max number of seconds for which the query for cache initialization should be executed.
protected  void setReserveFactor(double newReserveFactor)
          Sets reserveFactor parameter to value newReserveFactor.
protected  void setSelectOids(boolean newValue)
          Sets selectOids parameter.
protected  void setSimpleCacheRowCountLimit(int rowCount)
          Sets the max number of rows in the table for which is simple cache still used.
 void setSqlBatch(boolean b)
           
protected  void setSynchLoadRowCountLimit(int rowCount)
          Sets the max number of rows in the table for which the synchronous cache load is performed if defined by configuration.
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 to value newValue.
 void setUseCursorName(java.lang.Boolean newValue)
          Sets UseCursorName parameter to value newValue.
 void setUserConfigSingleWildcard(java.lang.String newValue)
          Sets UserConfigSingleWildcard parameter to value string.
 void setUserConfigSingleWildcardEscape(java.lang.String newValue)
          Sets UserConfigSingleWildcardEscape parameter to value string.
 void setUserConfigWildcard(java.lang.String newValue)
          Sets UserConfigWildcard parameter to value string.
 void setUserConfigWildcardEscape(java.lang.String newValue)
          Sets UserConfigWildcardEscape parameter to value string.
 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

DatabaseManagerConfiguration

public DatabaseManagerConfiguration()
Method Detail

isLazyLoading

public boolean isLazyLoading()
Returns lazyLoading parameter.

Returns:
true if the table supports lazy-loading, otherwise false.

getCaseSensitive

public boolean getCaseSensitive()
Returns CaseSensitive parameter.

Returns:
value of CaseSensitive parameter.

setCaseSensitive

public void setCaseSensitive(boolean newValue)
Set CaseSensitive parameter to newValue value.

Parameters:
newValue - New value for CaseSensitive parameter

setLazyLoading

protected void setLazyLoading(boolean newlazyLoading)
Sets lazyLoading parameter to value newlazyLoading.

Parameters:
newlazyLoading - New lazy-loading value.

getMaxExecuteTime

public int getMaxExecuteTime()
Returns maxExecuteTime parameter.

Returns:
Maximal time in miliseconds for Event log.

setMaxExecuteTime

protected void setMaxExecuteTime(int newMaxExecuteTime)
Sets maxExecuteTime parameter to value newMaxExecuteTime.

Parameters:
newMaxExecuteTime - New maxExecuteTime value.

getMaxCacheSize

public int getMaxCacheSize()
Returns maxCacheSize parameter.

Returns:
Maximal cache size.

setMaxCacheSize

protected void setMaxCacheSize(int newMaxCacheSize)
Sets maxCacheSize parameter to value newMaxCacheSize.

Parameters:
newMaxCacheSize - New maxCacheSize value.

getReserveFactor

public double getReserveFactor()
Returns reserveFactor parameter.

Returns:
reserveFactor double value

setReserveFactor

protected void setReserveFactor(double newReserveFactor)
Sets reserveFactor parameter to value newReserveFactor.

Parameters:
newReserveFactor - New reserveFactor value.

setCachePercentage

protected void setCachePercentage(double percent)

getCachePercentage

public double getCachePercentage()

getMaxComplexCacheSize

public int getMaxComplexCacheSize()
Returns maxComplexCacheSize parameter.

Returns:
Maximal complex query cache size.

setMaxComplexCacheSize

protected void setMaxComplexCacheSize(int newMaxCacheSize)
Sets maxComplexCacheSize parameter to value newMaxCacheSize.

Parameters:
newMaxCacheSize - New newMaxComplexCacheSize value.

getMaxMultiJoinCacheSize

public int getMaxMultiJoinCacheSize()
Returns maxMultiJoinCacheSize parameter.

Returns:
Maximal complex query cache size.

setMaxMultiJoinCacheSize

protected void setMaxMultiJoinCacheSize(int newMaxCacheSize)
Sets maxMultiJoinCacheSize parameter to value newMaxCacheSize.

Parameters:
newMaxCacheSize - New maxMultiJoinCacheSize value.

getMaxSimpleCacheSize

public int getMaxSimpleCacheSize()
Returns maxSimpleCacheSize parameter.

Returns:
Maximal cache size.

setMaxSimpleCacheSize

protected void setMaxSimpleCacheSize(int newMaxCacheSize)
Sets maxSimpleCacheSize parameter to value newMaxCacheSize.

Parameters:
newMaxCacheSize - New newMaxCacheSize value.

getTransactionCheck

public boolean getTransactionCheck()
Returns TransactionCheck parameter.

Returns:
TransactionCheck value.

setTransactionCheck

protected void setTransactionCheck(boolean newCheck)
Sets TransactionCheck parameter to value newCheck.

Parameters:
newCheck - New TransactionCheck value.

getDeleteCheckVersion

public boolean getDeleteCheckVersion()
Returns DeleteCheckVersion parameter.

Returns:
DeleteCheckVersion parameter value.

setDeleteCheckVersion

protected void setDeleteCheckVersion(boolean newCheck)
Sets DeleteCheckVersion parameter to value newCheck.

Parameters:
newCheck - New DeleteCheckVersion value.

getAutoSave

public boolean getAutoSave()
Returns AutoSave parameter.

Returns:
AutoSave parameter value.

setAutoSave

protected void setAutoSave(boolean newCheck)
Sets AutoSave parameter to value newCheck.

Parameters:
newCheck - New AutoSave value.

getAutoSaveCreateVirgin

public boolean getAutoSaveCreateVirgin()
Returns AutoSaveCreateVirgin parameter.

Returns:
AutoSaveCreateVirgin parameter value.

setAutoSaveCreateVirgin

protected void setAutoSaveCreateVirgin(boolean newCheck)
Sets AutoSaveCreateVirgin parameter to value newCheck.

Parameters:
newCheck - New AutoSaveCreateVirgin value.

getAutoWrite

public boolean getAutoWrite()
Returns AutoWrite parameter.

Returns:
AutoWrite parameter value.

setAutoWrite

protected void setAutoWrite(boolean newCheck)
Sets AutoWrite parameter to value newCheck.

Parameters:
newCheck - New AutoWrite value.

getTransactionCaches

public boolean getTransactionCaches()
Returns TransactionCaches parameter.

Returns:
TransactionCaches parameter value.

setTransactionCaches

protected void setTransactionCaches(boolean newCheck)
Sets TransactionCaches parameter to value newCheck.

Parameters:
newCheck - New TransactionCaches value.

getDeadlockWaitTime

public int getDeadlockWaitTime()
Returns DeadlockWaitTime parameter.

Returns:
DeadlockWaitTime parameter value.

setDeadlockWaitTime

protected void setDeadlockWaitTime(int waitTime)
Sets DeadlockWaitTime parameter to value waitTime.

Parameters:
waitTime - New DeadlockWaitTime value.

getDeadlockRetryCount

public int getDeadlockRetryCount()
Returns DeadlockRetryCount parameter.

Returns:
DeadlockRetryCount parameter value.

setDeadlockRetryCount

protected void setDeadlockRetryCount(int newValue)
Sets DeadlockRetryCount parameter to value newValue.

Parameters:
newValue - New DeadlockRetryCount value.

getQueryTimeout

public int getQueryTimeout()
Returns QueryTimeout parameter.

Returns:
QueryTimeout parameter value.

setQueryTimeout

protected void setQueryTimeout(int newValue)
Sets QueryTimeout parameter to value newValue.

Parameters:
newValue - New QueryTimeout value.

getSelectOids

public boolean getSelectOids()
Returns selectOids parameter.

Returns:
selectStatement parameter value.

setSelectOids

protected void setSelectOids(boolean newValue)
Sets selectOids parameter.

Parameters:
newValue - New selectOids value.

getIncrementVersions

public boolean getIncrementVersions()
Returns IncrementVersions parameter.

Returns:
IncrementVersions parameter value.

setIncrementVersions

protected void setIncrementVersions(boolean newValue)
Sets IncrementVersions parameter.

Parameters:
newValue - New IncrementVersions value.

getDefaultFetchSize

public int getDefaultFetchSize()
Returns DefaultFetchSize parameter.

Returns:
DefaultFetchSize parameter value.

setDefaultFetchSize

protected void setDefaultFetchSize(int newValue)
Sets DefaultFetchSize parameter to value newValue.

Parameters:
newValue - New DefaultFetchSize value.

getInitAllCaches

public boolean getInitAllCaches()
Returns InitAllCaches parameter.

Returns:
InitAllCaches parameter value.

setInitAllCaches

protected void setInitAllCaches(boolean newValue)
Sets InitAllCaches parameter to value newValue.

Parameters:
newValue - New InitAllCaches value.

getUseCursorName

public java.lang.Boolean getUseCursorName()
Returns UseCursorName parameter.

Returns:
Returns UseCursorName parameter.

setUseCursorName

public void setUseCursorName(boolean newValue)
Sets UseCursorName parameter to value newValue.

Parameters:
newValue - New UseCursorName value.

setUseCursorName

public void setUseCursorName(java.lang.Boolean newValue)
Sets UseCursorName parameter to value newValue.

Parameters:
newValue - New UseCursorName value.

getUserConfigSingleWildcard

public java.lang.String getUserConfigSingleWildcard()
Returns UserConfigSingleWildcard parameter.

Returns:
Returns UserConfigSingleWildcard parameter.

getUserConfigSingleWildcardEscape

public java.lang.String getUserConfigSingleWildcardEscape()
Returns UserConfigSingleWildcardEscape parameter.

Returns:
Returns UserConfigSingleWildcardEscape parameter.

getUserConfigWildcard

public java.lang.String getUserConfigWildcard()
Returns UserConfigWildcard parameter.

Returns:
Returns UserConfigWildcard parameter.

getUserConfigWildcardEscape

public java.lang.String getUserConfigWildcardEscape()
Returns UserConfigWildcardEscape parameter.

Returns:
Returns UserConfigWildcardEscape parameter.

setUserConfigSingleWildcard

public void setUserConfigSingleWildcard(java.lang.String newValue)
Sets UserConfigSingleWildcard parameter to value string.

Parameters:
newValue - New value for UserConfigSingleWildcard

setUserConfigSingleWildcardEscape

public void setUserConfigSingleWildcardEscape(java.lang.String newValue)
Sets UserConfigSingleWildcardEscape parameter to value string.

Parameters:
newValue - New value for UserConfigSingleWildcardEscape

setUserConfigWildcard

public void setUserConfigWildcard(java.lang.String newValue)
Sets UserConfigWildcard parameter to value string.

Parameters:
newValue - New value for UserConfigWildcard

setUserConfigWildcardEscape

public void setUserConfigWildcardEscape(java.lang.String newValue)
Sets UserConfigWildcardEscape parameter to value string.

Parameters:
newValue - New value for UserConfigWildcardEscape

isAllReadOnly

public boolean isAllReadOnly()
Returns AllReadOnly parameter.

Returns:
Returns AllReadOnly parameter.

setAllReadOnly

public void setAllReadOnly(boolean newValue)
Sets AllReadOnly parameter to value string.

Parameters:
newValue - New value for AllReadOnly

getDBTransactionFactoryName

public java.lang.String getDBTransactionFactoryName()

setDBTransactionFactoryName

public void setDBTransactionFactoryName(java.lang.String string)
Parameters:
string -

getConnectionAllocatorName

public java.lang.String getConnectionAllocatorName()
Returns:
connectionAllocatorName

setConnectionAllocatorName

public void setConnectionAllocatorName(java.lang.String string)
Parameters:
string -

getFullCacheCountLimit

public int getFullCacheCountLimit()

setFullCacheCountLimit

public void setFullCacheCountLimit(int i)
Parameters:
i - New SimpleCacheCountLimit value;

readDatabaseManagerConfiguration

public void readDatabaseManagerConfiguration()
Reads table configuration parameters.


getDBConnectionFactoryName

public java.lang.String getDBConnectionFactoryName()

setDBConnectionFactoryName

public void setDBConnectionFactoryName(java.lang.String string)
Parameters:
string -

getInitialCacheFetchSize

public int getInitialCacheFetchSize()

getInitialDSCacheSize

public int getInitialDSCacheSize()

setInitialCacheFetchSize

public void setInitialCacheFetchSize(int i)
Parameters:
i -

setInitialDSCacheSize

public void setInitialDSCacheSize(int i)
Parameters:
i -

getQueryCacheImplClass

public java.lang.String getQueryCacheImplClass()

setQueryCacheImplClass

public void setQueryCacheImplClass(java.lang.String string)
Parameters:
string -

getInitCachesResultSetConcurrency

public java.lang.String getInitCachesResultSetConcurrency()

getInitCachesResultSetType

public java.lang.String getInitCachesResultSetType()

setInitCachesResultSetConcurrency

public void setInitCachesResultSetConcurrency(java.lang.String string)
Parameters:
string -

setInitCachesResultSetType

public void setInitCachesResultSetType(java.lang.String string)
Parameters:
string -

isSqlBatch

public boolean isSqlBatch()

setSqlBatch

public void setSqlBatch(boolean b)
Parameters:
b -

isCaseInsensitiveDatabase

public boolean isCaseInsensitiveDatabase()
Returns:
Returns the caseInsensitiveDatabase.

setCaseInsensitiveDatabase

public void setCaseInsensitiveDatabase(boolean caseInsensitiveDatabase)
Parameters:
caseInsensitiveDatabase - The caseInsensitiveDatabase to set.

getQueryTimeLimit

public java.lang.Integer getQueryTimeLimit()
Returns:
Returns the queryTimeLimit.

setQueryTimeLimit

public void setQueryTimeLimit(java.lang.Integer queryTimeLimit)
Parameters:
queryTimeLimit - The queryTimeLimit to set.

getXaDefaultTimeout

public int getXaDefaultTimeout()
Returns:
Returns the xaDefaultTimeout.

setXaDefaultTimeout

public void setXaDefaultTimeout(int xaDefaultTimeout)
Parameters:
xaDefaultTimeout - The xaDefaultTimeout to set.

getXaTransactionManagerLookupName

public java.lang.String getXaTransactionManagerLookupName()
Returns:
Returns the xaTransactionManagerLookupName.

setXaTransactionManagerLookupName

public void setXaTransactionManagerLookupName(java.lang.String xaTransactionManagerLookupName)
Parameters:
xaTransactionManagerLookupName - The xaTransactionManagerLookupName to set.

getXaUsageCase

public int getXaUsageCase()
Returns:
Returns the xaUsageCase.

setXaUsageCase

public void setXaUsageCase(int xaUsageCase)
Parameters:
xaUsageCase - The xaUsageCase to set.

getXaWrappedTransImplFactory

public java.lang.String getXaWrappedTransImplFactory()
Returns:
Returns the xaWrappedTransImplFactory.

setXaWrappedTransImplFactory

public void setXaWrappedTransImplFactory(java.lang.String xaWrappedTransImplFactory)
Parameters:
xaWrappedTransImplFactory - The xaWrappedTransImplFactory to set.

getXaUserTransactionLookupName

public java.lang.String getXaUserTransactionLookupName()
Returns:
Returns the xaUserTransactionLookupName.

setXaUserTransactionLookupName

public void setXaUserTransactionLookupName(java.lang.String xaUserTransactionLookupName)
Parameters:
xaUserTransactionLookupName - The xaUserTransactionLookupName to set.

getXaJtaSupport

public java.lang.String getXaJtaSupport()
Returns:
Returns the xaJtaSupport.

setXaJtaSupport

public void setXaJtaSupport(java.lang.String xaJtaSupport)
Parameters:
xaJtaSupport - The xaJtaSupport to set.

getDodsCacheFactory

public java.lang.String getDodsCacheFactory()
Returns:
Returns the dods_cache_factory.

setDodsCacheFactory

public void setDodsCacheFactory(java.lang.String dods_cache_factory)
Parameters:
dods_cache_factory - The dods_cache_factory to set.

getObjectIdentityType

public int getObjectIdentityType()
Returns:
Returns the objectIdentityType.

setObjectIdentityType

public void setObjectIdentityType(int objectIdentityType)
Parameters:
objectIdentityType - The objectIdentityType to set.

getAsynchLoadThreadNum

public int getAsynchLoadThreadNum()
Returns the number of threads used for asynchronous cache initialization. The default value is 0 (asynchronous cache initialization) is not used.

Returns:
Returns the number of threads used for asynchronous cache initialization.

setAsynchLoadThreadNum

protected void setAsynchLoadThreadNum(int asynchLoadThreadNum)
Sets the number of threads used for asynchronous cache initialization. Value 0 means that asynchronous cache initialization is not used.

Parameters:
asynchLoadThreadNum - The number of threads used for asynchronous cache initialization to set.

getSimpleCacheRowCountLimit

public int getSimpleCacheRowCountLimit()
Returns max number of rows in the table for which is simple cache still used. If the table has more rows, complex cache is used for simple queries. The default value is 0 (simple cache is used for all simple queries).

Returns:
the max number of rows in the table until which the simple cache is used.

setSimpleCacheRowCountLimit

protected void setSimpleCacheRowCountLimit(int rowCount)
Sets the max number of rows in the table for which is simple cache still used. If the table has more rows, complex cache is used for simple queries.

Parameters:
rowCount - max number of rows in the table for which is simple cache still used.

getSynchLoadRowCountLimit

public int getSynchLoadRowCountLimit()
Returns the max number of rows in the table for which the synchronous cache load is performed if defined by configuration. The default value is 0 (asynch cache load is not performed if configuration parameters for asynch cache load are not defined).

Returns:
max number of rows in the table above which the asynch cache load is performed.

setSynchLoadRowCountLimit

protected void setSynchLoadRowCountLimit(int rowCount)
Sets the max number of rows in the table for which the synchronous cache load is performed if defined by configuration.

Parameters:
rowCount - the max number of rows in the table for which the synchronous cache load is performed if defined by configuration.

getMaxExecuteTimeCacheInit

public int getMaxExecuteTimeCacheInit()
Returns the max time for which the query is not printed in application's log file durung the cache initialization. If the time is greater, query (SQL statement, execution time and maxExecutionTime) is printed. The default value is 0 (nothing is printed).

Returns:
max time for which the query is not printed in application's log file durung the cache initialization.

setMaxExecuteTimeCacheInit

protected void setMaxExecuteTimeCacheInit(int maxExeTime)
Sets the max time for which the query is not printed in application's log file durung the cache initialization. If the time is greater, query (SQL statement, execution time and maxExecutionTime) is printed.

Parameters:
maxExeTime - new value for max execution time for the cache initialization.

getQueryTimeLimitCacheInit

public int getQueryTimeLimitCacheInit()
Returns max number of milliseconds for which the query for cache initialization should be executed and the resulset read from ResultSet. If the limit is exceeded, an Exception is thrown. Value 0 means that there is no limit.

Returns:
max number of milliseconds for which the query for cache initialization should be executed and the resulset read from ResultSet.

setQueryTimeLimitCacheInit

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. If the limit is exceeded, an Exception is thrown.

Parameters:
timeLimit - new value for time limit for cache initialization.

getQueryTimeoutCacheInit

public int getQueryTimeoutCacheInit()
Returns max number of seconds for which the query for cache initialization should be executed. If the limit is exceeded, an exception is thrown. Value 0 means that there is no limit.

Returns:
the number of seconds for which the query for cache initialization should be executed.

setQueryTimeoutCacheInit

protected void setQueryTimeoutCacheInit(int timeout)
Sets max number of seconds for which the query for cache initialization should be executed. If the limit is exceeded, an exception is thrown.

Parameters:
timeout - new value for query timeout for cache initialization.

isCachePersistenceOnShutdown

public boolean isCachePersistenceOnShutdown()

setCachePersistenceOnShutdown

protected void setCachePersistenceOnShutdown(boolean cachePersistenceOnShutdown)

isCachePersistenceOnDisableCaching

public boolean isCachePersistenceOnDisableCaching()

setCachePersistenceOnDisableCaching

protected void setCachePersistenceOnDisableCaching(boolean cachePersistenceOnDisableCaching)

getCachePersistenceRoot

public java.lang.String getCachePersistenceRoot()

setCachePersistenceRoot

protected void setCachePersistenceRoot(java.lang.String cachePersistenceRoot)

isCursorless

public boolean isCursorless()

setCursorless

protected void setCursorless(boolean cursorless)

getDefaultMaxRows

public int getDefaultMaxRows()

setDefaultMaxRows

protected void setDefaultMaxRows(int defaultMaxRows)

DODS 7.3 API