|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface SessionInterface
A local or remote session. A session represents a database connection.
| Method Summary | |
|---|---|
void |
afterWriting()
Called after writing has ended. |
void |
cancel()
Cancel the current or next command (called when closing a connection). |
void |
close()
Roll back pending transactions and close the session. |
boolean |
getAutoCommit()
Check if this session is in auto-commit mode. |
DataHandler |
getDataHandler()
Get the data handler object. |
int |
getPowerOffCount()
Get the number of disk operations before power failure is simulated. |
Trace |
getTrace()
Get the trace object |
int |
getUndoLogPos()
Get the undo log position. |
boolean |
isClosed()
Check if close was called. |
boolean |
isReconnectNeeded(boolean write)
Check if the database changed and therefore reconnecting is required. |
CommandInterface |
prepareCommand(java.lang.String sql,
int fetchSize)
Parse a command and prepare it for execution. |
SessionInterface |
reconnect(boolean write)
Close the connection and open a new connection. |
void |
setAutoCommit(boolean autoCommit)
Set the auto-commit mode. |
void |
setPowerOffCount(int i)
Set the number of disk operations before power failure is simulated. |
| Method Detail |
|---|
CommandInterface prepareCommand(java.lang.String sql,
int fetchSize)
sql - the SQL statementfetchSize - the number of rows to fetch in one step
void close()
close in interface java.io.CloseableTrace getTrace()
boolean isClosed()
int getPowerOffCount()
void setPowerOffCount(int i)
i - the number of operationsDataHandler getDataHandler()
int getUndoLogPos()
void cancel()
boolean isReconnectNeeded(boolean write)
write - if the next operation may be writing
SessionInterface reconnect(boolean write)
write - if the next operation may be writing
void afterWriting()
boolean getAutoCommit()
void setAutoCommit(boolean autoCommit)
autoCommit - the new value
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||