public class Cursor
extends java.lang.Object
Constructor and Description |
---|
Cursor(Document doc)
Creates a new instance of Cursor
|
Cursor(int cursorNode)
Creates a new instance of Cursor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getId()
Returns the identifier of this Cursor object as specified in "id" attribute.
|
int |
getMaxRows()
Returns the maximum number of rows that can be fetched by this Cursor object.
|
int |
getNumRows()
Returns the number of rows that will be fetched by this Cursor object.
|
int |
getPosition()
Returns the current position of this Cursor as specified in "position" attribute
|
java.lang.String |
getXmlString()
Returns the string for this Cusror object.
|
void |
setId(java.lang.String id)
Sets the id of Cursor object.
|
void |
setMaxRows(int maxRows)
Set the max number of rows to be fetched by this Cursor object each time.
|
void |
setNumRows(int numRows)
Set the number of rows to be fetched by this Cursor object each time.
|
void |
setPosition(int position)
Set the position of the Cursor.
|
void |
setSameConnection(boolean useSameConnection)
Sets value indicating if the same connection should be used or not
|
void |
updateCursorData(int newCursorData)
Updates the cursor data with the given nom handle to the cursor details
|
boolean |
useSameConnection()
Returns boolean value indicating if the same connection should be used or not
|
public Cursor(int cursorNode)
cursorNode
- The nom integer that represents the cursor node in <cursor numRows="5" id="10" position="20" maxRows="1000"/> format
This responsibility of deleting this XML node lies with the calling programpublic Cursor(Document doc)
doc
- Document objectpublic int getNumRows()
public int getMaxRows()
public java.lang.String getId()
public int getPosition()
public boolean useSameConnection()
public void setSameConnection(boolean useSameConnection)
public void setNumRows(int numRows)
numRows
- public void setMaxRows(int maxRows)
maxRows
- public void setId(java.lang.String id)
id
- public void setPosition(int position)
position
- public void updateCursorData(int newCursorData)
newCursorData
- public java.lang.String getXmlString()