public class Constants extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ALLOW_LITERALS_ALL
Constant meaning both numbers and text is allowed in SQL statements.
|
static int |
ALLOW_LITERALS_NONE
Constant meaning no literals are allowed in SQL statements.
|
static int |
ALLOW_LITERALS_NUMBERS
Constant meaning only numbers are allowed in SQL statements (but no
texts).
|
static boolean |
BLOB_SEARCH
Whether searching in Blob values should be supported.
|
static String |
BUILD_DATE
The build date is updated for each public release.
|
static String |
BUILD_DATE_STABLE
The build date is updated for each public release.
|
static int |
BUILD_ID
The build id is incremented for each public release.
|
static int |
BUILD_ID_STABLE
The build id of the last stable release.
|
static String |
BUILD_VENDOR_AND_VERSION
If H2 is compiled to be included in a product, this should be set to
a unique vendor id (to distinguish from official releases).
|
static int |
CACHE_MIN_RECORDS
The minimum number of entries to keep in the cache.
|
static int |
CACHE_SIZE_DEFAULT
The default cache size in KB.
|
static String |
CACHE_TYPE_DEFAULT
The default cache type.
|
static String |
CLUSTERING_DISABLED
The value of the cluster setting if clustering is disabled.
|
static String |
CLUSTERING_ENABLED
The value of the cluster setting if clustering is enabled (the actual
value is checked later).
|
static String |
CONN_URL_COLUMNLIST
The database URL used when calling a function if only the column list
should be returned.
|
static String |
CONN_URL_INTERNAL
The database URL used when calling a function if the data should be
returned.
|
static int |
COST_ROW_OFFSET
The cost is calculated on rowcount + this offset,
to avoid using the wrong or no index if the table
contains no rows _currently_ (when preparing the statement)
|
static int |
DEADLOCK_CHECK
The number of milliseconds after which to check for a deadlock if locking
is not successful.
|
static int |
DEFAULT_HTTP_PORT
The default port number of the HTTP server (for the H2 Console).
|
static int |
DEFAULT_LOCK_MODE
The default value for the LOCK_MODE setting.
|
static int |
DEFAULT_MAX_LENGTH_INPLACE_LOB
The default maximum length of an LOB that is stored in the database file.
|
static int |
DEFAULT_MAX_LENGTH_INPLACE_LOB2
The default maximum length of an LOB that is stored with the record itself.
|
static long |
DEFAULT_MAX_LOG_SIZE
The default value for the maximum transaction log size.
|
static int |
DEFAULT_MAX_MEMORY_ROWS
The default maximum number of rows to be kept in memory in a result set.
|
static int |
DEFAULT_MAX_MEMORY_UNDO
The default value for the MAX_MEMORY_UNDO setting.
|
static int |
DEFAULT_MAX_OPERATION_MEMORY
The default for the setting MAX_OPERATION_MEMORY.
|
static int |
DEFAULT_PAGE_SIZE
The default page size to use for new databases.
|
static int |
DEFAULT_RESULT_SET_CONCURRENCY
The default result set concurrency for statements created with
Connection.createStatement() or prepareStatement(String sql).
|
static int |
DEFAULT_TCP_PORT
The default port of the TCP server.
|
static int |
DEFAULT_WRITE_DELAY
The default delay in milliseconds before the transaction log is written.
|
static int |
ENCRYPTION_KEY_HASH_ITERATIONS
The password is hashed this many times
to slow down dictionary attacks.
|
static int |
FILE_BLOCK_SIZE
The block of a file.
|
static int |
INITIAL_LOCK_TIMEOUT
For testing, the lock timeout is smaller than for interactive use cases.
|
static int |
IO_BUFFER_SIZE
The block size for I/O operations.
|
static int |
IO_BUFFER_SIZE_COMPRESS
The block size used to compress data in the LZFOutputStream.
|
static int |
LOCK_MODE_OFF
The lock mode that means no locking is used at all.
|
static int |
LOCK_MODE_READ_COMMITTED
The lock mode that means read locks are acquired, but they are released
immediately after the statement is executed.
|
static int |
LOCK_MODE_TABLE
The lock mode that means table level locking is used for reads and
writes.
|
static int |
LOCK_MODE_TABLE_GC
The lock mode that means table level locking is used for reads and
writes.
|
static int |
LOCK_SLEEP
The number of milliseconds to wait between checking the .lock.db file
still exists once a database is locked.
|
static int |
MAX_PARAMETER_INDEX
The highest possible parameter index.
|
static int |
MEMORY_DATA
The memory needed by a object of class Data
|
static int |
MEMORY_FACTOR
This value is used to calculate the average memory usage.
|
static int |
MEMORY_OBJECT
The memory needed by a regular object with at least one field.
|
static int |
MEMORY_PAGE_BTREE
The memory needed by an object of class PageBtree.
|
static int |
MEMORY_PAGE_DATA
The memory needed by an object of class PageData.
|
static int |
MEMORY_PAGE_DATA_OVERFLOW
The memory needed by an object of class PageDataOverflow.
|
static int |
MEMORY_POINTER
The memory needed by a pointer.
|
static int |
MEMORY_ROW
The memory needed by a Row.
|
static int |
MIN_WRITE_DELAY
The minimum write delay that causes commits to be delayed.
|
static String |
PREFIX_INDEX
The name prefix used for indexes that are not explicitly named.
|
static String |
PREFIX_JOIN
The name prefix used for synthetic nested join tables.
|
static String |
PREFIX_PRIMARY_KEY
The name prefix used for primary key constraints that are not explicitly
named.
|
static String |
PUBLIC_ROLE_NAME
Every user belongs to this role.
|
static int |
SALT_LEN
The number of bytes in random salt that is used to hash passwords.
|
static String |
SCHEMA_MAIN
The name of the default schema.
|
static int |
SELECTIVITY_DEFAULT
The default selectivity (used if the selectivity is not calculated).
|
static int |
SELECTIVITY_DISTINCT_COUNT
The number of distinct values to keep in memory when running ANALYZE.
|
static String |
SERVER_PROPERTIES_DIR
The default directory name of the server properties file for the H2 Console.
|
static String |
SERVER_PROPERTIES_NAME
The name of the server properties file for the H2 Console.
|
static long |
SLOW_QUERY_LIMIT_MS
Queries that take longer than this number of milliseconds are written to
the trace file with the level info.
|
static String |
START_URL
The database URL prefix of this database.
|
static String |
SUFFIX_DB_FILE
The file name suffix of all database files.
|
static String |
SUFFIX_LOB_FILE
The file name suffix of large object files.
|
static String |
SUFFIX_LOBS_DIRECTORY
The suffix of the directory name used if LOB objects are stored in a
directory.
|
static String |
SUFFIX_LOCK_FILE
The file name suffix of file lock files that are used to make sure a
database is open by only one process at any time.
|
static String |
SUFFIX_PAGE_FILE
The file name suffix of page files.
|
static String |
SUFFIX_TEMP_FILE
The file name suffix of temporary files.
|
static String |
SUFFIX_TRACE_FILE
The file name suffix of trace files.
|
static int |
TCP_PROTOCOL_VERSION_6
The TCP protocol version number 6.
|
static int |
TCP_PROTOCOL_VERSION_7
The TCP protocol version number 7.
|
static int |
TCP_PROTOCOL_VERSION_8
The TCP protocol version number 8.
|
static int |
TCP_PROTOCOL_VERSION_9
The TCP protocol version number 9.
|
static int |
THROTTLE_DELAY
The delay that is to be used if throttle has been enabled.
|
static int |
UNDO_BLOCK_SIZE
The maximum size of an undo log block.
|
static String |
URL_FORMAT
The database URL format in simplified Backus-Naur form.
|
static String |
USER_PACKAGE
The package name of user defined classes.
|
static String |
UTF8
Name of the character encoding format.
|
static int |
VERSION_MAJOR
The major version of this database.
|
static int |
VERSION_MINOR
The minor version of this database.
|
static int |
VIEW_COST_CACHE_MAX_AGE
The maximum time in milliseconds to keep the cost of a view.
|
static int |
VIEW_INDEX_CACHE_SIZE
The name of the index cache that is used for temporary view (subqueries
used as tables).
|
Modifier and Type | Method and Description |
---|---|
static String |
getFullVersion()
Get the complete version number of this database, consisting of
the major version, the minor version, the build id, and the build date.
|
static String |
getVersion()
Get the version of this product, consisting of major version, minor version,
and build id.
|
static Object |
getVersionStable()
Get the last stable version name.
|
public static final String BUILD_DATE
public static final String BUILD_DATE_STABLE
public static final int BUILD_ID
public static final int BUILD_ID_STABLE
public static final String BUILD_VENDOR_AND_VERSION
public static final int TCP_PROTOCOL_VERSION_6
public static final int TCP_PROTOCOL_VERSION_7
public static final int TCP_PROTOCOL_VERSION_8
public static final int TCP_PROTOCOL_VERSION_9
public static final int VERSION_MAJOR
public static final int VERSION_MINOR
public static final int LOCK_MODE_OFF
public static final int LOCK_MODE_READ_COMMITTED
public static final int LOCK_MODE_TABLE
public static final int LOCK_MODE_TABLE_GC
public static final int ALLOW_LITERALS_ALL
public static final int ALLOW_LITERALS_NONE
public static final int ALLOW_LITERALS_NUMBERS
public static final boolean BLOB_SEARCH
public static final int CACHE_MIN_RECORDS
public static final int CACHE_SIZE_DEFAULT
public static final String CACHE_TYPE_DEFAULT
public static final String CLUSTERING_DISABLED
public static final String CLUSTERING_ENABLED
public static final String CONN_URL_COLUMNLIST
public static final String CONN_URL_INTERNAL
public static final int COST_ROW_OFFSET
public static final int DEADLOCK_CHECK
public static final int DEFAULT_HTTP_PORT
public static final int DEFAULT_LOCK_MODE
public static final int DEFAULT_MAX_LENGTH_INPLACE_LOB
public static final int DEFAULT_MAX_LENGTH_INPLACE_LOB2
public static final long DEFAULT_MAX_LOG_SIZE
public static final int DEFAULT_MAX_MEMORY_ROWS
public static final int DEFAULT_MAX_MEMORY_UNDO
public static final int DEFAULT_MAX_OPERATION_MEMORY
public static final int DEFAULT_PAGE_SIZE
public static final int DEFAULT_RESULT_SET_CONCURRENCY
public static final int DEFAULT_TCP_PORT
public static final int DEFAULT_WRITE_DELAY
public static final int ENCRYPTION_KEY_HASH_ITERATIONS
public static final int FILE_BLOCK_SIZE
public static final int INITIAL_LOCK_TIMEOUT
public static final int IO_BUFFER_SIZE
public static final int IO_BUFFER_SIZE_COMPRESS
public static final int LOCK_SLEEP
public static final int MAX_PARAMETER_INDEX
public static final int MEMORY_DATA
public static final int MEMORY_FACTOR
public static final int MEMORY_OBJECT
public static final int MEMORY_PAGE_BTREE
public static final int MEMORY_PAGE_DATA
public static final int MEMORY_PAGE_DATA_OVERFLOW
public static final int MEMORY_POINTER
public static final int MEMORY_ROW
public static final int MIN_WRITE_DELAY
public static final String PREFIX_INDEX
public static final String PREFIX_JOIN
public static final String PREFIX_PRIMARY_KEY
public static final String PUBLIC_ROLE_NAME
public static final int SALT_LEN
public static final String SCHEMA_MAIN
public static final int SELECTIVITY_DEFAULT
public static final int SELECTIVITY_DISTINCT_COUNT
public static final String SERVER_PROPERTIES_DIR
public static final String SERVER_PROPERTIES_NAME
public static final long SLOW_QUERY_LIMIT_MS
public static final String START_URL
public static final String SUFFIX_DB_FILE
public static final String SUFFIX_LOB_FILE
public static final String SUFFIX_LOBS_DIRECTORY
public static final String SUFFIX_LOCK_FILE
public static final String SUFFIX_PAGE_FILE
public static final String SUFFIX_TEMP_FILE
public static final String SUFFIX_TRACE_FILE
public static final int THROTTLE_DELAY
public static final int UNDO_BLOCK_SIZE
public static final String URL_FORMAT
public static final String USER_PACKAGE
public static final String UTF8
public static final int VIEW_COST_CACHE_MAX_AGE
public static final int VIEW_INDEX_CACHE_SIZE
public static String getVersion()
public static Object getVersionStable()
public static String getFullVersion()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.