|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectgeneralDatabase.pamCursor.PamCursor
generalDatabase.pamCursor.ScrollablePamCursor
public class ScrollablePamCursor
| Field Summary | |
|---|---|
private java.sql.ResultSet |
scrollableCursor
|
| Constructor Summary | |
|---|---|
ScrollablePamCursor(EmptyTableDefinition tableDefinition)
|
|
| Method Summary | |
|---|---|
boolean |
absolute(int row)
Go t0 an absolute row number |
void |
afterLast()
|
void |
beforeFirst()
|
void |
close()
|
boolean |
closeScrollableCursor()
Close the scrollable cursor. |
void |
deleteRow()
|
int |
findColumn(java.lang.String columnLabel)
|
boolean |
first()
|
boolean |
getBoolean(int columnIndex)
|
byte |
getByte(int columnIndex)
|
java.sql.Date |
getDate(int columnIndex)
|
java.sql.Date |
getDate(int columnIndex,
java.util.Calendar cal)
|
double |
getDouble(int columnIndex)
|
float |
getFloat(int columnIndex)
|
int |
getInt(int columnIndex)
|
(package private) int |
getLastDatabaseIndex(java.sql.Connection connection,
java.sql.PreparedStatement preparedInsertStatement)
Gets called from ImmediateInsert to get the last database index using a couple of alternate methods. |
long |
getLong(int columnIndex)
|
java.lang.Object |
getObject(int columnIndex)
|
int |
getRow()
Retrieves the current row number. |
java.sql.RowId |
getRowId(int columnIndex)
|
java.lang.String |
getString(int columnIndex)
|
java.sql.Time |
getTime(int columnIndex)
|
java.sql.Timestamp |
getTimestamp(int columnIndex)
|
int |
insertRow(boolean getIndex)
Insert row statement |
boolean |
isAfterLast()
|
boolean |
isBeforeFirst()
|
boolean |
isClosed()
|
boolean |
isFirst()
|
boolean |
isLast()
|
boolean |
last()
|
void |
moveToCurrentRow()
|
void |
moveToInsertRow()
|
boolean |
next()
|
boolean |
openScrollableCursor(java.sql.Connection connection,
boolean includeKeys,
boolean includeCounters,
java.lang.String clause)
Open a scrollable cursor |
boolean |
previous()
|
void |
refreshRow()
|
boolean |
rowDeleted()
|
boolean |
rowInserted()
|
boolean |
rowUpdated()
|
void |
updateBoolean(int columnIndex,
boolean x)
|
void |
updateByte(int columnIndex,
byte x)
|
boolean |
updateDatabase()
Push everything down onto the database |
void |
updateInt(int columnIndex,
int x)
|
void |
updateLong(int columnIndex,
long x)
|
void |
updateNull(int columnIndex)
|
void |
updateObject(int columnIndex,
java.lang.Object x)
|
void |
updateRow()
|
void |
updateShort(int columnIndex,
short x)
|
void |
updateString(int columnIndex,
java.lang.String x)
|
void |
updateTimestamp(int columnIndex,
java.sql.Timestamp x)
|
| Methods inherited from class generalDatabase.pamCursor.PamCursor |
|---|
finalize, getCurrentConnection, getInsertString, getSelectString, getSelectString, getTableDefinition, getUpdateString, immediateInsert, immediateUpdate, moveDataToCursor, moveDataToTableDef, openInsertCursor, openReadOnlyCursor, setCurrentConnection |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.sql.ResultSet scrollableCursor
| Constructor Detail |
|---|
public ScrollablePamCursor(EmptyTableDefinition tableDefinition)
| Method Detail |
|---|
public boolean openScrollableCursor(java.sql.Connection connection,
boolean includeKeys,
boolean includeCounters,
java.lang.String clause)
PamCursor
openScrollableCursor in class PamCursorconnection - database connectionincludeKeys - include keysincludeCounters - inlcude countersclause - selection and ordering clause.
public boolean closeScrollableCursor()
PamCursor
closeScrollableCursor in class PamCursor
int getLastDatabaseIndex(java.sql.Connection connection,
java.sql.PreparedStatement preparedInsertStatement)
PamCursor
getLastDatabaseIndex in class PamCursorpublic boolean updateDatabase()
PamCursor
updateDatabase in class PamCursorpublic boolean absolute(int row)
PamCursorNote that row numbers are 1 indexed.
absolute in class PamCursorrow - Row number
public void afterLast()
afterLast in class PamCursorpublic void beforeFirst()
beforeFirst in class PamCursorpublic void close()
close in class PamCursorpublic void deleteRow()
deleteRow in class PamCursorpublic int findColumn(java.lang.String columnLabel)
findColumn in class PamCursorpublic boolean first()
first in class PamCursor
public int getRow()
throws java.sql.SQLException
PamCursor
getRow in class PamCursorjava.sql.SQLException - if a database error occurspublic java.lang.Object getObject(int columnIndex)
getObject in class PamCursorpublic boolean getBoolean(int columnIndex)
getBoolean in class PamCursorpublic byte getByte(int columnIndex)
getByte in class PamCursor
public java.sql.Date getDate(int columnIndex,
java.util.Calendar cal)
getDate in class PamCursorpublic java.sql.Date getDate(int columnIndex)
getDate in class PamCursorpublic double getDouble(int columnIndex)
getDouble in class PamCursorpublic float getFloat(int columnIndex)
getFloat in class PamCursorpublic int getInt(int columnIndex)
getInt in class PamCursorpublic long getLong(int columnIndex)
getLong in class PamCursorpublic java.sql.RowId getRowId(int columnIndex)
getRowId in class PamCursorpublic java.lang.String getString(int columnIndex)
getString in class PamCursorpublic java.sql.Time getTime(int columnIndex)
getTime in class PamCursorpublic java.sql.Timestamp getTimestamp(int columnIndex)
getTimestamp in class PamCursorpublic boolean isAfterLast()
isAfterLast in class PamCursorpublic boolean isBeforeFirst()
isBeforeFirst in class PamCursorpublic boolean isClosed()
isClosed in class PamCursorpublic boolean isFirst()
isFirst in class PamCursorpublic boolean isLast()
isLast in class PamCursorpublic boolean last()
last in class PamCursorpublic void moveToCurrentRow()
moveToCurrentRow in class PamCursorpublic void moveToInsertRow()
moveToInsertRow in class PamCursorpublic int insertRow(boolean getIndex)
PamCursor
insertRow in class PamCursorgetIndex - set true if you want to return the new database index.
Otherwise 0 will be returned.
public boolean next()
next in class PamCursorpublic boolean previous()
previous in class PamCursorpublic void refreshRow()
refreshRow in class PamCursorpublic boolean rowDeleted()
rowDeleted in class PamCursorpublic boolean rowInserted()
rowInserted in class PamCursorpublic boolean rowUpdated()
rowUpdated in class PamCursor
public void updateObject(int columnIndex,
java.lang.Object x)
throws java.sql.SQLException
updateObject in class PamCursorjava.sql.SQLException
public void updateBoolean(int columnIndex,
boolean x)
throws java.sql.SQLException
updateBoolean in class PamCursorjava.sql.SQLException
public void updateByte(int columnIndex,
byte x)
throws java.sql.SQLException
updateByte in class PamCursorjava.sql.SQLException
public void updateInt(int columnIndex,
int x)
throws java.sql.SQLException
updateInt in class PamCursorjava.sql.SQLException
public void updateLong(int columnIndex,
long x)
throws java.sql.SQLException
updateLong in class PamCursorjava.sql.SQLException
public void updateNull(int columnIndex)
throws java.sql.SQLException
updateNull in class PamCursorjava.sql.SQLException
public void updateRow()
throws java.sql.SQLException
updateRow in class PamCursorjava.sql.SQLException
public void updateString(int columnIndex,
java.lang.String x)
throws java.sql.SQLException
updateString in class PamCursorjava.sql.SQLException
public void updateShort(int columnIndex,
short x)
throws java.sql.SQLException
updateShort in class PamCursorjava.sql.SQLException
public void updateTimestamp(int columnIndex,
java.sql.Timestamp x)
throws java.sql.SQLException
updateTimestamp in class PamCursorjava.sql.SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||