DODS 7.6 API

org.enhydra.dods.cache
Class TableConfiguration

java.lang.Object
  extended by org.enhydra.dods.cache.TableConfiguration
All Implemented Interfaces:
DriverSpecificConstants, CacheConstants

public class TableConfiguration
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:
2.0 15.06.2003.
Author:
Tanja Jovanovic, Nenad Vico, Zorica Suvajdzin

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
TableConfiguration()
           
 
Method Summary
 int getDefaultFetchSize()
          Returns DefaultFetchSize parameter.
 int getDefaultMaxRows()
           
 int getFullCacheCountLimit()
           
 boolean getIncrementVersions()
          Returns IncrementVersions parameter.
 int getInitCachesResultSetConcurrency()
          Return value of InitCachesResultSetConcurrency property
 int getInitCachesResultSetType()
          Return value of InitCachesResultSetType property
 int getMaxExecuteTime()
          Returns maxExecuteTime parameter.
 int getObjectIdentityType()
           
 java.lang.Integer getQueryTimeLimit()
           
 int getQueryTimeout()
          Returns QueryTimeout parameter.
 boolean getSelectOids()
          Returns selectOids parameter.
 boolean isCaseSensitive()
          Returns CaseSensitive parameter.
 boolean isLazyLoading()
          Returns lazyLoading parameter.
 boolean isReadOnly()
          Returns readOnly parameter.
 void readTableConfiguration(Config tableConfig, java.lang.String dbName)
          Reads table configuration parameters.
 void setCaseSensitive(boolean newValue)
          Set CaseSensitive parameter to newValue value.
 void setFullCacheCountLimit(int i)
           
 void setInitCachesResultSetConcurrency(java.lang.String string)
           
 void setInitCachesResultSetType(java.lang.String string)
           
protected  void setLazyLoading(boolean newlazyLoading)
          Sets readOnly parameter to value newlazyLoading.
protected  void setMaxExecuteTime(int newMaxExecuteTime)
          Sets maxExecuteTime parameter to value newMaxExecuteTime.
 void setObjectIdentityType(int objectIdentityType)
           
 void setQueryTimeLimit(java.lang.Integer queryTimeLimit)
           
protected  void setReadOnly(boolean newReadOnly)
          Sets readOnly parameter to value newReadOnly.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableConfiguration

public TableConfiguration()
Method Detail

isReadOnly

public boolean isReadOnly()
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.

getInitCachesResultSetType

public int getInitCachesResultSetType()
Return value of InitCachesResultSetType property

Returns:
Value of InitCachesResultSetType property

getInitCachesResultSetConcurrency

public int getInitCachesResultSetConcurrency()
Return value of InitCachesResultSetConcurrency property

Returns:
Value of InitCachesResultSetConcurrency property

setInitCachesResultSetConcurrency

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

setInitCachesResultSetType

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

isLazyLoading

public boolean isLazyLoading()
Returns lazyLoading parameter.

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

setLazyLoading

protected void setLazyLoading(boolean newlazyLoading)
Sets readOnly 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.

getDefaultFetchSize

public int getDefaultFetchSize()
Returns DefaultFetchSize parameter.

Returns:
DefaultFetchSize parameter value.

getQueryTimeout

public int getQueryTimeout()
Returns QueryTimeout parameter.

Returns:
QueryTimeout parameter value.

getSelectOids

public boolean getSelectOids()
Returns selectOids parameter.

Returns:
selectOids parameter value.

isCaseSensitive

public boolean isCaseSensitive()
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

getIncrementVersions

public boolean getIncrementVersions()
Returns IncrementVersions parameter.

Returns:
IncrementVersions parameter value.

getFullCacheCountLimit

public int getFullCacheCountLimit()

setFullCacheCountLimit

public void setFullCacheCountLimit(int i)

getQueryTimeLimit

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

setQueryTimeLimit

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

getObjectIdentityType

public int getObjectIdentityType()
Returns:
Returns the objectIdentityType.

setObjectIdentityType

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

readTableConfiguration

public void readTableConfiguration(Config tableConfig,
                                   java.lang.String dbName)
Reads table configuration parameters.

Parameters:
tableConfig - Configuration file from which the parameters are read.

getDefaultMaxRows

public int getDefaultMaxRows()
Returns:
Returns the defaultMaxRows.

DODS 7.6 API