|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cmu.survey.data.mysql.DataTableModelMySQL.ForwardOnlyDataSQL
public class DataTableModelMySQL.ForwardOnlyDataSQL
Constructor Summary | |
---|---|
DataTableModelMySQL.ForwardOnlyDataSQL(java.lang.String query)
|
Method Summary | |
---|---|
protected boolean |
checkHandleColumnFormatBad(java.lang.String columnName,
java.lang.Object data,
java.lang.Class expectedColumnType)
|
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 value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataTableModelMySQL.ForwardOnlyDataSQL(java.lang.String query) throws FailedRequest
FailedRequest
Method Detail |
---|
protected boolean checkHandleColumnFormatBad(java.lang.String columnName, java.lang.Object data, java.lang.Class expectedColumnType) throws FailedRequest
FailedRequest
public boolean isOpen()
ForwardOnlyData
isOpen
in interface ForwardOnlyData
public boolean moveToNextRecord() throws FailedRequest.AlreadyClosedError
ForwardOnlyData
moveToNextRecord
in interface ForwardOnlyData
FailedRequest.AlreadyClosedError
- if the ForwardOnlyData has already been closed manuallypublic java.lang.Object getData(int columnIndex) throws FailedRequest
ForwardOnlyData
getData
in interface ForwardOnlyData
columnIndex
- starting at 0.
FailedRequest
public java.lang.Object getData(java.lang.String columnName) throws FailedRequest
getData
in interface ForwardOnlyData
FailedRequest
public java.lang.String getStringData(java.lang.String columnName) throws FailedRequest
getStringData
in interface ForwardOnlyData
FailedRequest
public java.lang.Integer getIntegerData(java.lang.String columnName) throws FailedRequest
getIntegerData
in interface ForwardOnlyData
FailedRequest
public java.util.Date getDateData(java.lang.String columnName) throws FailedRequest
getDateData
in interface ForwardOnlyData
FailedRequest
public void setData(java.lang.String columnName, java.lang.Object value) throws FailedRequest
setData
in interface ForwardOnlyData
FailedRequest
public void deleteRecord() throws FailedRequest
ForwardOnlyData
deleteRecord
in interface ForwardOnlyData
FailedRequest
public void close()
ForwardOnlyData
close
in interface ForwardOnlyData
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |