| org.h2.engine.SessionInterface
All known Subclasses: org.h2.engine.Session, org.h2.engine.SessionRemote,
SessionInterface | public interface SessionInterface (Code) | | A local or remote session. A session represents a database connection.
|
cancel | void cancel()(Code) | | Cancel the current or next command (called when closing a connection).
|
close | void close() throws SQLException(Code) | | Roll back pending transactions and close the session.
|
getDataHandler | DataHandler getDataHandler()(Code) | | Get the data handler object.
the data handler |
getPowerOffCount | int getPowerOffCount()(Code) | | Get the number of disk operations before power failure is simulated.
This is used for testing. If not set, 0 is returned
the number of operations, or 0 |
getTrace | Trace getTrace()(Code) | | Get the trace object
the trace object |
isClosed | boolean isClosed()(Code) | | Check if close was called.
if the session has been closed |
prepareCommand | CommandInterface prepareCommand(String sql, int fetchSize) throws SQLException(Code) | | Parse a command and prepare it for execution.
Parameters: sql - the SQL statement Parameters: fetchSize - the number of rows to fetch in one step the prepared command |
setPowerOffCount | void setPowerOffCount(int i) throws SQLException(Code) | | Set the number of disk operations before power failure is simulated.
To disable the countdown, use 0.
Parameters: i - the number of operations |
|
|