com.jdbaccess.db
Class PrepStatement
java.lang.Object
com.jdbaccess.db.Statement
com.jdbaccess.db.PrepStatement
public class PrepStatement
- extends Statement
Constructor Summary |
PrepStatement(int id,
java.lang.String name,
java.sql.Statement stmt)
|
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 |
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
PrepStatement
public PrepStatement(int id,
java.lang.String name,
java.sql.Statement stmt)
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