org.hsqldb
Class HSQLClientConnection

java.lang.Object
  extended byorg.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

Field Summary
protected  DataInputStream dataInput
           
protected  OutputStream dataOutput
           
protected  RowInputBinary rowIn
           
protected  RowOutputBinary rowOut
           
 
Constructor Summary
HSQLClientConnection(String host, int port, String path, String database, boolean isTLS, String user, String password)
           
 
Method Summary
 void close()
           
protected  void closeConnection()
           
 void commit()
           
 Result execute(Result r)
           
 int getId()
           
 Session getSession()
           
protected  void initConnection(String host, int port, boolean isTLS)
           
 boolean isAutoCommit()
           
 boolean isClosed()
           
 boolean isReadOnly()
           
protected  void openConnection(String host, int port, boolean isTLS)
           
protected  Result read()
           
 void rollback()
           
 void setAutoCommit(boolean mode)
           
 void setReadOnly(boolean mode)
           
protected  void write(Result r)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dataOutput

protected OutputStream dataOutput

dataInput

protected DataInputStream dataInput

rowOut

protected RowOutputBinary rowOut

rowIn

protected RowInputBinary rowIn
Constructor Detail

HSQLClientConnection

public HSQLClientConnection(String host,
                            int port,
                            String path,
                            String database,
                            boolean isTLS,
                            String user,
                            String password)
                     throws HsqlException
Method Detail

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.