org.hsqldb
Class Result

java.lang.Object
  extended byorg.hsqldb.Result

public class Result
extends Object

Class declaration

Version:
1.7.2

Nested Class Summary
static class Result.ResultMetaData
           
 
Field Summary
 int iMode
           
 Result.ResultMetaData metaData
           
 Record rRoot
           
 
Constructor Summary
Result(int type)
          General constructor
Result(int type, int[] types, int id)
          For BATCHEXECUTE and BATCHEXECDIRECT
Result(Throwable t, String statement)
           
 
Method Summary
 void add(Object[] d)
          Method declaration
 void clear()
           
 int getColumnCount()
          Method declaration
 String getMainString()
           
 int getSize()
          Method declaration
 int getStatementID()
           
 int getStatementType()
           
 String getSubString()
           
 int getUpdateCount()
           
 int[] getUpdateCounts()
           
 boolean isEmpty()
           
 Iterator iterator()
           
static Result newFreeStmtRequest(int statementID)
           
static Result newReleaseSavepointRequest(String name)
           
static Result newRollbackToSavepointRequest(String name)
           
static Result newSetSavepointRequest(String name)
           
static Result read(RowInputInterface rowin, DataInputStream datain)
          Convenience method for reading, shared by Server side.
 void setMainString(String sql)
           
 void setMaxRows(int count)
           
 void setParameterData(Object[] data)
           
 void setResultType(int type)
           
 void setStatementType(int type)
           
static void write(Result r, RowOutputInterface rowout, OutputStream dataout)
          Convenience method for writing, shared by Server side.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rRoot

public Record rRoot

iMode

public int iMode

metaData

public Result.ResultMetaData metaData
Constructor Detail

Result

public Result(int type)
General constructor


Result

public Result(int type,
              int[] types,
              int id)
For BATCHEXECUTE and BATCHEXECDIRECT


Result

public Result(Throwable t,
              String statement)
To Do:
fredt - move the messages to Trace.java
Method Detail

newFreeStmtRequest

public static Result newFreeStmtRequest(int statementID)

newReleaseSavepointRequest

public static Result newReleaseSavepointRequest(String name)

newRollbackToSavepointRequest

public static Result newRollbackToSavepointRequest(String name)

newSetSavepointRequest

public static Result newSetSavepointRequest(String name)

getSize

public int getSize()
Method declaration

Returns:

getColumnCount

public int getColumnCount()
Method declaration

Returns:

clear

public void clear()

isEmpty

public boolean isEmpty()

add

public void add(Object[] d)
Method declaration

Parameters:
d -

write

public static void write(Result r,
                         RowOutputInterface rowout,
                         OutputStream dataout)
                  throws IOException,
                         HsqlException
Convenience method for writing, shared by Server side.

Throws:
IOException
HsqlException

read

public static Result read(RowInputInterface rowin,
                          DataInputStream datain)
                   throws IOException,
                          HsqlException
Convenience method for reading, shared by Server side.

Throws:
IOException
HsqlException

getStatementID

public int getStatementID()

getMainString

public String getMainString()

setMainString

public void setMainString(String sql)

getSubString

public String getSubString()

setMaxRows

public void setMaxRows(int count)

getUpdateCount

public int getUpdateCount()

getUpdateCounts

public int[] getUpdateCounts()
To Do:
fred - check this repurposing

setParameterData

public void setParameterData(Object[] data)

setResultType

public void setResultType(int type)

setStatementType

public void setStatementType(int type)

getStatementType

public int getStatementType()

iterator

public Iterator iterator()


Copyright © 2001 - 2004 HSQL Development Group. All Rights Reserved.