|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.constant.SysProperties
public class SysProperties
The constants defined in this class are initialized from system properties. Those properties can be set when starting the virtual machine:
java -Dh2.baseDir=/tempThey can be set within the application, but this must be done before loading any classes of this database (before loading the JDBC driver):
System.setProperty("h2.baseDir", "/temp");
| Field Summary | |
|---|---|
static boolean |
ALIAS_COLUMN_NAME
System property h2.aliasColumnName. |
static boolean |
ALLOW_BIG_DECIMAL_EXTENSIONS
System property h2.allowBigDecimalExtensions (default:
false). |
static java.lang.String |
ALLOWED_CLASSES
System property h2.allowedClasses (default: *). |
static java.lang.String |
BIND_ADDRESS
System property h2.bindAddress (default: *). |
static java.lang.String |
BROWSER
System property h2.browser (default: null). |
static int |
CACHE_SIZE_DEFAULT
System property h2.cacheSizeDefault (default: 16384). |
static int |
CACHE_SIZE_INDEX_DEFAULT
INTERNAL |
static int |
CACHE_SIZE_INDEX_SHIFT
System property h2.cacheSizeIndexShift (default: 3). |
static java.lang.String |
CACHE_TYPE_DEFAULT
System property h2.cacheTypeDefault (default: LRU). |
static boolean |
CHECK
System property h2.check (default: true). |
static boolean |
CHECK2
System property h2.check2 (default: true). |
static java.lang.String |
CLIENT_TRACE_DIRECTORY
System property h2.clientTraceDirectory (default:
trace.db/). |
static int |
COLLATOR_CACHE_SIZE
System property h2.collatorCacheSize (default: 10000). |
static int |
DATASOURCE_TRACE_LEVEL
System property h2.dataSourceTraceLevel (default: 1). |
static java.lang.Character |
DEFAULT_ESCAPE_CHAR
System property h2.defaultEscape (default: \). |
static int |
DEFAULT_LOCK_MODE
System property h2.defaultLockMode (default: 3). |
static int |
DEFAULT_MAX_LENGTH_INPLACE_LOB
System property h2.defaultMaxLengthInplaceLob. |
static int |
DEFAULT_MAX_MEMORY_UNDO
System property h2.defaultMaxMemoryUndo (default: 50000). |
static int |
DEFAULT_MAX_OPERATION_MEMORY
System property h2.defaultMaxOperationMemory (default:
100000). |
static int |
DEFAULT_RESULT_SET_CONCURRENCY
System property h2.defaultResultSetConcurrency (default:
ResultSet.CONCUR_READ_ONLY). |
static int |
DELAY_WRONG_PASSWORD_MAX
System property h2.delayWrongPasswordMax (default: 4000). |
static int |
DELAY_WRONG_PASSWORD_MIN
System property h2.delayWrongPasswordMin (default: 250). |
static boolean |
DOLLAR_QUOTING
System property h2.dollarQuoting (default: true). |
static boolean |
ENABLE_ANONYMOUS_SSL
System property h2.enableAnonymousSSL (default: true). |
static int |
ESTIMATED_FUNCTION_TABLE_ROWS
System property h2.estimatedFunctionTableRows (default:
1000). |
static java.lang.String |
FILE_ENCODING
System property file.encoding (default: Cp1252). |
static java.lang.String |
FILE_SEPARATOR
System property file.separator (default: /). |
static java.lang.String |
H2_COLLATOR_CACHE_SIZE
INTERNAL |
static java.lang.String |
H2_LOG_DELETE_DELAY
INTERNAL |
static java.lang.String |
H2_MAX_QUERY_TIMEOUT
INTERNAL |
static java.lang.String |
H2_PAGE_STORE
INTERNAL |
static java.lang.String |
JAVA_SPECIFICATION_VERSION
System property java.specification.version. |
static int |
LARGE_RESULT_BUFFER_SIZE
System property h2.largeResultBufferSize (default: 4096). |
static java.lang.String |
LINE_SEPARATOR
System property line.separator (default: \n). |
static boolean |
LOB_FILES_IN_DIRECTORIES
System property h2.lobFilesInDirectories. |
static int |
LOB_FILES_PER_DIRECTORY
System property h2.lobFilesPerDirectory (default: 256). |
static boolean |
lobCloseBetweenReads
System property h2.lobCloseBetweenReads (default: false). |
static boolean |
LOG_ALL_ERRORS
System property h2.logAllErrors (default: false). |
static java.lang.String |
LOG_ALL_ERRORS_FILE
System property h2.logAllErrorsFile (default:
h2errors.txt). |
static int |
MAX_COMPACT_COUNT
System property h2.maxCompactCount
(default: Integer.MAX_VALUE). |
static int |
MAX_COMPACT_TIME
System property h2.maxCompactTime (default: 1000). |
static int |
MAX_FILE_RETRY
System property h2.maxFileRetry (default: 16). |
static int |
MAX_MEMORY_ROWS_DISTINCT
System property h2.maxMemoryRowsDistinct (default:
Integer.MAX_VALUE). |
static int |
MAX_QUERY_TIMEOUT
System property h2.maxQueryTimeout (default: 0). |
static int |
MAX_RECONNECT
System property h2.maxReconnect (default: 3). |
static long |
MAX_TRACE_DATA_LENGTH
System property h2.maxTraceDataLength (default: 65535). |
static int |
MIN_COLUMN_NAME_MAP
System property h2.minColumnNameMap (default: 3). |
static int |
MIN_WRITE_DELAY
System property h2.minWriteDelay (default: 5). |
static boolean |
NIO_CLEANER_HACK
System property h2.nioCleanerHack (default: true). |
static boolean |
NIO_LOAD_MAPPED
System property h2.nioLoadMapped (default: false). |
static boolean |
NULL_CONCAT_IS_NULL
System property h2.nullConcatIsNull. |
static boolean |
OBJECT_CACHE
System property h2.objectCache (default: true). |
static int |
OBJECT_CACHE_MAX_PER_ELEMENT_SIZE
System property h2.objectCacheMaxPerElementSize (default:
4096). |
static int |
OBJECT_CACHE_SIZE
System property h2.objectCacheSize (default: 1024). |
static boolean |
OLD_COMMAND_LINE_OPTIONS
System property h2.oldCommandLineOptions. |
static boolean |
OPTIMIZE_DISTINCT
System property h2.optimizeDistinct (default: true). |
static boolean |
OPTIMIZE_DROP_DEPENDENCIES
System property h2.optimizeDropDependencies (default:
true). |
static boolean |
OPTIMIZE_EVALUATABLE_SUBQUERIES
System property h2.optimizeEvaluatableSubqueries (default:
true). |
static boolean |
OPTIMIZE_GROUP_SORTED
System property h2.optimizeGroupSorted. |
static boolean |
OPTIMIZE_IN
System property h2.optimizeIn (default: true). |
static boolean |
OPTIMIZE_IN_LIST
System property h2.optimizeInList (default: false). |
static boolean |
OPTIMIZE_MIN_MAX
System property h2.optimizeMinMax (default: true). |
static boolean |
OPTIMIZE_NOT
System property h2.optimizeNot (default: true). |
static boolean |
OPTIMIZE_OR
System property h2.optimizeOr (default: false). |
static boolean |
OPTIMIZE_SUBQUERY_CACHE
System property h2.optimizeSubqueryCache (default: true). |
static boolean |
OPTIMIZE_TWO_EQUALS
System property h2.optimizeTwoEquals (default: true). |
static boolean |
optimizeInJoin
System property h2.optimizeInJoin (default: false). |
static boolean |
OVERFLOW_EXCEPTIONS
System property h2.overflowExceptions (default: true). |
static boolean |
PAGE_STORE
System property h2.pageStore. |
static boolean |
PAGE_STORE_INTERNAL_COUNT
System property h2.pageStoreInternalCount (default: false). |
static boolean |
PAGE_STORE_TRIM
System property h2.pageStoreTrim (default: true). |
static java.lang.String |
PG_DEFAULT_CLIENT_ENCODING
System property h2.pgClientEncoding (default: UTF-8). |
static boolean |
RECOMPILE_ALWAYS
System property h2.recompileAlways (default: false). |
static int |
RECONNECT_CHECK_DELAY
System property h2.reconnectCheckDelay (default: 200). |
static int |
REDO_BUFFER_SIZE
System property h2.redoBufferSize (default: 262144). |
static int |
RESERVE_MEMORY
System property h2.reserveMemory (default: 524288). |
static boolean |
RETURN_LOB_OBJECTS
System property h2.returnLobObjects. |
static int |
REUSE_SPACE_AFTER
System property h2.reuseSpaceAfter (default: 16). |
static boolean |
REUSE_SPACE_BTREE_INDEX
System property h2.reuseSpaceBtreeIndex (default: true). |
static boolean |
REUSE_SPACE_QUICKLY
System property h2.reuseSpaceQuickly (default: true). |
static boolean |
runFinalize
System property h2.runFinalize (default: true). |
static int |
SERVER_CACHED_OBJECTS
System property h2.serverCachedObjects (default: 64). |
static int |
SERVER_RESULT_SET_FETCH_SIZE
System property h2.serverResultSetFetchSize
(default: 100). |
static boolean |
SHARE_LINKED_CONNECTIONS
System property h2.shareLinkedConnections. |
static int |
SOCKET_CONNECT_TIMEOUT
System property h2.socketConnectTimeout (default: 2000). |
static boolean |
SORT_NULLS_HIGH
System property h2.sortNullsHigh (default: false). |
static long |
SPLIT_FILE_SIZE_SHIFT
System property h2.splitFileSizeShift (default: 30). |
static long |
TIME_START
The current time this class was loaded (in milliseconds). |
static boolean |
TRACE_IO
System property h2.traceIO (default: false). |
static java.lang.String |
USER_HOME
System property user.home (default: empty string). |
static int |
WEB_MAX_VALUE_LENGTH
System property h2.webMaxValueLength (default: 10000). |
| Method Summary | |
|---|---|
static java.lang.String |
getBaseDir()
INTERNAL |
static int |
getCollatorCacheSize()
INTERNAL |
static int |
getIntSetting(java.lang.String name,
int defaultValue)
INTERNAL |
static int |
getLogFileDeleteDelay()
INTERNAL |
static int |
getMaxQueryTimeout()
INTERNAL |
static boolean |
getPageStore()
INTERNAL |
static java.lang.String |
getScriptDirectory()
INTERNAL. |
static java.lang.String |
getStringSetting(java.lang.String name,
java.lang.String defaultValue)
INTERNAL |
static void |
setBaseDir(java.lang.String dir)
INTERNAL |
static void |
setScriptDirectory(java.lang.String dir)
INTERNAL |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String H2_MAX_QUERY_TIMEOUT
public static final java.lang.String H2_LOG_DELETE_DELAY
public static final java.lang.String H2_COLLATOR_CACHE_SIZE
public static final java.lang.String H2_PAGE_STORE
public static final java.lang.String FILE_ENCODING
file.encoding (default: Cp1252).
public static final java.lang.String FILE_SEPARATOR
file.separator (default: /).
public static final java.lang.String JAVA_SPECIFICATION_VERSION
java.specification.version.
public static final java.lang.String LINE_SEPARATOR
line.separator (default: \n).
public static final java.lang.String USER_HOME
user.home (default: empty string).
public static final boolean ALIAS_COLUMN_NAME
h2.aliasColumnName.When using different modes, this feature is disabled for compatibility for all databases except MySQL. For MySQL, it is always enabled.
In version 1.0, it is enabled by default.
In version 1.1, it is disabled by default.
public static final boolean ALLOW_BIG_DECIMAL_EXTENSIONS
h2.allowBigDecimalExtensions (default:
false).
public static final java.lang.String ALLOWED_CLASSES
h2.allowedClasses (default: *).
public static final java.lang.String BROWSER
h2.browser (default: null).java -Dh2.browser="open,-a,Safari,%url" ....
public static final boolean ENABLE_ANONYMOUS_SSL
h2.enableAnonymousSSL (default: true).
public static final java.lang.String BIND_ADDRESS
h2.bindAddress (default: *).
public static final int CACHE_SIZE_DEFAULT
h2.cacheSizeDefault (default: 16384).
public static final int CACHE_SIZE_INDEX_SHIFT
h2.cacheSizeIndexShift (default: 3).
public static final int CACHE_SIZE_INDEX_DEFAULT
public static final java.lang.String CACHE_TYPE_DEFAULT
h2.cacheTypeDefault (default: LRU).
public static final boolean CHECK
h2.check (default: true).
public static final boolean CHECK2
h2.check2 (default: true).
public static final java.lang.String CLIENT_TRACE_DIRECTORY
h2.clientTraceDirectory (default:
trace.db/).
public static final java.lang.Character DEFAULT_ESCAPE_CHAR
h2.defaultEscape (default: \).
public static final int DEFAULT_MAX_OPERATION_MEMORY
h2.defaultMaxOperationMemory (default:
100000).
public static final int DEFAULT_MAX_LENGTH_INPLACE_LOB
h2.defaultMaxLengthInplaceLob.In version 1.1, the default is 1024.
In version 1.2, the default is 4096.
public static final int DEFAULT_RESULT_SET_CONCURRENCY
h2.defaultResultSetConcurrency (default:
ResultSet.CONCUR_READ_ONLY).
public static final int DATASOURCE_TRACE_LEVEL
h2.dataSourceTraceLevel (default: 1).
public static final int DEFAULT_MAX_MEMORY_UNDO
h2.defaultMaxMemoryUndo (default: 50000).
public static final int DEFAULT_LOCK_MODE
h2.defaultLockMode (default: 3).
public static final int DELAY_WRONG_PASSWORD_MIN
h2.delayWrongPasswordMin (default: 250).
public static final int DELAY_WRONG_PASSWORD_MAX
h2.delayWrongPasswordMax (default: 4000).
public static final boolean DOLLAR_QUOTING
h2.dollarQuoting (default: true).
public static final int ESTIMATED_FUNCTION_TABLE_ROWS
h2.estimatedFunctionTableRows (default:
1000).
public static final int LARGE_RESULT_BUFFER_SIZE
h2.largeResultBufferSize (default: 4096).
public static boolean lobCloseBetweenReads
h2.lobCloseBetweenReads (default: false).
public static final boolean LOB_FILES_IN_DIRECTORIES
h2.lobFilesInDirectories.In version 1.0, it is disabled by default.
In version 1.1, it is enabled by default.
public static final int LOB_FILES_PER_DIRECTORY
h2.lobFilesPerDirectory (default: 256).
public static final boolean LOG_ALL_ERRORS
h2.logAllErrors (default: false).
public static final java.lang.String LOG_ALL_ERRORS_FILE
h2.logAllErrorsFile (default:
h2errors.txt).
public static final int MAX_COMPACT_COUNT
h2.maxCompactCount
(default: Integer.MAX_VALUE).
public static final int MAX_COMPACT_TIME
h2.maxCompactTime (default: 1000).
public static final int MAX_FILE_RETRY
h2.maxFileRetry (default: 16).
public static final int MAX_MEMORY_ROWS_DISTINCT
h2.maxMemoryRowsDistinct (default:
Integer.MAX_VALUE).
public static final int MAX_QUERY_TIMEOUT
h2.maxQueryTimeout (default: 0).
public static final int MAX_RECONNECT
h2.maxReconnect (default: 3).
public static final long MAX_TRACE_DATA_LENGTH
h2.maxTraceDataLength (default: 65535).
public static final int MIN_COLUMN_NAME_MAP
h2.minColumnNameMap (default: 3).
public static final int MIN_WRITE_DELAY
h2.minWriteDelay (default: 5).
public static final boolean NIO_LOAD_MAPPED
h2.nioLoadMapped (default: false).
public static final boolean NIO_CLEANER_HACK
h2.nioCleanerHack (default: true).
public static final boolean NULL_CONCAT_IS_NULL
h2.nullConcatIsNull.In version 1.1, it is disabled by default.
In version 1.2, it is enabled by default.
public static final boolean OBJECT_CACHE
h2.objectCache (default: true).
public static final int OBJECT_CACHE_MAX_PER_ELEMENT_SIZE
h2.objectCacheMaxPerElementSize (default:
4096).
public static final int OBJECT_CACHE_SIZE
h2.objectCacheSize (default: 1024).
public static final boolean OLD_COMMAND_LINE_OPTIONS
h2.oldCommandLineOptions.In version 1.0, it is enabled by default.
In version 1.1, it is disabled by default.
public static final boolean OPTIMIZE_DROP_DEPENDENCIES
h2.optimizeDropDependencies (default:
true).
public static final boolean OPTIMIZE_DISTINCT
h2.optimizeDistinct (default: true).
public static final boolean OPTIMIZE_EVALUATABLE_SUBQUERIES
h2.optimizeEvaluatableSubqueries (default:
true).
public static final boolean OPTIMIZE_GROUP_SORTED
h2.optimizeGroupSorted.In version 1.0, it is disabled by default.
In version 1.1, it is enabled by default.
public static final boolean OPTIMIZE_IN
h2.optimizeIn (default: true).
public static final boolean OPTIMIZE_IN_LIST
h2.optimizeInList (default: false).In version 1.1, it is disabled by default.
In version 1.2, it is enabled by default.
public static boolean optimizeInJoin
h2.optimizeInJoin (default: false).In version 1.0, it is disabled by default.
In version 1.1, it is enabled by default.
public static final boolean OPTIMIZE_MIN_MAX
h2.optimizeMinMax (default: true).
public static final boolean OPTIMIZE_NOT
h2.optimizeNot (default: true).
public static final boolean OPTIMIZE_OR
h2.optimizeOr (default: false).
public static final boolean OPTIMIZE_SUBQUERY_CACHE
h2.optimizeSubqueryCache (default: true).
public static final boolean OPTIMIZE_TWO_EQUALS
h2.optimizeTwoEquals (default: true).
public static final boolean OVERFLOW_EXCEPTIONS
h2.overflowExceptions (default: true).
public static final boolean PAGE_STORE
h2.pageStore.In version 1.1, it is disabled by default.
In version 1.2, it is enabled by default.
public static final boolean PAGE_STORE_TRIM
h2.pageStoreTrim (default: true).
public static final boolean PAGE_STORE_INTERNAL_COUNT
h2.pageStoreInternalCount (default: false).
public static final java.lang.String PG_DEFAULT_CLIENT_ENCODING
h2.pgClientEncoding (default: UTF-8).
public static final boolean RECOMPILE_ALWAYS
h2.recompileAlways (default: false).
public static final int RECONNECT_CHECK_DELAY
h2.reconnectCheckDelay (default: 200).
public static final int REDO_BUFFER_SIZE
h2.redoBufferSize (default: 262144).
public static final int RESERVE_MEMORY
h2.reserveMemory (default: 524288).
public static final boolean RETURN_LOB_OBJECTS
h2.returnLobObjects.In version 1.0, it is disabled by default.
In version 1.1, it is enabled by default.
public static final int REUSE_SPACE_AFTER
h2.reuseSpaceAfter (default: 16).
public static final boolean REUSE_SPACE_BTREE_INDEX
h2.reuseSpaceBtreeIndex (default: true).
public static final boolean REUSE_SPACE_QUICKLY
h2.reuseSpaceQuickly (default: true).
public static boolean runFinalize
h2.runFinalize (default: true).
public static final int SERVER_CACHED_OBJECTS
h2.serverCachedObjects (default: 64).
public static final int SERVER_RESULT_SET_FETCH_SIZE
h2.serverResultSetFetchSize
(default: 100).
public static final boolean SHARE_LINKED_CONNECTIONS
h2.shareLinkedConnections.In version 1.0, it is disabled by default.
In version 1.1, it is enabled by default.
public static final int SOCKET_CONNECT_TIMEOUT
h2.socketConnectTimeout (default: 2000).
public static final boolean SORT_NULLS_HIGH
h2.sortNullsHigh (default: false).
public static final long SPLIT_FILE_SIZE_SHIFT
h2.splitFileSizeShift (default: 30).
public static final boolean TRACE_IO
h2.traceIO (default: false).
public static final int WEB_MAX_VALUE_LENGTH
h2.webMaxValueLength (default: 10000).
public static final int COLLATOR_CACHE_SIZE
h2.collatorCacheSize (default: 10000).
public static final long TIME_START
| Method Detail |
|---|
public static java.lang.String getStringSetting(java.lang.String name,
java.lang.String defaultValue)
public static int getIntSetting(java.lang.String name,
int defaultValue)
public static void setBaseDir(java.lang.String dir)
public static java.lang.String getBaseDir()
public static java.lang.String getScriptDirectory()
h2.scriptDirectory (default: empty
string).
public static void setScriptDirectory(java.lang.String dir)
public static int getMaxQueryTimeout()
public static int getLogFileDeleteDelay()
public static int getCollatorCacheSize()
public static boolean getPageStore()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||