| Modifier and Type | Class and Description |
|---|---|
| public static class | Session.
Dynamic settings. |
| public static class | Session.
Static settings. |
| Modifier and Type | Field and Description |
|---|---|
| private final ReentrantLock | |
| private ArrayList | |
| pack-priv boolean | |
| private boolean | |
| pack-priv volatile Session. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public abstract ValueLob | Returns: the specified valuethe value v)Add a temporary LOB, which is closed when the session commits. |
| public abstract void | |
| public abstract void | close()
Redeclares java. Roll back pending transactions and close the session. |
| public abstract boolean | Returns: true if the session is in auto-commit modeCheck if this session is in auto-commit mode. |
| public abstract ArrayList | Returns: A list of "ip:port" strings for the cluster servers in this session.Get the list of the cluster servers for this session. |
| public abstract String | |
| public abstract DatabaseMeta | |
| public abstract DataHandler | |
| public abstract Session. | |
| public abstract IsolationLevel | |
| public abstract Session. | |
| public abstract Trace | |
| public abstract boolean | |
| public abstract boolean | |
| public final boolean | Returns: true if it locked by the current thread, false if
it is locked by another thread or is not locked at allReturns whether this session is locked by the current thread. |
| public abstract boolean | Returns: whether INFORMATION_SCHEMA contains old-style tablesReturns whether INFORMATION_SCHEMA contains old-style tables. |
| public abstract boolean | |
| public final void | |
| public abstract CommandInterface | Returns: the prepared commandthe SQL statement sql, int the number of rows to fetch in one step fetchSize)Parse a command and prepare it for execution. |
| public void | |
| pack-priv void | |
| public void | resetThreadLocalSession(Session
the old thread local session, or oldSession)nullResets old thread local session. |
| public abstract void | |
| public abstract void | |
| public abstract void | |
| public abstract void | setNetworkConnectionInfo(NetworkConnectionInfo
the network connection information networkConnectionInfo)Sets the network connection information if possible. |
| public Session | Returns: old thread local session, ornullSets this session as thread local session, if this session is a local session. |
| public final void |
| lock | back to summary |
|---|---|
| private final ReentrantLock lock | |
| sessionState | back to summary |
|---|---|
| private ArrayList<String> sessionState | |
| sessionStateChanged | back to summary |
|---|---|
| pack-priv boolean sessionStateChanged | |
| sessionStateUpdating | back to summary |
|---|---|
| private boolean sessionStateUpdating | |
| staticSettings | back to summary |
|---|---|
| pack-priv volatile Session. | |
| Session | back to summary |
|---|---|
| pack-priv Session() | |
| addTemporaryLob | back to summary |
|---|---|
| public abstract ValueLob addTemporaryLob(ValueLob v) Add a temporary LOB, which is closed when the session commits. | |
| cancel | back to summary |
|---|---|
| public abstract void cancel() Cancel the current or next command (called when closing a connection). | |
| close | back to summary |
|---|---|
| public abstract void close() Redeclares java. Roll back pending transactions and close the session.
| |
| getAutoCommit | back to summary |
|---|---|
| public abstract boolean getAutoCommit() Check if this session is in auto-commit mode.
| |
| getClusterServers | back to summary |
|---|---|
| public abstract ArrayList Get the list of the cluster servers for this session. | |
| getCurrentSchemaName | back to summary |
|---|---|
| public abstract String getCurrentSchemaName() Get current schema.
| |
| getDatabaseMeta | back to summary |
|---|---|
| public abstract DatabaseMeta getDatabaseMeta() Returns database meta information.
| |
| getDataHandler | back to summary |
|---|---|
| public abstract DataHandler getDataHandler() Get the data handler object.
| |
| getDynamicSettings | back to summary |
|---|---|
| public abstract Session. Returns dynamic settings. These settings can be changed during lifecycle of session.
| |
| getIsolationLevel | back to summary |
|---|---|
| public abstract IsolationLevel getIsolationLevel() Returns the isolation level.
| |
| getStaticSettings | back to summary |
|---|---|
| public abstract Session. Returns static settings. These settings cannot be changed during lifecycle of session.
| |
| getTrace | back to summary |
|---|---|
| public abstract Trace getTrace() Get the trace object
| |
| hasPendingTransaction | back to summary |
|---|---|
| public abstract boolean hasPendingTransaction() Check whether this session has a pending transaction.
| |
| isClosed | back to summary |
|---|---|
| public abstract boolean isClosed() Check if close was called.
| |
| isLockedByCurrentThread | back to summary |
|---|---|
| public final boolean isLockedByCurrentThread() Returns whether this session is locked by the current thread.
| |
| isOldInformationSchema | back to summary |
|---|---|
| public abstract boolean isOldInformationSchema() Returns whether INFORMATION_SCHEMA contains old-style tables.
| |
| isRemote | back to summary |
|---|---|
| public abstract boolean isRemote() Check if this session is remote or embedded.
| |
| lock | back to summary |
|---|---|
| public final void lock() Locks this session with a reentrant lock.
final Session session = ...;
session.lock();
try {
...
} finally {
session.unlock();
}
| |
| prepareCommand | back to summary |
|---|---|
| public abstract CommandInterface prepareCommand(String sql, int fetchSize) Parse a command and prepare it for execution.
| |
| readSessionState | back to summary |
|---|---|
| public void readSessionState() Read the session state if necessary. | |
| recreateSessionState | back to summary |
|---|---|
| pack-priv void recreateSessionState() Re-create the session state using the stored sessionState list. | |
| resetThreadLocalSession | back to summary |
|---|---|
| public void resetThreadLocalSession(Session oldSession) Resets old thread local session.
| |
| setAutoCommit | back to summary |
|---|---|
| public abstract void setAutoCommit(boolean autoCommit) Set the auto-commit mode. This call doesn't commit the current transaction.
| |
| setCurrentSchemaName | back to summary |
|---|---|
| public abstract void setCurrentSchemaName(String schema) Set current schema.
| |
| setIsolationLevel | back to summary |
|---|---|
| public abstract void setIsolationLevel(IsolationLevel isolationLevel) Sets the isolation level.
| |
| setNetworkConnectionInfo | back to summary |
|---|---|
| public abstract void setNetworkConnectionInfo(NetworkConnectionInfo networkConnectionInfo) Sets the network connection information if possible.
| |
| setThreadLocalSession | back to summary |
|---|---|
| public Session setThreadLocalSession() Sets this session as thread local session, if this session is a local session.
| |
| unlock | back to summary |
|---|---|
| public final void unlock() Unlocks this session.
| |
| Modifier and Type | Field and Description |
|---|---|
| public final Mode | mode
The database mode. |
| public final TimeZoneProvider | timeZone
The current time zone. |
| Access | Constructor and Description |
|---|---|
| public | DynamicSettings(Mode
the database mode mode, TimeZoneProvider the current time zone timeZone)Creates new instance of dynamic settings. |
| mode | back to summary |
|---|---|
| public final Mode mode The database mode. | |
| timeZone | back to summary |
|---|---|
| public final TimeZoneProvider timeZone The current time zone. | |
| DynamicSettings | back to summary |
|---|---|
| public DynamicSettings(Mode mode, TimeZoneProvider timeZone) Creates new instance of dynamic settings.
| |
| Modifier and Type | Field and Description |
|---|---|
| public final boolean | caseInsensitiveIdentifiers
Whether all identifiers are case insensitive. |
| public final boolean | databaseToLower
Whether unquoted identifiers are converted to lower case. |
| public final boolean | databaseToUpper
Whether unquoted identifiers are converted to upper case. |
| Access | Constructor and Description |
|---|---|
| public | StaticSettings(boolean
whether unquoted identifiers are converted to upper case databaseToUpper, boolean whether unquoted identifiers are converted to lower case databaseToLower, boolean whether all identifiers are case insensitive caseInsensitiveIdentifiers)Creates new instance of static settings. |
| caseInsensitiveIdentifiers | back to summary |
|---|---|
| public final boolean caseInsensitiveIdentifiers Whether all identifiers are case insensitive. | |
| databaseToLower | back to summary |
|---|---|
| public final boolean databaseToLower Whether unquoted identifiers are converted to lower case. | |
| databaseToUpper | back to summary |
|---|---|
| public final boolean databaseToUpper Whether unquoted identifiers are converted to upper case. | |
| StaticSettings | back to summary |
|---|---|
| public StaticSettings(boolean databaseToUpper, boolean databaseToLower, boolean caseInsensitiveIdentifiers) Creates new instance of static settings.
| |