DODS 7.3 API

com.lutris.appserver.server.sql.standard
Class DatabaseConfiguration

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

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

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.

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
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

DatabaseConfiguration

public DatabaseConfiguration(java.lang.String database)

DatabaseConfiguration

public DatabaseConfiguration(java.lang.String database,
                             DatabaseManagerConfiguration DbManagerConf)
Method Detail

isAllReadOnly

public boolean isAllReadOnly()
Returns readOnly parameter.

Returns:
true if the table is read-only, otherwise false.

setReadOnly

protected void setReadOnly(boolean newReadOnly)
                    throws AssertionDataObjectException
Sets readOnly parameter to value newReadOnly.

Parameters:
newReadOnly - New read-only value.
Throws:
AssertionDataObjectException - If new value of read-only is false, but all application's tables are read-only.

isLazyLoading

public boolean isLazyLoading()
Returns lazyLoading parameter.

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

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 newMaxCacheSize 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 multi join 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.

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.

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.

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.

getUseCursorName

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

Returns:
UseCursorName parameter value.

setUseCursorName

public void setUseCursorName(boolean newValue)
Sets UseCursorName parameter.

Parameters:
newValue - New UseCursorName value.

setUseCursorName

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

Parameters:
newValue - New UseCursorName value.

getDisableFetchSizeWithMaxRows

public boolean getDisableFetchSizeWithMaxRows()
Returns UseCursorName parameter.

Returns:
newValue New UseCursorName value.

setDisableFetchSizeWithMaxRows

public void setDisableFetchSizeWithMaxRows(boolean newValue)
Sets DisableFetchSizeWithMaxRows parameter.

Parameters:
newValue - New UseCursorName value.

getResultSetType

public int getResultSetType()
Returns ResultSetType parameter.

Returns:
newValue New ResultSetType value.

setResultSetType

public void setResultSetType(int newValue)
Sets ResultSetType parameter.

Parameters:
newValue - New ResultSetType value.

getResultSetConcurrency

public int getResultSetConcurrency()
Returns ResultSetConcurrency parameter.

Returns:
newValue New ResultSetConcurrency value.

setResultSetConcurrency

public void setResultSetConcurrency(int newValue)
Sets ResultSetConcurrency parameter.

Parameters:
newValue - New ResultSetConcurrency value.

getDBTransactionFactoryName

public java.lang.String getDBTransactionFactoryName()

setDBTransactionFactoryName

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

getConnectionAllocatorName

public java.lang.String getConnectionAllocatorName()

setConnectionAllocatorName

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

getFullCacheCountLimit

public int getFullCacheCountLimit()

setFullCacheCountLimit

public void setFullCacheCountLimit(int i)

readDatabaseConfiguration

public void readDatabaseConfiguration()
Reads database configuration parameters.


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

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.

getSimpleCacheRowCountLimit

public int getSimpleCacheRowCountLimit()
Returns the max number of rows in the table until which the simple cache is used. Otherwise, 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 until which the simple cache is used.

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

getSynchLoadRowCountLimit

public 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. 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 above which the asynch cache load is performed, no matter how are configuration parameters for asynch cache load defined.

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

getMaxExecuteTimeCacheInit

public 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. The default value is 0 (nothing is printed).

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

setMaxExecuteTimeCacheInit

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.

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 the 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 the 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.

isCursorless

public boolean isCursorless()

setCursorless

protected void setCursorless(boolean cursorless)

getDefaultMaxRows

public int getDefaultMaxRows()

setDefaultMaxRows

protected void setDefaultMaxRows(int defaultMaxRows)

DODS 7.3 API