| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| public static class | SessionLocal.
Represents a savepoint (a position in a transaction to where one can roll back to). |
| private static class | |
| public static enum | |
| public static class | SessionLocal.
An LOB object with a timeout. |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private boolean | |
| private boolean | |
| private volatile long | |
| private Instant | |
| private boolean | |
| private int | |
| private Command | |
| private String | |
| private ValueTimestampTimeZone | |
| private String | |
| private WeakHashMap | |
| private Database | |
| private HashMap | |
| private final int | |
| private BitSet | idsToRelease
Set of database object ids to be released at the end of transaction |
| private IsolationLevel | isolationLevel
Isolation level. |
| private Value | |
| private long | |
| private boolean | |
| private HashMap | |
| private HashMap | |
| private HashMap | |
| private final ArrayList | |
| private int | |
| private int | |
| private long | |
| private NetworkConnectionInfo | |
| private static int | |
| private HashMap | |
| private BitSet | |
| private int | |
| private boolean | oldInformationSchema
Whether INFORMATION_SCHEMA contains old-style tables. |
| private HashMap | |
| private SmallLRUCache | |
| private final int | |
| private int | |
| private boolean | quirksMode
Whether commands are executed in quirks mode to support scripts from older versions of H2. |
| private Random | |
| private HashMap | |
| private HashMap | |
| private String[] | |
| private final int | |
| private final ValueTimestampTimeZone | |
| private long | snapshotDataModificationId
The snapshot data modification id. If isolation level doesn't allow non-repeatable reads the session uses a snapshot versions of data. |
| private long | |
| private final AtomicReference | |
| private long | |
| private static final String | SYSTEM_IDENTIFIER_PREFIX
The prefix of generated identifiers. |
| private int | |
| private HashSet | tablesToAnalyze
Tables marked for ANALYZE after the current transaction is committed. |
| private ArrayList | temporaryLobs
The temporary LOBs that need to be removed on commit. |
| private LinkedList | temporaryResultLobs
Temporary LOBs from result sets. |
| private static final ThreadLocal | THREAD_LOCAL_SESSION
Thread local session for comparison operations between different data types. |
| private int | |
| private TimeZoneProvider | |
| private Trace | |
| private Transaction | |
| private boolean | truncateLargeLength
Whether length in definitions of data types is truncated. |
| private User | |
| private boolean | variableBinary
Whether BINARY is parsed as VARBINARY. |
| private HashMap | |
| private volatile SmallLRUCache | |
| private Table | |
| private Thread |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | addLocalTempTableConstraint(Constraint
the constraint to add constraint)Add a local temporary constraint to this session. |
| public void | |
| public void | |
| public void | addSavepoint(String
the savepoint name name)Create a savepoint that is linked to the current log position. |
| private static void | |
| private static void | addTableToDependencies(MVTable table, HashSet<MVMap<Object, VersionedValue<Object>>> maps, HashSet<MVTable> processed)
|
| public ValueLob | addTemporaryLob(ValueLob
the value v)Implements abstract org. Add a temporary LOB, which is closed when the session commits. |
| private void | |
| public boolean | |
| private void | |
| public void | |
| public void | cancel()
Implements abstract org. Cancel the current or next command (called when closing a connection). |
| public void | checkCanceled()
Check if the current transaction is canceled by calling Statement.cancel() or because a session timeout was set and expired. |
| private boolean | |
| private void | |
| public void | |
| public void | close()
Implements abstract org. Implements java. Roll back pending transactions and close the session. |
| public void | |
| public int | |
| public int | Returns: 0 if both values are equal, -1 if the first value is smaller, and 1 otherwisethe first value a, Value the second value b)Compare two values with the current comparison mode. |
| public int | Returns: 0 if both values are equal, -1 if the first value is smaller, 1 if the second value is larger,Integer#MIN_VALUE if order
is not defined due to NULL comparisonthe first value a, Value the second value b, boolean perform only check for equality (= or <>) forEquality)Compare two values with the current comparison mode. |
| public boolean | |
| public JdbcConnection | Returns: the internal connectionif the url should be 'jdbc:columnlist:connection' columnList)Create an internal connection. |
| public ValueTimestampTimeZone | currentTimestamp()
Implements org. Returns the current timestamp with maximum resolution. |
| public TimeZoneProvider | currentTimeZone()
Implements org. Returns the current time zone. |
| public void | |
| private void | |
| public Table | Returns: the table, or nullthe table name name)Get the local temporary table if one exists with that name, or null if not. |
| public Constraint | Returns: the constraint, or nullthe constraint name name)Get the local temporary constraint if one exists with that name, or null if not. |
| public Index | Returns: the table, or nullthe table name name)Get the local temporary index if one exists with that name, or null if not. |
| public boolean | |
| public boolean | getAutoCommit()
Implements abstract org. Check if this session is in auto-commit mode. |
| public int | |
| public long | |
| public ArrayList | getClusterServers()
Implements abstract org. Get the list of the cluster servers for this session. |
| public ValueTimestampTimeZone | |
| private CompareMode | |
| public Command | |
| public String | getCurrentSchemaName()
Implements abstract org. Get current schema. |
| public Value | Returns: the current value of the sequence in this sessionthe sequence sequence)Returns the current value of the sequence in this session. |
| public Database | |
| public DatabaseMeta | getDatabaseMeta()
Implements abstract org. Returns database meta information. |
| public DataHandler | getDataHandler()
Implements abstract org. Get the data handler object. |
| public Session. | getDynamicSettings()
Implements abstract org. Returns dynamic settings. |
| public int | |
| public IsolationLevel | getIsolationLevel()
Implements abstract org. Returns the isolation level. |
| public JavaObjectSerializer | getJavaObjectSerializer()
Implements org. Returns the custom Java object serializer, or |
| public Value | |
| public HashMap | Returns: the map of constraints, or nullGet the map of constraints for all constraints on local, temporary tables, if any. |
| public HashMap | |
| public List | |
| public Set | |
| public int | |
| public Mode | |
| public int | |
| public NetworkConnectionInfo | Returns: the network connection information, ornullReturns the network connection information, or |
| public String | Returns: the new identifierthe SQL statement sql)Get the next system generated identifiers. |
| public Value | Returns: the next value of the sequence in this sessionthe sequence sequence, Prepared current prepared command, select, or prepared)nullReturns the next value of the sequence in this session. |
| public BitSet | |
| public Procedure | Returns: the procedure or nullthe procedure name name)Get the procedure with the given name, or null if none exists. |
| public int | |
| public Random | |
| public String[] | |
| public ValueTimestampTimeZone | |
| public long | Returns: the data modification id of transaction's snapshot, or 0Returns the data modification id of transaction's snapshot, or 0 if isolation level doesn't use snapshots. |
| public SessionLocal. | |
| public long | Returns: database data modification id on start of the current commandReturns database data modification id on start of the current command. |
| private long | |
| public Session. | getStaticSettings()
Implements abstract org. Returns static settings. |
| pack-priv static Session | |
| public Trace | |
| public Transaction | |
| public Value | |
| public User | |
| public Value | Returns: the value, or NULLthe variable name name)Get the value of the specified user defined variable. |
| public String[] | Returns: the list of namesGet the list of variable names that are set for this session. |
| public Map | Returns: the view cache or derived table cachetrue to get the cache of derived tables derivedTable)Get the view cache for this session. |
| public Table | |
| public Thread | |
| public int | |
| public boolean | hasPendingTransaction()
Implements abstract org. Check whether this session has a pending transaction. |
| public boolean | Returns: true if there is a prepared transaction,
false otherwiseChecks presence of prepared transaction in this session. |
| private boolean | |
| private void | |
| public boolean | |
| public boolean | |
| public boolean | isOldInformationSchema()
Implements abstract org. Returns whether INFORMATION_SCHEMA contains old-style tables. |
| public boolean | |
| public boolean | |
| public boolean | Returns: true if database is starting or quirks mode was enabled
explicitly, false otherwiseReturns whether quirks mode is enabled explicitly or implicitly. |
| public boolean | isRemote()
Implements abstract org. Check if this session is remote or embedded. |
| public boolean | Returns: true if large length is truncated, false if an
exception is thrownReturns parsing mode of data types with too large length. |
| public boolean | Returns: true if BINARY should be parsed as VARBINARY,
false if it should be parsed as isReturns BINARY data type parsing mode. |
| public void | |
| private void | |
| private <T> HashMap | |
| public int | |
| public void | onRollback(MVMap<Object, VersionedValue<Object>>
modified map, Object of the modified entry key, VersionedValue<Object> value in the map (null if delete is rolled back) existingValue, VersionedValue<Object> value to be restored (null if add is rolled back) restoredValue)Implements org. Notified of a single map change (add/update/remove) |
| public Prepared | |
| public Prepared | Returns: the prepared statementthe SQL statement sql, boolean true if the rights have already been checked rightsChecked, boolean true if the sql string has already been checked
for literals (only used if ALLOW_LITERALS NONE is set). literalsChecked, QueryScope the scope of this query, or queryScope)nullParse and prepare the given SQL statement. |
| public CommandInterface | prepareCommand(String
the SQL statement sql, int the number of rows to fetch in one step fetchSize)Implements abstract org. Parse a command and prepare it for execution. |
| public void | |
| public Command | Returns: the prepared statementthe SQL statement sql)Parse and prepare the given SQL statement. |
| public Query | Returns: the prepared statementthe SQL statement sql, QueryScope the scope of this query, or queryScope)nullParse a query and prepare its expressions. |
| public void | registerTableAsLocked(Table
the table that is locked table)Register table as locked within current transaction. |
| public void | |
| public void | |
| public void | |
| public void | removeLocalTempTable(Table
the table table)Drop and remove the given local temporary table from this session. |
| pack-priv void | removeLocalTempTableConstraint(Constraint
the constraint constraint)Drop and remove the given local temporary constraint from this session. |
| public void | removeLocalTempTableIndex(Index
the index index)Drop and remove the given local temporary index from this session. |
| public void | removeProcedure(String
the name of the procedure to remove name)Remove a procedure from this session. |
| private void | |
| public void | resetThreadLocalSession(Session
the old thread local session, or oldSession)nullOverrides org. Resets old thread local session. |
| public void | |
| public void | rollbackTo(SessionLocal.
the savepoint to which should be rolled back savepointPartially roll back the current transaction. |
| public void | rollbackToSavepoint(String
the savepoint name name)Undo all operations back to the log position of the given savepoint. |
| pack-priv void | scheduleDatabaseObjectIdForRelease(int
to be scheduled id)Arranges for the specified database object id to be released at the end of the current transaction. |
| public void | |
| public void | setAutoCommit(boolean
the new value b)Implements abstract org. Set the auto-commit mode. |
| public boolean | |
| private void | |
| public void | |
| public void | setCurrentSchemaName(String
the schema name schemaName)Implements abstract org. Set current schema. |
| public void | setIsolationLevel(IsolationLevel
the isolation level to set isolationLevel)Implements abstract org. Sets the isolation level. |
| public void | |
| public void | |
| public void | |
| public void | setNetworkConnectionInfo(NetworkConnectionInfo
the network connection information networkConnectionInfo)Implements abstract org. Sets the network connection information if possible. |
| public void | |
| public void | setOldInformationSchema(boolean
true to have old-style tables in INFORMATION_SCHEMA,
false to have modern tablesChanges INFORMATION_SCHEMA content. |
| public void | setParsingCreateView(boolean
true if this method is called before parsing of view
definition, false if it is called after it.This method is called before and after parsing of view definition and may be called recursively. |
| public void | setPreparedTransaction(String
the name of the transaction transactionName, boolean true for commit, false for rollback commit)Commit or roll back the given transaction. |
| public void | |
| public void | setQuirksMode(boolean
whether quirks mode should be enabled quirksMode)Enables or disables the quirks mode. |
| public SessionLocal. | |
| public void | |
| public Session | setThreadLocalSession()
Overrides org. Sets this session as thread local session, if this session is a local session. |
| public void | |
| public void | |
| public void | setTruncateLargeLength(boolean
true to truncate to valid bound, false to
throw an exceptionChanges parsing mode of data types with too large length. |
| public void | setVariable(String
the name of the variable (may not be null) name, Value the new value (may not be null) value)Set the value of the given variable for this session. |
| public void | setVariableBinary(boolean
true to parse BINARY as VARBINARY, false to
parse it as isChanges parsing of a BINARY data type. |
| public void | setWaitForLock(Table
the table waitForLock, Thread the current thread (the one that is waiting) waitForLockThread)Set the table this session is waiting for, and the thread that is waiting. |
| public void | startStatementWithinTransaction(Command
about to be started command)Start a new statement within a transaction. |
| pack-priv void | |
| public void | |
| public String | |
| private SessionLocal. | |
| pack-priv void | |
| private void | |
| public void | |
| public boolean | zeroBasedEnums()
Implements org. Returns are ENUM values 0-based. |