com.jdbaccess.db
Class PrepStatement

java.lang.Object
  extended by com.jdbaccess.db.Statement
      extended by com.jdbaccess.db.PrepStatement

public class PrepStatement
extends Statement


Field Summary
protected static java.util.ArrayList batchHighWatermarks
           
protected  java.util.Hashtable dbFields
           
protected static int MAX_NUMBER_BATCH_UPDATES
           
protected  java.sql.ResultSet rs
           
 
Fields inherited from class com.jdbaccess.db.Statement
da, id, lastAccess, lastExecution, name, size, stmt, transaction
 
Constructor Summary
PrepStatement(int id, java.lang.String name, java.sql.Statement stmt)
           
 
Method Summary
 void beforeFirstRow()
           
 void close()
           
 com.jdbaccess.daimpl.ResultImpl executeSelect()
           
 java.lang.Long executeUpdate()
           
 java.util.ArrayList getAllElements(com.jdbaccess.daimpl.ResultImpl result)
           
 TransferObject getElement()
           
 java.util.ArrayList getNextElements(com.jdbaccess.daimpl.ResultImpl result, long count)
           
 long getSize()
           
 java.lang.Object getValue(Field field, boolean readFull)
           
 boolean nextElement()
           
 void setDataAccess(com.jdbaccess.daimpl.DataAccessImpl da)
           
 long setPosition(long pos)
          Set position to pos.
 
Methods inherited from class com.jdbaccess.db.Statement
getAllElements, getBlob, getClob, getDataAccess, getElement, getElement, getFields, getLastAccess, getName, getNextElements, getValue, hasSameParameters, nextElement, setBlobParameter, setClobParameter, setLastAccess, setParameter, setTransaction, sql2JavaType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MAX_NUMBER_BATCH_UPDATES

protected static int MAX_NUMBER_BATCH_UPDATES

batchHighWatermarks

protected static java.util.ArrayList batchHighWatermarks

rs

protected java.sql.ResultSet rs

dbFields

protected java.util.Hashtable dbFields
Constructor Detail

PrepStatement

public PrepStatement(int id,
                     java.lang.String name,
                     java.sql.Statement stmt)
Method Detail

setDataAccess

public void setDataAccess(com.jdbaccess.daimpl.DataAccessImpl da)
                   throws ApplicationException
Overrides:
setDataAccess in class Statement
Throws:
ApplicationException

executeUpdate

public java.lang.Long executeUpdate()
                             throws ApplicationException
Throws:
ApplicationException

executeSelect

public com.jdbaccess.daimpl.ResultImpl executeSelect()
                                              throws ApplicationException
Throws:
ApplicationException

getAllElements

public java.util.ArrayList getAllElements(com.jdbaccess.daimpl.ResultImpl result)
                                   throws ApplicationException
Throws:
ApplicationException

getNextElements

public java.util.ArrayList getNextElements(com.jdbaccess.daimpl.ResultImpl result,
                                           long count)
                                    throws ApplicationException
Throws:
ApplicationException

nextElement

public boolean nextElement()
                    throws ApplicationException
Throws:
ApplicationException

getElement

public TransferObject getElement()
                          throws ApplicationException
Throws:
ApplicationException

beforeFirstRow

public void beforeFirstRow()
                    throws ApplicationException
Throws:
ApplicationException

getValue

public java.lang.Object getValue(Field field,
                                 boolean readFull)
                          throws ApplicationException
Throws:
ApplicationException

setPosition

public long setPosition(long pos)
                 throws ApplicationException
Set position to pos. If pos is greater than result set size, set position after the last element of the result set. If pos is less than 1, set position before first element of the result set

Parameters:
pos -
Returns:
position which was set
Throws:
ApplicationException

getSize

public long getSize()
             throws ApplicationException
Throws:
ApplicationException

close

public void close()
           throws ApplicationException
Overrides:
close in class Statement
Throws:
ApplicationException