Package generalDatabase.pamCursor
Class ScrollablePamCursor
java.lang.Object
generalDatabase.pamCursor.PamCursor
generalDatabase.pamCursor.ScrollablePamCursor
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbooleanabsolute(int row) Go t0 an absolute row numbervoidvoidvoidclose()booleanClose the scrollable cursor.voidintfindColumn(String columnLabel) booleanfirst()booleangetBoolean(int columnIndex) bytegetByte(int columnIndex) getDate(int columnIndex) doublegetDouble(int columnIndex) floatgetFloat(int columnIndex) intgetInt(int columnIndex) longgetLong(int columnIndex) getObject(int columnIndex) intgetRow()Retrieves the current row number.getRowId(int columnIndex) getString(int columnIndex) getTime(int columnIndex) getTimestampMillis(int columnIndex) intinsertRow(boolean getIndex) Insert row statementbooleanbooleanbooleanisClosed()booleanisFirst()booleanisLast()booleanlast()voidvoidbooleannext()booleanopenScrollableCursor(PamConnection connection, boolean includeKeys, boolean includeCounters, String clause) Open a scrollable cursorbooleanprevious()voidbooleanbooleanbooleanvoidupdateBoolean(int columnIndex, boolean x) voidupdateByte(int columnIndex, byte x) booleanPush everything down onto the databasevoidupdateInt(int columnIndex, int x) voidupdateLong(int columnIndex, long x) voidupdateNull(int columnIndex) voidupdateObject(int columnIndex, Object x) voidvoidupdateShort(int columnIndex, short x) voidupdateString(int columnIndex, String x) voidupdateTimestamp(int columnIndex, Timestamp x) Methods inherited from class generalDatabase.pamCursor.PamCursor
closeCursors, executeReadOnlyStatement, finalize, getCurrentConnection, getInsertString, getSelectString, getSelectString, getSelectString, getSqlTypes, getTableDefinition, getUpdateString, getUTCTime, immediateInsert, immediateUpdate, moveDataToCursor, moveDataToTableDef, openInsertCursor, openReadOnlyCursor, openReadOnlyCursorWithStatement, setCurrentConnection 
- 
Constructor Details
- 
ScrollablePamCursor
 
 - 
 - 
Method Details
- 
openScrollableCursor
public boolean openScrollableCursor(PamConnection connection, boolean includeKeys, boolean includeCounters, String clause) Description copied from class:PamCursorOpen a scrollable cursor- Specified by:
 openScrollableCursorin classPamCursor- Parameters:
 connection- database connectionincludeKeys- include keysincludeCounters- inlcude countersclause- selection and ordering clause.- Returns:
 - true if successfully opened.
 
 - 
closeScrollableCursor
public boolean closeScrollableCursor()Description copied from class:PamCursorClose the scrollable cursor.- Specified by:
 closeScrollableCursorin classPamCursor- Returns:
 - true if no exception.
 
 - 
updateDatabase
public boolean updateDatabase()Description copied from class:PamCursorPush everything down onto the database- Specified by:
 updateDatabasein classPamCursor- Returns:
 - true if no errors or exceptions.
 
 - 
absolute
public boolean absolute(int row) Description copied from class:PamCursorGo t0 an absolute row numberNote that row numbers are 1 indexed.
 - 
afterLast
public void afterLast() - 
beforeFirst
public void beforeFirst()- Specified by:
 beforeFirstin classPamCursor
 - 
close
public void close() - 
deleteRow
public void deleteRow() - 
findColumn
- Specified by:
 findColumnin classPamCursor
 - 
first
public boolean first() - 
getRow
Description copied from class:PamCursorRetrieves the current row number. The first row is number 1, the second number 2, and so on.- Specified by:
 getRowin classPamCursor- Returns:
 - the current Row number or 0 if there is no current row
 - Throws:
 SQLException- if a database error occurs
 - 
getObject
 - 
getBoolean
public boolean getBoolean(int columnIndex) - Specified by:
 getBooleanin classPamCursor
 - 
getByte
public byte getByte(int columnIndex)  - 
getDate
 - 
getDate
 - 
getDouble
public double getDouble(int columnIndex)  - 
getFloat
public float getFloat(int columnIndex)  - 
getInt
public int getInt(int columnIndex)  - 
getLong
public long getLong(int columnIndex)  - 
getRowId
 - 
getString
 - 
getTime
 - 
getTimestampMillis
- Specified by:
 getTimestampMillisin classPamCursor
 - 
isAfterLast
public boolean isAfterLast()- Specified by:
 isAfterLastin classPamCursor
 - 
isBeforeFirst
public boolean isBeforeFirst()- Specified by:
 isBeforeFirstin classPamCursor
 - 
isClosed
public boolean isClosed() - 
isFirst
public boolean isFirst() - 
isLast
public boolean isLast() - 
last
public boolean last() - 
moveToCurrentRow
public void moveToCurrentRow()- Specified by:
 moveToCurrentRowin classPamCursor
 - 
moveToInsertRow
public void moveToInsertRow()- Specified by:
 moveToInsertRowin classPamCursor
 - 
insertRow
public int insertRow(boolean getIndex) Description copied from class:PamCursorInsert row statement - 
next
public boolean next() - 
previous
public boolean previous() - 
refreshRow
public void refreshRow()- Specified by:
 refreshRowin classPamCursor
 - 
rowDeleted
public boolean rowDeleted()- Specified by:
 rowDeletedin classPamCursor
 - 
rowInserted
public boolean rowInserted()- Specified by:
 rowInsertedin classPamCursor
 - 
rowUpdated
public boolean rowUpdated()- Specified by:
 rowUpdatedin classPamCursor
 - 
updateObject
- Specified by:
 updateObjectin classPamCursor- Throws:
 SQLException
 - 
updateBoolean
- Specified by:
 updateBooleanin classPamCursor- Throws:
 SQLException
 - 
updateByte
- Specified by:
 updateBytein classPamCursor- Throws:
 SQLException
 - 
updateInt
- Specified by:
 updateIntin classPamCursor- Throws:
 SQLException
 - 
updateLong
- Specified by:
 updateLongin classPamCursor- Throws:
 SQLException
 - 
updateNull
- Specified by:
 updateNullin classPamCursor- Throws:
 SQLException
 - 
updateRow
- Specified by:
 updateRowin classPamCursor- Throws:
 SQLException
 - 
updateString
- Specified by:
 updateStringin classPamCursor- Throws:
 SQLException
 - 
updateShort
- Specified by:
 updateShortin classPamCursor- Throws:
 SQLException
 - 
updateTimestamp
- Specified by:
 updateTimestampin classPamCursor- Throws:
 SQLException
 
 -