org.apache.derby.client.am
Class Cursor
- java.lang.Object
-
- org.apache.derby.client.am.Cursor
-
public abstract class Cursor extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field and Description static intBYTESint[]ccsid_java.nio.charset.Charset[]charset_intcolumns_byte[]dataBuffer_java.io.ByteArrayOutputStreamdataBufferStream_int[]fdocaLength_booleanhasLobs_boolean[]isNull_int[]jdbcTypes_intlastValidBytePosition_static intNULL_TERMINATED_BYTESstatic intNULL_TERMINATED_STRINGboolean[]nullable_intposition_static intSTRINGstatic intVARIABLE_SHORT_STRINGstatic intVARIABLE_STRING
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description voidallocateCharBuffer()booleanallRowsReceivedFromServer()Returntrueif all rows are received from the server.abstract ClientBlobgetBlobColumn_(int column, Agent agent, boolean toBePublished)Returns aBlobobject.abstract ClientClobgetClobColumn_(int column, Agent agent, boolean toBePublished)Returns aClobobject.booleangetIsRowUpdated()Get updated status for this row.booleangetIsUpdateDeleteHole()Get deleted status for this row.voidincrementRowsReadEvent()booleannext()Makes the next row the current row.voidnullDataForGC()voidresetDataBuffer()voidsetAllRowsReceivedFromServer(boolean b)Set the value of value of allRowsReceivedFromServer_.voidsetIsRowUpdated(boolean isRowUpdated)Keep track of updated status for this row.voidsetIsUpdataDeleteHole(int row, boolean isRowNull)voidsetNumberOfColumns(int numberOfColumns)
-
-
-
Field Detail
-
STRING
public static final int STRING
- See Also:
- Constant Field Values
-
VARIABLE_STRING
public static final int VARIABLE_STRING
- See Also:
- Constant Field Values
-
VARIABLE_SHORT_STRING
public static final int VARIABLE_SHORT_STRING
- See Also:
- Constant Field Values
-
NULL_TERMINATED_STRING
public static final int NULL_TERMINATED_STRING
- See Also:
- Constant Field Values
-
BYTES
public static final int BYTES
- See Also:
- Constant Field Values
-
NULL_TERMINATED_BYTES
public static final int NULL_TERMINATED_BYTES
- See Also:
- Constant Field Values
-
dataBuffer_
public byte[] dataBuffer_
-
dataBufferStream_
public java.io.ByteArrayOutputStream dataBufferStream_
-
position_
public int position_
-
lastValidBytePosition_
public int lastValidBytePosition_
-
hasLobs_
public boolean hasLobs_
-
jdbcTypes_
public int[] jdbcTypes_
-
columns_
public int columns_
-
nullable_
public boolean[] nullable_
-
charset_
public java.nio.charset.Charset[] charset_
-
isNull_
public boolean[] isNull_
-
fdocaLength_
public int[] fdocaLength_
-
ccsid_
public int[] ccsid_
-
-
Constructor Detail
-
Cursor
public Cursor(Agent agent)
-
-
Method Detail
-
setNumberOfColumns
public void setNumberOfColumns(int numberOfColumns)
-
next
public boolean next() throws SqlExceptionMakes the next row the current row. Returns true if the current row position is a valid row position.- Returns:
trueif current row position is valid- Throws:
SqlException- if an error occurs
-
setAllRowsReceivedFromServer
public void setAllRowsReceivedFromServer(boolean b)
Set the value of value of allRowsReceivedFromServer_.- Parameters:
b- abooleanvalue indicating whether all rows are received from the server
-
allRowsReceivedFromServer
public final boolean allRowsReceivedFromServer()
Returntrueif all rows are received from the server.- Returns:
trueif all rows are received from the server.
-
resetDataBuffer
public final void resetDataBuffer()
-
setIsUpdataDeleteHole
public final void setIsUpdataDeleteHole(int row, boolean isRowNull)
-
setIsRowUpdated
public final void setIsRowUpdated(boolean isRowUpdated)
Keep track of updated status for this row.- Parameters:
isRowUpdated- true if row has been updated- See Also:
getIsRowUpdated()
-
getIsRowUpdated
public final boolean getIsRowUpdated()
Get updated status for this row. Minion of ResultSet#rowUpdated.- See Also:
setIsRowUpdated(boolean)
-
getIsUpdateDeleteHole
public final boolean getIsUpdateDeleteHole()
Get deleted status for this row. Minion of ResultSet#rowDeleted.- See Also:
setIsUpdataDeleteHole(int, boolean)
-
incrementRowsReadEvent
public final void incrementRowsReadEvent()
-
getBlobColumn_
public abstract ClientBlob getBlobColumn_(int column, Agent agent, boolean toBePublished) throws SqlException
Returns aBlobobject.- Parameters:
column- 1-based column indexagent- associated agenttoBePublished- whether the Blob will be published to the user- Returns:
- A Blob object.
- Throws:
SqlException- if getting theBlobfails
-
getClobColumn_
public abstract ClientClob getClobColumn_(int column, Agent agent, boolean toBePublished) throws SqlException
Returns aClobobject.- Parameters:
column- 1-based column indexagent- associated agenttoBePublished- whether the Clob will be published to the user- Returns:
- A
java.sql.Clobobject. - Throws:
SqlException- if getting theClobfails
-
allocateCharBuffer
public final void allocateCharBuffer()
-
nullDataForGC
public void nullDataForGC()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG