|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ForwardOnlyData
For those who want to implement a new ForwardOnlyData (probably in a new DataTableModel
):
Note that this automatically upgrades the table whenever something is accessed that doesn't currently exist, if a TableFormat
has been set for the table. You can only get a new ForwardOnlyData with DataTableModel.getForwardOnlyData()
.
That upgrade will check TableVersionStorage
to see if the table should actually be upgraded.
Method Summary | |
---|---|
void |
close()
Call when done accessing this ForwardOnlyData. |
void |
deleteRecord()
Deletes the current row -- this method can only be called after you call moveToNextRecord() and it returns true. |
java.lang.Object |
getData(int columnIndex)
ColumnIndex starts at 0. |
java.lang.Object |
getData(java.lang.String columnName)
|
java.util.Date |
getDateData(java.lang.String columnName)
|
java.lang.Integer |
getIntegerData(java.lang.String columnName)
|
java.lang.String |
getStringData(java.lang.String columnName)
|
boolean |
isOpen()
If the set is open |
boolean |
moveToNextRecord()
Moves to the next record, and if it succeeds, returns true. |
void |
setData(java.lang.String columnName,
java.lang.Object object)
|
Method Detail |
---|
boolean isOpen()
boolean moveToNextRecord() throws FailedRequest.AlreadyClosedError
FailedRequest.AlreadyClosedError
- if the ForwardOnlyData has already been closed manuallyjava.lang.Object getData(int columnIndex) throws FailedRequest
columnIndex
- starting at 0.
FailedRequest
java.lang.Object getData(java.lang.String columnName) throws FailedRequest
FailedRequest
java.lang.String getStringData(java.lang.String columnName) throws FailedRequest
FailedRequest
java.lang.Integer getIntegerData(java.lang.String columnName) throws FailedRequest
FailedRequest
java.util.Date getDateData(java.lang.String columnName) throws FailedRequest
FailedRequest
void setData(java.lang.String columnName, java.lang.Object object) throws FailedRequest
FailedRequest
void deleteRecord() throws FailedRequest
FailedRequest
void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |