Top Description Fields Constructors Methods
org.h2.engine

public final Class SessionRemote

extends Session
implements DataHandler
Class Inheritance
All Implemented Interfaces
org.h2.store.DataHandler
Imports
java.io.IOException, java.net.Socket, java.sql.SQLException, java.util.ArrayList, org.h2.api.DatabaseEventListener, .ErrorCode, .JavaObjectSerializer, org.h2.command.CommandInterface, .CommandRemote, org.h2.command.dml.SetTypes, org.h2.engine.Mode.ModeEnum, org.h2.expression.ParameterInterface, org.h2.jdbc.JdbcException, org.h2.jdbc.meta.DatabaseMeta, .DatabaseMetaLegacy, .DatabaseMetaRemote, org.h2.message.DbException, .Trace, .TraceSystem, org.h2.result.ResultInterface, org.h2.store.DataHandler, .FileStore, .LobStorageFrontend, org.h2.store.fs.FileUtils, org.h2.util.DateTimeUtils, .JdbcUtils, .MathUtils, .NetUtils, .NetworkConnectionInfo, .SmallLRUCache, .StringUtils, .TempFileDeleter, .TimeZoneProvider, .Utils, org.h2.value.CompareMode, .Transfer, .Value, .ValueInteger, .ValueLob, .ValueTimestampTimeZone, .ValueVarchar

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

Field Summary

Modifier and TypeField 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.DynamicSettings
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<Transfer>
Inherited from org.h2.engine.Session:
sessionStateChangedstaticSettings

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ValueLob
addTemporaryLob(ValueLob
the value
v
)

Implements abstract org.h2.engine.Session.addTemporaryLob.

Add a temporary LOB, which is closed when the session commits.

public void
autoCommitIfCluster()

Calls COMMIT if the session is in cluster mode.

private boolean

Returns:

true if reconnected
autoReconnect
(int
the retry count index
count
)

Automatically re-connect if necessary and if configured to do so.

public void
cancel()

Implements abstract org.h2.engine.Session.cancel.

Cancel the current or next command (called when closing a connection).

public void
cancelStatement(int
the statement id
id
)

Cancel the statement with the given id.

public void
checkClosed()

Check if this session is closed and throws an exception if so.

private void
public void
checkPowerOff()

Implements org.h2.store.DataHandler.checkPowerOff.

Check if the simulated power failure occurred.

public void
checkWritingAllowed()

Implements org.h2.store.DataHandler.checkWritingAllowed.

Check if writing is allowed.

public void
close()

Implements abstract org.h2.engine.Session.close.

Implements java.lang.AutoCloseable.close.

Roll back pending transactions and close the session.

public Session

Returns:

the session
connectEmbeddedOrServer
(boolean
whether to open a new session in any case
openNew
)

Open a new (remote or embedded) session.

private void
public ValueTimestampTimeZone
currentTimestamp()

Implements org.h2.engine.CastDataProvider.currentTimestamp.

Returns the current timestamp with maximum resolution.

public TimeZoneProvider
currentTimeZone()

Implements org.h2.engine.CastDataProvider.currentTimeZone.

Returns the current time zone.

public void
done(Transfer
the transfer object
transfer
)

Called to flush the output after data has been sent to the server and just before receiving data.

public boolean
getAutoCommit()

Implements abstract org.h2.engine.Session.getAutoCommit.

Check if this session is in auto-commit mode.

public int

Returns:

the TCP protocol version
getClientVersion
()

Returns the TCP protocol version of remote connection.

public ArrayList<String>
getClusterServers()

Implements abstract org.h2.engine.Session.getClusterServers.

Get the list of the cluster servers for this session.

public CompareMode
getCompareMode()

Implements org.h2.store.DataHandler.getCompareMode.

Return compare mode.

public int
public String
getCurrentSchemaName()

Implements abstract org.h2.engine.Session.getCurrentSchemaName.

Get current schema.

public DatabaseMeta
getDatabaseMeta()

Implements abstract org.h2.engine.Session.getDatabaseMeta.

Returns database meta information.

public String
getDatabasePath()

Implements org.h2.store.DataHandler.getDatabasePath.

Get the database path.

public DataHandler
getDataHandler()

Implements abstract org.h2.engine.Session.getDataHandler.

Get the data handler object.

public Session.DynamicSettings
getDynamicSettings()

Implements abstract org.h2.engine.Session.getDynamicSettings.

Returns dynamic settings.

private String
public IsolationLevel
getIsolationLevel()

Implements abstract org.h2.engine.Session.getIsolationLevel.

Returns the isolation level.

public JavaObjectSerializer
getJavaObjectSerializer()

Implements org.h2.engine.CastDataProvider.getJavaObjectSerializer.

Returns the custom Java object serializer, or null.

public int
public SmallLRUCache<String, String[]>
getLobFileListCache()

Implements org.h2.store.DataHandler.getLobFileListCache.

Get the lob file list cache if it is used.

public LobStorageFrontend
getLobStorage()

Implements org.h2.store.DataHandler.getLobStorage.

Get the lob storage mechanism to use.

public Object
getLobSyncObject()

Implements org.h2.store.DataHandler.getLobSyncObject.

Get the synchronization object for lob operations.

public int
getMaxLengthInplaceLob()

Implements org.h2.store.DataHandler.getMaxLengthInplaceLob.

Get the maximum length of a in-place large object

public Mode
getMode()

Implements org.h2.engine.CastDataProvider.getMode.

Returns the database mode.

public int
private CommandInterface
public Session.StaticSettings
getStaticSettings()

Implements abstract org.h2.engine.Session.getStaticSettings.

Returns static settings.

public TempFileDeleter
getTempFileDeleter()

Implements org.h2.store.DataHandler.getTempFileDeleter.

Get the temp file deleter mechanism.

public Trace
getTrace()

Implements abstract org.h2.engine.Session.getTrace.

Get the trace object

public boolean
hasPendingTransaction()

Implements abstract org.h2.engine.Session.hasPendingTransaction.

Check whether this session has a pending transaction.

private Transfer
public boolean
isClosed()

Implements abstract org.h2.engine.Session.isClosed.

Check if close was called.

public boolean

Returns:

true if it is
isClustered
()

Returns true if the connection was opened in cluster mode.

public boolean
isOldInformationSchema()

Implements abstract org.h2.engine.Session.isOldInformationSchema.

Returns whether INFORMATION_SCHEMA contains old-style tables.

public boolean
isRemote()

Implements abstract org.h2.engine.Session.isRemote.

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.h2.store.DataHandler.openFile.

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.h2.engine.Session.prepareCommand.

Parse a command and prepare it for execution.

public static DbException

Returns:

the exception
readException
(Transfer
the transfer object
transfer
)

Reads an exception.

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.h2.store.DataHandler.readLob.

Read from a lob.

public static SQLException

Returns:

the exception
readSQLException
(Transfer
the 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.h2.engine.Session.setAutoCommit.

Set the auto-commit mode.

public void
setAutoCommitFromServer(boolean autoCommit)

private void
setAutoCommitSend(boolean autoCommit)

public void
setCurrentSchemaName(String
the schema name
schema
)

Implements abstract org.h2.engine.Session.setCurrentSchemaName.

Set current schema.

public void
setIsolationLevel(IsolationLevel
the isolation level to set
isolationLevel
)

Implements abstract org.h2.engine.Session.setIsolationLevel.

Sets the isolation level.

public void
setNetworkConnectionInfo(NetworkConnectionInfo
the network connection information
networkConnectionInfo
)

Implements abstract org.h2.engine.Session.setNetworkConnectionInfo.

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.h2.engine.CastDataProvider.zeroBasedEnums.

Returns are ENUM values 0-based.

Inherited from org.h2.engine.Session:
isLockedByCurrentThreadlockreadSessionStaterecreateSessionStateresetThreadLocalSessionsetThreadLocalSessionunlock

Field Detail

autoCommitback to summary
private boolean autoCommit
autoReconnectback to summary
private boolean autoReconnect
CHANGE_IDback to summary
public static final int CHANGE_ID
cipherback to summary
private String cipher
clientVersionback to summary
private int clientVersion
clusterback to summary
private boolean cluster
COMMAND_CLOSEback to summary
public static final int COMMAND_CLOSE
COMMAND_COMMITback to summary
public static final int COMMAND_COMMIT
COMMAND_EXECUTE_BATCH_UPDATEback to summary
public static final int COMMAND_EXECUTE_BATCH_UPDATE
COMMAND_EXECUTE_QUERYback to summary
public static final int COMMAND_EXECUTE_QUERY
COMMAND_EXECUTE_UPDATEback to summary
public static final int COMMAND_EXECUTE_UPDATE
COMMAND_GET_META_DATAback to summary
public static final int COMMAND_GET_META_DATA
compareModeback to summary
private final CompareMode compareMode
connectionInfoback to summary
private ConnectionInfo connectionInfo
currentSchemaNameback to summary
private String currentSchemaName
databaseNameback to summary
private String databaseName
dynamicSettingsback to summary
private volatile Session.DynamicSettings dynamicSettings
embeddedback to summary
private Session embedded
eventListenerback to summary
private DatabaseEventListener eventListener
fileEncryptionKeyback to summary
private byte[] fileEncryptionKey
GET_JDBC_METAback to summary
public static final int GET_JDBC_META
javaObjectSerializerback to summary
private JavaObjectSerializer javaObjectSerializer
lastReconnectback to summary
private int lastReconnect
LOB_READback to summary
public static final int LOB_READ
lobStorageback to summary
private LobStorageFrontend lobStorage
lobSyncObjectback to summary
private final Object lobSyncObject
nextIdback to summary
private int nextId
oldInformationSchemaback to summary
private final boolean oldInformationSchema
RESULT_CLOSEback to summary
public static final int RESULT_CLOSE
RESULT_FETCH_ROWSback to summary
public static final int RESULT_FETCH_ROWS
RESULT_RESETback to summary
public static final int RESULT_RESET
SESSION_CANCEL_STATEMENTback to summary
public static final int SESSION_CANCEL_STATEMENT
SESSION_CHECK_KEYback to summary
public static final int SESSION_CHECK_KEY
SESSION_CLOSEback to summary
public static final int SESSION_CLOSE
SESSION_HAS_PENDING_TRANSACTIONback to summary
public static final int SESSION_HAS_PENDING_TRANSACTION
SESSION_PREPAREback to summary
public static final int SESSION_PREPARE
SESSION_PREPARE_READ_PARAMS2back to summary
public static final int SESSION_PREPARE_READ_PARAMS2
SESSION_SET_AUTOCOMMITback to summary
public static final int SESSION_SET_AUTOCOMMIT
SESSION_SET_IDback to summary
public static final int SESSION_SET_ID
sessionIdback to summary
private String sessionId
STATUS_CLOSEDback to summary
public static final int STATUS_CLOSED
STATUS_ERRORback to summary
public static final int STATUS_ERROR
STATUS_OKback to summary
public static final int STATUS_OK
STATUS_OK_STATE_CHANGEDback to summary
public static final int STATUS_OK_STATE_CHANGED
tempFileDeleterback to summary
private TempFileDeleter tempFileDeleter
traceback to summary
private Trace trace
traceSystemback to summary
private TraceSystem traceSystem
transferListback to summary
private ArrayList<Transfer> transferList

Constructor Detail

SessionRemoteback to summary
public SessionRemote(ConnectionInfo ci)

Method Detail

addTemporaryLobback to summary
public ValueLob addTemporaryLob(ValueLob v)

Implements abstract org.h2.engine.Session.addTemporaryLob.

Doc from org.h2.engine.Session.addTemporaryLob.

Add a temporary LOB, which is closed when the session commits.

Parameters
v:ValueLob

the value

Returns:ValueLob

the specified value

Annotations
@Override
autoCommitIfClusterback to summary
public void autoCommitIfCluster()

Calls COMMIT if the session is in cluster mode.

autoReconnectback to summary
private boolean autoReconnect(int count)

Automatically re-connect if necessary and if configured to do so.

Parameters
count:int

the retry count index

Returns:boolean

true if reconnected

cancelback to summary
public void cancel()

Implements abstract org.h2.engine.Session.cancel.

Doc from org.h2.engine.Session.cancel.

Cancel the current or next command (called when closing a connection).

Annotations
@Override
cancelStatementback to summary
public void cancelStatement(int id)

Cancel the statement with the given id.

Parameters
id:int

the statement id

checkClosedback to summary
public void checkClosed()

Check if this session is closed and throws an exception if so.

Exceptions
DbException:
if the session is closed
checkClusterDisableAutoCommitback to summary
private void checkClusterDisableAutoCommit(String serverList)
checkPowerOffback to summary
public void checkPowerOff()

Implements org.h2.store.DataHandler.checkPowerOff.

Doc from org.h2.store.DataHandler.checkPowerOff.

Check if the simulated power failure occurred. This call will decrement the countdown.

Annotations
@Override
checkWritingAllowedback to summary
public void checkWritingAllowed()

Implements org.h2.store.DataHandler.checkWritingAllowed.

Doc from org.h2.store.DataHandler.checkWritingAllowed.

Check if writing is allowed.

Annotations
@Override
closeback to summary
public void close()

Implements abstract org.h2.engine.Session.close.

Implements java.lang.AutoCloseable.close.

Doc from org.h2.engine.Session.close.

Roll back pending transactions and close the session.

Annotations
@Override
connectEmbeddedOrServerback to summary
public Session connectEmbeddedOrServer(boolean openNew)

Open a new (remote or embedded) session.

Parameters
openNew:boolean

whether to open a new session in any case

Returns:Session

the session

connectServerback to summary
private void connectServer(ConnectionInfo ci)
currentTimestampback to summary
public ValueTimestampTimeZone currentTimestamp()

Implements org.h2.engine.CastDataProvider.currentTimestamp.

Doc from org.h2.engine.CastDataProvider.currentTimestamp.

Returns the current timestamp with maximum resolution. The value must be the same within a transaction or within execution of a command.

Returns:ValueTimestampTimeZone

the current timestamp for CURRENT_TIMESTAMP(9)

Annotations
@Override
currentTimeZoneback to summary
public TimeZoneProvider currentTimeZone()

Implements org.h2.engine.CastDataProvider.currentTimeZone.

Doc from org.h2.engine.CastDataProvider.currentTimeZone.

Returns the current time zone.

Returns:TimeZoneProvider

the current time zone

Annotations
@Override
doneback 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.

Parameters
transfer:Transfer

the transfer object

Exceptions
IOException:
if there is a communication problem between client and server
DbException:
if the server sent an exception
getAutoCommitback to summary
public boolean getAutoCommit()

Implements abstract org.h2.engine.Session.getAutoCommit.

Doc from org.h2.engine.Session.getAutoCommit.

Check if this session is in auto-commit mode.

Returns:boolean

true if the session is in auto-commit mode

Annotations
@Override
getClientVersionback to summary
public int getClientVersion()

Returns the TCP protocol version of remote connection.

Returns:int

the TCP protocol version

getClusterServersback to summary
public ArrayList<String> getClusterServers()

Implements abstract org.h2.engine.Session.getClusterServers.

Doc from org.h2.engine.Session.getClusterServers.

Get the list of the cluster servers for this session.

Returns:ArrayList<String>

A list of "ip:port" strings for the cluster servers in this session.

Annotations
@Override
getCompareModeback to summary
public CompareMode getCompareMode()

Implements org.h2.store.DataHandler.getCompareMode.

Doc from org.h2.store.DataHandler.getCompareMode.

Return compare mode.

Returns:CompareMode

Compare mode.

Annotations
@Override
getCurrentIdback to summary
public int getCurrentId()
getCurrentSchemaNameback to summary
public String getCurrentSchemaName()

Implements abstract org.h2.engine.Session.getCurrentSchemaName.

Doc from org.h2.engine.Session.getCurrentSchemaName.

Get current schema.

Returns:String

the current schema name

Annotations
@Override
getDatabaseMetaback to summary
public DatabaseMeta getDatabaseMeta()

Implements abstract org.h2.engine.Session.getDatabaseMeta.

Doc from org.h2.engine.Session.getDatabaseMeta.

Returns database meta information.

Returns:DatabaseMeta

database meta information

Annotations
@Override
getDatabasePathback to summary
public String getDatabasePath()

Implements org.h2.store.DataHandler.getDatabasePath.

Doc from org.h2.store.DataHandler.getDatabasePath.

Get the database path.

Returns:String

the database path

Annotations
@Override
getDataHandlerback to summary
public DataHandler getDataHandler()

Implements abstract org.h2.engine.Session.getDataHandler.

Doc from org.h2.engine.Session.getDataHandler.

Get the data handler object.

Returns:DataHandler

the data handler

Annotations
@Override
getDynamicSettingsback to summary
public Session.DynamicSettings getDynamicSettings()

Implements abstract org.h2.engine.Session.getDynamicSettings.

Doc from org.h2.engine.Session.getDynamicSettings.

Returns dynamic settings. These settings can be changed during lifecycle of session.

Returns:Session.DynamicSettings

dynamic settings

Annotations
@Override
getFilePrefixback to summary
private String getFilePrefix(String dir)
getIsolationLevelback to summary
public IsolationLevel getIsolationLevel()

Implements abstract org.h2.engine.Session.getIsolationLevel.

Doc from org.h2.engine.Session.getIsolationLevel.

Returns the isolation level.

Returns:IsolationLevel

the isolation level

Annotations
@Override
getJavaObjectSerializerback to summary
public JavaObjectSerializer getJavaObjectSerializer()

Implements org.h2.engine.CastDataProvider.getJavaObjectSerializer.

Doc from org.h2.engine.CastDataProvider.getJavaObjectSerializer.

Returns the custom Java object serializer, or null.

Returns:JavaObjectSerializer

the custom Java object serializer, or null

Annotations
@Override
getLastReconnectback to summary
public int getLastReconnect()
getLobFileListCacheback to summary
public SmallLRUCache<String, String[]> getLobFileListCache()

Implements org.h2.store.DataHandler.getLobFileListCache.

Doc from org.h2.store.DataHandler.getLobFileListCache.

Get the lob file list cache if it is used.

Returns:SmallLRUCache<String, String[]>

the cache or null

Annotations
@Override
getLobStorageback to summary
public LobStorageFrontend getLobStorage()

Implements org.h2.store.DataHandler.getLobStorage.

Doc from org.h2.store.DataHandler.getLobStorage.

Get the lob storage mechanism to use.

Returns:LobStorageFrontend

the lob storage mechanism

Annotations
@Override
getLobSyncObjectback to summary
public Object getLobSyncObject()

Implements org.h2.store.DataHandler.getLobSyncObject.

Doc from org.h2.store.DataHandler.getLobSyncObject.

Get the synchronization object for lob operations.

Returns:Object

the synchronization object

Annotations
@Override
getMaxLengthInplaceLobback to summary
public int getMaxLengthInplaceLob()

Implements org.h2.store.DataHandler.getMaxLengthInplaceLob.

Doc from org.h2.store.DataHandler.getMaxLengthInplaceLob.

Get the maximum length of a in-place large object

Returns:int

the maximum size

Annotations
@Override
getModeback to summary
public Mode getMode()

Implements org.h2.engine.CastDataProvider.getMode.

Doc from org.h2.engine.CastDataProvider.getMode.

Returns the database mode.

Returns:Mode

the database mode

Annotations
@Override
getNextIdback to summary
public int getNextId()
getSettingsCommandback to summary
private CommandInterface getSettingsCommand(String args)
getStaticSettingsback to summary
public Session.StaticSettings getStaticSettings()

Implements abstract org.h2.engine.Session.getStaticSettings.

Doc from org.h2.engine.Session.getStaticSettings.

Returns static settings. These settings cannot be changed during lifecycle of session.

Returns:Session.StaticSettings

static settings

Annotations
@Override
getTempFileDeleterback to summary
public TempFileDeleter getTempFileDeleter()

Implements org.h2.store.DataHandler.getTempFileDeleter.

Doc from org.h2.store.DataHandler.getTempFileDeleter.

Get the temp file deleter mechanism.

Returns:TempFileDeleter

the temp file deleter

Annotations
@Override
getTraceback to summary
public Trace getTrace()

Implements abstract org.h2.engine.Session.getTrace.

Doc from org.h2.engine.Session.getTrace.

Get the trace object

Returns:Trace

the trace object

Annotations
@Override
hasPendingTransactionback to summary
public boolean hasPendingTransaction()

Implements abstract org.h2.engine.Session.hasPendingTransaction.

Doc from org.h2.engine.Session.hasPendingTransaction.

Check whether this session has a pending transaction.

Returns:boolean

true if it has

Annotations
@Override
initTransferback to summary
private Transfer initTransfer(ConnectionInfo ci, String db, String server) throws IOException
isClosedback to summary
public boolean isClosed()

Implements abstract org.h2.engine.Session.isClosed.

Doc from org.h2.engine.Session.isClosed.

Check if close was called.

Returns:boolean

if the session has been closed

Annotations
@Override
isClusteredback to summary
public boolean isClustered()

Returns true if the connection was opened in cluster mode.

Returns:boolean

true if it is

isOldInformationSchemaback to summary
public boolean isOldInformationSchema()

Implements abstract org.h2.engine.Session.isOldInformationSchema.

Doc from org.h2.engine.Session.isOldInformationSchema.

Returns whether INFORMATION_SCHEMA contains old-style tables.

Returns:boolean

whether INFORMATION_SCHEMA contains old-style tables

Annotations
@Override
isRemoteback to summary
public boolean isRemote()

Implements abstract org.h2.engine.Session.isRemote.

Doc from org.h2.engine.Session.isRemote.

Check if this session is remote or embedded.

Returns:boolean

true if this session is remote

Annotations
@Override
openFileback to summary
public FileStore openFile(String name, String mode, boolean mustExist)

Implements org.h2.store.DataHandler.openFile.

Doc from org.h2.store.DataHandler.openFile.

Open a file at the given location.

Parameters
name:String

the file name

mode:String

the mode

mustExist:boolean

whether the file must already exist

Returns:FileStore

the file

Annotations
@Override
prepareCommandback to summary
public CommandInterface prepareCommand(String sql, int fetchSize)

Implements abstract org.h2.engine.Session.prepareCommand.

Doc from org.h2.engine.Session.prepareCommand.

Parse a command and prepare it for execution.

Parameters
sql:String

the SQL statement

fetchSize:int

the number of rows to fetch in one step

Returns:CommandInterface

the prepared command

Annotations
@Override
readExceptionback to summary
public static DbException readException(Transfer transfer) throws IOException

Reads an exception.

Parameters
transfer:Transfer

the transfer object

Returns:DbException

the exception

Exceptions
IOException:
on I/O exception
readLobback to summary
public int readLob(long lobId, byte[] hmac, long offset, byte[] buff, int off, int length)

Implements org.h2.store.DataHandler.readLob.

Doc from org.h2.store.DataHandler.readLob.

Read from a lob.

Parameters
lobId:long

the lob id

hmac:byte[]

the message authentication code

offset:long

the offset within the lob

buff:byte[]

the target buffer

off:int

the offset within the target buffer

length:int

the number of bytes to read

Returns:int

the number of bytes read

Annotations
@Override
readSQLExceptionback to summary
public static SQLException readSQLException(Transfer transfer) throws IOException

Reads an exception as SQL exception.

Parameters
transfer:Transfer

the transfer object

Returns:SQLException

the exception

Exceptions
IOException:
on I/O exception
removeServerback 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.

Parameters
e:IOException

the exception (used for debugging)

i:int

the index of the server to remove

count:int

the retry count index

setAutoCommitback to summary
public void setAutoCommit(boolean autoCommit)

Implements abstract org.h2.engine.Session.setAutoCommit.

Doc from org.h2.engine.Session.setAutoCommit.

Set the auto-commit mode. This call doesn't commit the current transaction.

Parameters
autoCommit:boolean

the new value

Annotations
@Override
setAutoCommitFromServerback to summary
public void setAutoCommitFromServer(boolean autoCommit)
setAutoCommitSendback to summary
private void setAutoCommitSend(boolean autoCommit)
setCurrentSchemaNameback to summary
public void setCurrentSchemaName(String schema)

Implements abstract org.h2.engine.Session.setCurrentSchemaName.

Doc from org.h2.engine.Session.setCurrentSchemaName.

Set current schema.

Parameters
schema:String

the schema name

Annotations
@Override
setIsolationLevelback to summary
public void setIsolationLevel(IsolationLevel isolationLevel)

Implements abstract org.h2.engine.Session.setIsolationLevel.

Doc from org.h2.engine.Session.setIsolationLevel.

Sets the isolation level.

Parameters
isolationLevel:IsolationLevel

the isolation level to set

Annotations
@Override
setNetworkConnectionInfoback to summary
public void setNetworkConnectionInfo(NetworkConnectionInfo networkConnectionInfo)

Implements abstract org.h2.engine.Session.setNetworkConnectionInfo.

Doc from org.h2.engine.Session.setNetworkConnectionInfo.

Sets the network connection information if possible.

Parameters
networkConnectionInfo:NetworkConnectionInfo

the network connection information

Annotations
@Override
switchOffClusterback to summary
private void switchOffCluster()
traceOperationback to summary
public void traceOperation(String operation, int id)

Write the operation to the trace system if debug trace is enabled.

Parameters
operation:String

the operation performed

id:int

the id of the operation

zeroBasedEnumsback to summary
public boolean zeroBasedEnums()

Implements org.h2.engine.CastDataProvider.zeroBasedEnums.

Doc from org.h2.engine.CastDataProvider.zeroBasedEnums.

Returns are ENUM values 0-based.

Returns:boolean

are ENUM values 0-based

Annotations
@Override