SessionRemote

The client side part of a session when using the server mode. This object communicates with a Session on the server side.

Methods
static DbException readException(Transfer transfer)
Reads an exception.
static DbException readException(Transfer transfer) throws IOException
Reads an exception.
Parameters:
transfer - the transfer object
Returns:
the exception
Throws:
IOException - on I/O exception
ValueLob addTemporaryLob(ValueLob v)
ValueLob addTemporaryLob(ValueLob v)
void autoCommitIfCluster()
Calls COMMIT if the session is in cluster mode.
void autoCommitIfCluster()
Calls COMMIT if the session is in cluster mode.
void cancel()
void cancel()
void cancelStatement(int id)
Cancel the statement with the given id.
void cancelStatement(int id)
Cancel the statement with the given id.
Parameters:
id - the statement id
void checkClosed()
Check if this session is closed and throws an exception if so.
void checkClosed()
Check if this session is closed and throws an exception if so.
Throws:
DbException - if the session is closed
void checkPowerOff()
void checkPowerOff()
void checkWritingAllowed()
void checkWritingAllowed()
void close()
void close()
Session connectEmbeddedOrServer(boolean openNew)
Open a new (remote or embedded) session.
Session connectEmbeddedOrServer(boolean openNew)
Open a new (remote or embedded) session.
Parameters:
openNew - whether to open a new session in any case
Returns:
the session
TimeZoneProvider currentTimeZone()
TimeZoneProvider currentTimeZone()
ValueTimestampTimeZone currentTimestamp()
ValueTimestampTimeZone currentTimestamp()
void done(Transfer transfer)
Called to flush the output after data has been sent to the server and just before receiving data.
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.
Parameters:
transfer - the transfer object
Throws:
DbException - if the server sent an exception
IOException - if there is a communication problem between client and server
boolean getAutoCommit()
boolean getAutoCommit()
int getClientVersion()
Returns the TCP protocol version of remote connection.
int getClientVersion()
Returns the TCP protocol version of remote connection.
Returns:
the TCP protocol version
ArrayList getClusterServers()
ArrayList getClusterServers()
CompareMode getCompareMode()
CompareMode getCompareMode()
int getCurrentId()
int getCurrentId()
String getCurrentSchemaName()
String getCurrentSchemaName()
DataHandler getDataHandler()
DataHandler getDataHandler()
DatabaseMeta getDatabaseMeta()
DatabaseMeta getDatabaseMeta()
String getDatabasePath()
String getDatabasePath()
Session.DynamicSettings getDynamicSettings()
Session.DynamicSettings getDynamicSettings()
IsolationLevel getIsolationLevel()
IsolationLevel getIsolationLevel()
JavaObjectSerializer getJavaObjectSerializer()
JavaObjectSerializer getJavaObjectSerializer()
int getLastReconnect()
int getLastReconnect()
SmallLRUCache getLobFileListCache()
SmallLRUCache getLobFileListCache()
LobStorageFrontend getLobStorage()
LobStorageFrontend getLobStorage()
Object getLobSyncObject()
Object getLobSyncObject()
int getMaxLengthInplaceLob()
int getMaxLengthInplaceLob()
Mode getMode()
Mode getMode()
int getNextId()
int getNextId()
Session.StaticSettings getStaticSettings()
Session.StaticSettings getStaticSettings()
TempFileDeleter getTempFileDeleter()
TempFileDeleter getTempFileDeleter()
Trace getTrace()
Trace getTrace()
boolean hasPendingTransaction()
boolean hasPendingTransaction()
boolean isClosed()
boolean isClosed()
boolean isClustered()
Returns true if the connection was opened in cluster mode.
boolean isClustered()
Returns true if the connection was opened in cluster mode.
Returns:
true if it is
boolean isOldInformationSchema()
boolean isOldInformationSchema()
boolean isRemote()
boolean isRemote()
FileStore openFile(String name, String mode, boolean mustExist)
FileStore openFile(String name, String mode, boolean mustExist)
CommandInterface prepareCommand(String sql, int fetchSize)
CommandInterface prepareCommand(String sql, int fetchSize)
int readLob(long lobId, byte[] hmac, long offset, byte[] buff, int off, int length)
int readLob(long lobId, byte[] hmac, long offset, byte[] buff, int off, int length)
void removeServer(IOException e, int i, int count)
Remove a server from the list of cluster nodes and disables the cluster mode.
void removeServer(IOException e, int i, int count)
Remove a server from the list of cluster nodes and disables the cluster mode.
Parameters:
e - the exception (used for debugging)
i - the index of the server to remove
count - the retry count index
void setAutoCommit(boolean autoCommit)
void setAutoCommit(boolean autoCommit)
void setAutoCommitFromServer(boolean autoCommit)
void setAutoCommitFromServer(boolean autoCommit)
void setCurrentSchemaName(String schema)
void setCurrentSchemaName(String schema)
void setIsolationLevel(IsolationLevel isolationLevel)
void setIsolationLevel(IsolationLevel isolationLevel)
void setNetworkConnectionInfo(NetworkConnectionInfo networkConnectionInfo)
void setNetworkConnectionInfo(NetworkConnectionInfo networkConnectionInfo)
void traceOperation(String operation, int id)
Write the operation to the trace system if debug trace is enabled.
void traceOperation(String operation, int id)
Write the operation to the trace system if debug trace is enabled.
Parameters:
operation - the operation performed
id - the id of the operation
boolean zeroBasedEnums()
boolean zeroBasedEnums()