| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private boolean | |
| public static final int | |
| private String | |
| private int | |
| private boolean | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| private final CompareMode | |
| private ConnectionInfo | |
| private String | |
| private String | |
| private volatile Session. | |
| private Session | |
| private DatabaseEventListener | |
| private byte[] | |
| public static final int | |
| private JavaObjectSerializer | |
| private int | |
| public static final int | |
| private LobStorageFrontend | |
| private final Object | |
| private int | |
| private final boolean | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| private String | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| private TempFileDeleter | |
| private Trace | |
| private TraceSystem | |
| private ArrayList |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ValueLob | addTemporaryLob(ValueLob
the value v)Implements abstract org. Add a temporary LOB, which is closed when the session commits. |
| public void | |
| private boolean | Returns: true if reconnectedthe retry count index count)Automatically re-connect if necessary and if configured to do so. |
| public void | cancel()
Implements abstract org. Cancel the current or next command (called when closing a connection). |
| public void | |
| public void | |
| private void | |
| public void | checkPowerOff()
Implements org. Check if the simulated power failure occurred. |
| public void | checkWritingAllowed()
Implements org. Check if writing is allowed. |
| public void | close()
Implements abstract org. Implements java. Roll back pending transactions and close the session. |
| public Session | Returns: the sessionwhether to open a new session in any case openNew)Open a new (remote or embedded) session. |
| private void | |
| public ValueTimestampTimeZone | currentTimestamp()
Implements org. Returns the current timestamp with maximum resolution. |
| public TimeZoneProvider | currentTimeZone()
Implements org. Returns the current time zone. |
| public void | |
| public boolean | getAutoCommit()
Implements abstract org. Check if this session is in auto-commit mode. |
| public int | Returns: the TCP protocol versionReturns the TCP protocol version of remote connection. |
| public ArrayList | getClusterServers()
Implements abstract org. Get the list of the cluster servers for this session. |
| public CompareMode | |
| public int | |
| public String | getCurrentSchemaName()
Implements abstract org. Get current schema. |
| public DatabaseMeta | getDatabaseMeta()
Implements abstract org. Returns database meta information. |
| public String | |
| public DataHandler | getDataHandler()
Implements abstract org. Get the data handler object. |
| public Session. | getDynamicSettings()
Implements abstract org. Returns dynamic settings. |
| private String | |
| public IsolationLevel | getIsolationLevel()
Implements abstract org. Returns the isolation level. |
| public JavaObjectSerializer | getJavaObjectSerializer()
Implements org. Returns the custom Java object serializer, or |
| public int | |
| public SmallLRUCache | getLobFileListCache()
Implements org. Get the lob file list cache if it is used. |
| public LobStorageFrontend | getLobStorage()
Implements org. Get the lob storage mechanism to use. |
| public Object | getLobSyncObject()
Implements org. Get the synchronization object for lob operations. |
| public int | getMaxLengthInplaceLob()
Implements org. Get the maximum length of a in-place large object |
| public Mode | |
| public int | |
| private CommandInterface | |
| public Session. | getStaticSettings()
Implements abstract org. Returns static settings. |
| public TempFileDeleter | getTempFileDeleter()
Implements org. Get the temp file deleter mechanism. |
| public Trace | |
| public boolean | hasPendingTransaction()
Implements abstract org. Check whether this session has a pending transaction. |
| private Transfer | |
| public boolean | |
| public boolean | |
| public boolean | isOldInformationSchema()
Implements abstract org. Returns whether INFORMATION_SCHEMA contains old-style tables. |
| public boolean | isRemote()
Implements abstract org. Check if this session is remote or embedded. |
| public FileStore | openFile(String
the file name name, String the mode mode, boolean whether the file must already exist mustExist)Implements org. Open a file at the given location. |
| 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 static DbException | |
| public int | readLob(long
the lob id lobId, byte[] the message authentication code hmac, long the offset within the lob offset, byte[] the target buffer buff, int the offset within the target buffer off, int the number of bytes to read length)Implements org. Read from a lob. |
| public static SQLException | Returns: the exceptionthe transfer object transfer)Reads an exception as SQL exception. |
| public void | removeServer(IOException
the exception (used for debugging) e, int the index of the server to remove i, int the retry count index count)Remove a server from the list of cluster nodes and disables the cluster mode. |
| public void | setAutoCommit(boolean
the new value autoCommit)Implements abstract org. Set the auto-commit mode. |
| public void | |
| private void | |
| public void | setCurrentSchemaName(String
the schema name schema)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 | setNetworkConnectionInfo(NetworkConnectionInfo
the network connection information networkConnectionInfo)Implements abstract org. Sets the network connection information if possible. |
| private void | |
| public void | traceOperation(String
the operation performed operation, int the id of the operation id)Write the operation to the trace system if debug trace is enabled. |
| public boolean | zeroBasedEnums()
Implements org. Returns are ENUM values 0-based. |
| autoCommit | back to summary |
|---|---|
| private boolean autoCommit | |
| autoReconnect | back to summary |
|---|---|
| private boolean autoReconnect | |
| CHANGE_ID | back to summary |
|---|---|
| public static final int CHANGE_ID | |
| cipher | back to summary |
|---|---|
| private String cipher | |
| clientVersion | back to summary |
|---|---|
| private int clientVersion | |
| cluster | back to summary |
|---|---|
| private boolean cluster | |
| COMMAND_CLOSE | back to summary |
|---|---|
| public static final int COMMAND_CLOSE | |
| COMMAND_COMMIT | back to summary |
|---|---|
| public static final int COMMAND_COMMIT | |
| COMMAND_EXECUTE_BATCH_UPDATE | back to summary |
|---|---|
| public static final int COMMAND_EXECUTE_BATCH_UPDATE | |
| COMMAND_EXECUTE_QUERY | back to summary |
|---|---|
| public static final int COMMAND_EXECUTE_QUERY | |
| COMMAND_EXECUTE_UPDATE | back to summary |
|---|---|
| public static final int COMMAND_EXECUTE_UPDATE | |
| COMMAND_GET_META_DATA | back to summary |
|---|---|
| public static final int COMMAND_GET_META_DATA | |
| compareMode | back to summary |
|---|---|
| private final CompareMode compareMode | |
| connectionInfo | back to summary |
|---|---|
| private ConnectionInfo connectionInfo | |
| currentSchemaName | back to summary |
|---|---|
| private String currentSchemaName | |
| databaseName | back to summary |
|---|---|
| private String databaseName | |
| dynamicSettings | back to summary |
|---|---|
| private volatile Session. | |
| embedded | back to summary |
|---|---|
| private Session embedded | |
| eventListener | back to summary |
|---|---|
| private DatabaseEventListener eventListener | |
| fileEncryptionKey | back to summary |
|---|---|
| private byte[] fileEncryptionKey | |
| GET_JDBC_META | back to summary |
|---|---|
| public static final int GET_JDBC_META | |
| javaObjectSerializer | back to summary |
|---|---|
| private JavaObjectSerializer javaObjectSerializer | |
| lastReconnect | back to summary |
|---|---|
| private int lastReconnect | |
| LOB_READ | back to summary |
|---|---|
| public static final int LOB_READ | |
| lobStorage | back to summary |
|---|---|
| private LobStorageFrontend lobStorage | |
| lobSyncObject | back to summary |
|---|---|
| private final Object lobSyncObject | |
| nextId | back to summary |
|---|---|
| private int nextId | |
| oldInformationSchema | back to summary |
|---|---|
| private final boolean oldInformationSchema | |
| RESULT_CLOSE | back to summary |
|---|---|
| public static final int RESULT_CLOSE | |
| RESULT_FETCH_ROWS | back to summary |
|---|---|
| public static final int RESULT_FETCH_ROWS | |
| RESULT_RESET | back to summary |
|---|---|
| public static final int RESULT_RESET | |
| SESSION_CANCEL_STATEMENT | back to summary |
|---|---|
| public static final int SESSION_CANCEL_STATEMENT | |
| SESSION_CHECK_KEY | back to summary |
|---|---|
| public static final int SESSION_CHECK_KEY | |
| SESSION_CLOSE | back to summary |
|---|---|
| public static final int SESSION_CLOSE | |
| SESSION_HAS_PENDING_TRANSACTION | back to summary |
|---|---|
| public static final int SESSION_HAS_PENDING_TRANSACTION | |
| SESSION_PREPARE | back to summary |
|---|---|
| public static final int SESSION_PREPARE | |
| SESSION_PREPARE_READ_PARAMS2 | back to summary |
|---|---|
| public static final int SESSION_PREPARE_READ_PARAMS2 | |
| SESSION_SET_AUTOCOMMIT | back to summary |
|---|---|
| public static final int SESSION_SET_AUTOCOMMIT | |
| SESSION_SET_ID | back to summary |
|---|---|
| public static final int SESSION_SET_ID | |
| sessionId | back to summary |
|---|---|
| private String sessionId | |
| STATUS_CLOSED | back to summary |
|---|---|
| public static final int STATUS_CLOSED | |
| STATUS_ERROR | back to summary |
|---|---|
| public static final int STATUS_ERROR | |
| STATUS_OK | back to summary |
|---|---|
| public static final int STATUS_OK | |
| STATUS_OK_STATE_CHANGED | back to summary |
|---|---|
| public static final int STATUS_OK_STATE_CHANGED | |
| tempFileDeleter | back to summary |
|---|---|
| private TempFileDeleter tempFileDeleter | |
| trace | back to summary |
|---|---|
| private Trace trace | |
| traceSystem | back to summary |
|---|---|
| private TraceSystem traceSystem | |
| transferList | back to summary |
|---|---|
| private ArrayList<Transfer> transferList | |
| SessionRemote | back to summary |
|---|---|
| public SessionRemote(ConnectionInfo ci) | |
| addTemporaryLob | back to summary |
|---|---|
| public ValueLob addTemporaryLob(ValueLob v) Implements abstract org. Doc from org. Add a temporary LOB, which is closed when the session commits. | |
| autoCommitIfCluster | back to summary |
|---|---|
| public void autoCommitIfCluster() Calls COMMIT if the session is in cluster mode. | |
| autoReconnect | back to summary |
|---|---|
| private boolean autoReconnect(int count) Automatically re-connect if necessary and if configured to do so.
| |
| cancel | back to summary |
|---|---|
| public void cancel() Implements abstract org. Doc from org. Cancel the current or next command (called when closing a connection).
| |
| cancelStatement | back to summary |
|---|---|
| public void cancelStatement(int id) Cancel the statement with the given id.
| |
| checkClosed | back to summary |
|---|---|
| public void checkClosed() Check if this session is closed and throws an exception if so.
| |
| checkClusterDisableAutoCommit | back to summary |
|---|---|
| private void checkClusterDisableAutoCommit(String serverList) | |
| checkPowerOff | back to summary |
|---|---|
| public void checkPowerOff() Implements org. Doc from org. Check if the simulated power failure occurred. This call will decrement the countdown.
| |
| checkWritingAllowed | back to summary |
|---|---|
| public void checkWritingAllowed() Implements org. Doc from org. Check if writing is allowed.
| |
| close | back to summary |
|---|---|
| public void close() Implements abstract org. Implements java. Doc from org. Roll back pending transactions and close the session.
| |
| connectEmbeddedOrServer | back to summary |
|---|---|
| public Session connectEmbeddedOrServer(boolean openNew) Open a new (remote or embedded) session.
| |
| connectServer | back to summary |
|---|---|
| private void connectServer(ConnectionInfo ci) | |
| currentTimestamp | back to summary |
|---|---|
| public ValueTimestampTimeZone currentTimestamp() Implements org. Doc from org. Returns the current timestamp with maximum resolution. The value must be the same within a transaction or within execution of a command.
| |
| currentTimeZone | back to summary |
|---|---|
| public TimeZoneProvider currentTimeZone() Implements org. Doc from org. Returns the current time zone.
| |
| done | back to summary |
|---|---|
| public void done(Transfer transfer) throws IOException Called to flush the output after data has been sent to the server and just before receiving data. This method also reads the status code from the server and throws any exception the server sent.
| |
| getAutoCommit | back to summary |
|---|---|
| public boolean getAutoCommit() Implements abstract org. Doc from org. Check if this session is in auto-commit mode.
| |
| getClientVersion | back to summary |
|---|---|
| public int getClientVersion() Returns the TCP protocol version of remote connection.
| |
| getClusterServers | back to summary |
|---|---|
| public ArrayList Implements abstract org. Doc from org. Get the list of the cluster servers for this session. | |
| getCompareMode | back to summary |
|---|---|
| public CompareMode getCompareMode() Implements org. Doc from org. Return compare mode.
| |
| getCurrentId | back to summary |
|---|---|
| public int getCurrentId() | |
| getCurrentSchemaName | back to summary |
|---|---|
| public String getCurrentSchemaName() Implements abstract org. Doc from org. Get current schema. | |
| getDatabaseMeta | back to summary |
|---|---|
| public DatabaseMeta getDatabaseMeta() Implements abstract org. Doc from org. Returns database meta information.
| |
| getDatabasePath | back to summary |
|---|---|
| public String getDatabasePath() Implements org. Doc from org. Get the database path. | |
| getDataHandler | back to summary |
|---|---|
| public DataHandler getDataHandler() Implements abstract org. Doc from org. Get the data handler object.
| |
| getDynamicSettings | back to summary |
|---|---|
| public Session. Implements abstract org. Doc from org. Returns dynamic settings. These settings can be changed during lifecycle of session.
| |
| getFilePrefix | back to summary |
|---|---|
| private String getFilePrefix(String dir) | |
| getIsolationLevel | back to summary |
|---|---|
| public IsolationLevel getIsolationLevel() Implements abstract org. Doc from org. Returns the isolation level.
| |
| getJavaObjectSerializer | back to summary |
|---|---|
| public JavaObjectSerializer getJavaObjectSerializer() Implements org. Doc from org. Returns the custom Java object serializer, or
| |
| getLastReconnect | back to summary |
|---|---|
| public int getLastReconnect() | |
| getLobFileListCache | back to summary |
|---|---|
| public SmallLRUCache Implements org. Doc from org. Get the lob file list cache if it is used.
| |
| getLobStorage | back to summary |
|---|---|
| public LobStorageFrontend getLobStorage() Implements org. Doc from org. Get the lob storage mechanism to use.
| |
| getLobSyncObject | back to summary |
|---|---|
| public Object getLobSyncObject() Implements org. Doc from org. Get the synchronization object for lob operations. | |
| getMaxLengthInplaceLob | back to summary |
|---|---|
| public int getMaxLengthInplaceLob() Implements org. Doc from org. Get the maximum length of a in-place large object
| |
| getMode | back to summary |
|---|---|
| public Mode getMode() Implements org. Doc from org. Returns the database mode. | |
| getNextId | back to summary |
|---|---|
| public int getNextId() | |
| getSettingsCommand | back to summary |
|---|---|
| private CommandInterface getSettingsCommand(String args) | |
| getStaticSettings | back to summary |
|---|---|
| public Session. Implements abstract org. Doc from org. Returns static settings. These settings cannot be changed during lifecycle of session.
| |
| getTempFileDeleter | back to summary |
|---|---|
| public TempFileDeleter getTempFileDeleter() Implements org. Doc from org. Get the temp file deleter mechanism.
| |
| getTrace | back to summary |
|---|---|
| public Trace getTrace() Implements abstract org. Doc from org. Get the trace object | |
| hasPendingTransaction | back to summary |
|---|---|
| public boolean hasPendingTransaction() Implements abstract org. Doc from org. Check whether this session has a pending transaction.
| |
| initTransfer | back to summary |
|---|---|
| private Transfer initTransfer(ConnectionInfo ci, String db, String server) throws IOException | |
| isClosed | back to summary |
|---|---|
| public boolean isClosed() Implements abstract org. Doc from org. Check if close was called.
| |
| isClustered | back to summary |
|---|---|
| public boolean isClustered() Returns true if the connection was opened in cluster mode.
| |
| isOldInformationSchema | back to summary |
|---|---|
| public boolean isOldInformationSchema() Implements abstract org. Doc from org. Returns whether INFORMATION_SCHEMA contains old-style tables.
| |
| isRemote | back to summary |
|---|---|
| public boolean isRemote() Implements abstract org. Doc from org. Check if this session is remote or embedded.
| |
| openFile | back to summary |
|---|---|
| public FileStore openFile(String name, String mode, boolean mustExist) Implements org. Doc from org. Open a file at the given location. | |
| prepareCommand | back to summary |
|---|---|
| public CommandInterface prepareCommand(String sql, int fetchSize) Implements abstract org. Doc from org. Parse a command and prepare it for execution.
| |
| readException | back to summary |
|---|---|
| public static DbException readException(Transfer transfer) throws IOException Reads an exception.
| |
| readLob | back to summary |
|---|---|
| public int readLob(long lobId, byte[] hmac, long offset, byte[] buff, int off, int length) Implements org. Doc from org. Read from a lob.
| |
| readSQLException | back to summary |
|---|---|
| public static SQLException readSQLException(Transfer transfer) throws IOException Reads an exception as SQL exception.
| |
| removeServer | back to summary |
|---|---|
| public void removeServer(IOException e, int i, int count) Remove a server from the list of cluster nodes and disables the cluster mode.
| |
| setAutoCommit | back to summary |
|---|---|
| public void setAutoCommit(boolean autoCommit) Implements abstract org. Doc from org. Set the auto-commit mode. This call doesn't commit the current transaction.
| |
| setAutoCommitFromServer | back to summary |
|---|---|
| public void setAutoCommitFromServer(boolean autoCommit) | |
| setAutoCommitSend | back to summary |
|---|---|
| private void setAutoCommitSend(boolean autoCommit) | |
| setCurrentSchemaName | back to summary |
|---|---|
| public void setCurrentSchemaName(String schema) Implements abstract org. Doc from org. Set current schema. | |
| setIsolationLevel | back to summary |
|---|---|
| public void setIsolationLevel(IsolationLevel isolationLevel) Implements abstract org. Doc from org. Sets the isolation level.
| |
| setNetworkConnectionInfo | back to summary |
|---|---|
| public void setNetworkConnectionInfo(NetworkConnectionInfo networkConnectionInfo) Implements abstract org. Doc from org. Sets the network connection information if possible.
| |
| switchOffCluster | back to summary |
|---|---|
| private void switchOffCluster() | |
| traceOperation | back to summary |
|---|---|
| public void traceOperation(String operation, int id) Write the operation to the trace system if debug trace is enabled.
| |
| zeroBasedEnums | back to summary |
|---|---|
| public boolean zeroBasedEnums() Implements org. Doc from org. Returns are ENUM values 0-based.
| |