org.hsqldb
Class HSQLClientConnection
java.lang.Object
org.hsqldb.HSQLClientConnection
- All Implemented Interfaces:
- SessionInterface
- Direct Known Subclasses:
- HTTPClientConnection
- public class HSQLClientConnection
- extends Object
- implements SessionInterface
To Do:
- fredt - manage the size of rowIn / rowOut buffer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dataOutput
protected OutputStream dataOutput
dataInput
protected DataInputStream dataInput
rowOut
protected RowOutputBinary rowOut
rowIn
protected RowInputBinary rowIn
HSQLClientConnection
public HSQLClientConnection(String host,
int port,
String path,
String database,
boolean isTLS,
String user,
String password)
throws HsqlException
initConnection
protected void initConnection(String host,
int port,
boolean isTLS)
throws HsqlException
- Throws:
HsqlException
openConnection
protected void openConnection(String host,
int port,
boolean isTLS)
throws HsqlException
- Throws:
HsqlException
closeConnection
protected void closeConnection()
execute
public Result execute(Result r)
throws HsqlException
- Specified by:
execute
in interface SessionInterface
- Throws:
HsqlException
close
public void close()
- Specified by:
close
in interface SessionInterface
isReadOnly
public boolean isReadOnly()
throws HsqlException
- Specified by:
isReadOnly
in interface SessionInterface
- Throws:
HsqlException
setReadOnly
public void setReadOnly(boolean mode)
throws HsqlException
- Specified by:
setReadOnly
in interface SessionInterface
- Throws:
HsqlException
isAutoCommit
public boolean isAutoCommit()
throws HsqlException
- Specified by:
isAutoCommit
in interface SessionInterface
- Throws:
HsqlException
setAutoCommit
public void setAutoCommit(boolean mode)
throws HsqlException
- Specified by:
setAutoCommit
in interface SessionInterface
- Throws:
HsqlException
isClosed
public boolean isClosed()
- Specified by:
isClosed
in interface SessionInterface
getSession
public Session getSession()
commit
public void commit()
throws HsqlException
- Specified by:
commit
in interface SessionInterface
- Throws:
HsqlException
rollback
public void rollback()
throws HsqlException
- Specified by:
rollback
in interface SessionInterface
- Throws:
HsqlException
getId
public int getId()
- Specified by:
getId
in interface SessionInterface
write
protected void write(Result r)
throws IOException,
HsqlException
- Throws:
IOException
HsqlException
read
protected Result read()
throws IOException,
HsqlException
- Throws:
IOException
HsqlException
Copyright © 2001 - 2004 HSQL Development Group. All Rights Reserved.