|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.hsqldb.Session
Implementation of a user session with the database. In 1.7.2 Session becomes the public interface to an HSQLDB database, accessed locally or remotely via SessionInterface. When as Session is closed, all references to internal engine objects are set to null. But the session id and scripting mode may still be used for scripting
| Method Summary | |
void |
close()
Closes this Session. |
void |
commit()
Commits any uncommited transaction this Session may have open |
Result |
execute(Result cmd)
Executes the command encapsulated by the cmd argument. |
int |
getId()
Retrieves the session identifier for this Session. |
boolean |
isAutoCommit()
Getter for autoCommit attribute. |
boolean |
isClosed()
Retrieves whether this Session is closed. |
boolean |
isReadOnly()
Getter for readonly attribute. |
void |
rollback()
Rolls back any uncommited transaction this Session may have open. |
void |
setAutoCommit(boolean autocommit)
Setter for the autocommit attribute. |
void |
setReadOnly(boolean readonly)
Setter for readonly attribute. |
Result |
sqlExecuteDirectNoPreChecks(String sql)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public int getId()
getId in interface SessionInterfacepublic void close()
close in interface SessionInterfacepublic boolean isClosed()
isClosed in interface SessionInterfacepublic void setAutoCommit(boolean autocommit)
setAutoCommit in interface SessionInterfaceautocommit - the new value
HsqlExceptionpublic void commit()
commit in interface SessionInterfaceHsqlExceptionpublic void rollback()
rollback in interface SessionInterfaceHsqlException
public void setReadOnly(boolean readonly)
throws HsqlException
setReadOnly in interface SessionInterfacereadonly - the new value
HsqlExceptionpublic boolean isReadOnly()
isReadOnly in interface SessionInterfacepublic boolean isAutoCommit()
isAutoCommit in interface SessionInterfacepublic Result execute(Result cmd)
execute in interface SessionInterfacecmd - the command to execute
public Result sqlExecuteDirectNoPreChecks(String sql)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||