W
woodworm
Unregistered / Unconfirmed
GUEST, unregistred user!
jb7里面DataSet里为什么会出现它的子类stargeDataSet里的方法???
还要请教这个方法到底是起什么作用的?
/**
* Edits the existing row of the DataSet. When the edits are posted,
* the row's status flag is set to UPDATED. On failure,
* this method throws a DataSetException.
*/
public final void editRow()
/*-throws DataSetException-*/
{
if (!open)
failIfNotOpen();
if (!editing) {
if (index.lastRow() == -1)
insertRow(true);
else
{
if (!allowUpdate || !dataSetStore.allowUpdate)
ValidationException.updateNotAllowed();
if (dataSetStore.editListener != null)
dataSetStore.processModifying(this);
dataSetStore.editRow(this);
if (statusListeners != null)
notifyDataChangeStatus(StatusEvent.EDIT_STARTED, ResIndex.RowEdited);
}
}
}
还要请教这个方法到底是起什么作用的?
/**
* Edits the existing row of the DataSet. When the edits are posted,
* the row's status flag is set to UPDATED. On failure,
* this method throws a DataSetException.
*/
public final void editRow()
/*-throws DataSetException-*/
{
if (!open)
failIfNotOpen();
if (!editing) {
if (index.lastRow() == -1)
insertRow(true);
else
{
if (!allowUpdate || !dataSetStore.allowUpdate)
ValidationException.updateNotAllowed();
if (dataSetStore.editListener != null)
dataSetStore.processModifying(this);
dataSetStore.editRow(this);
if (statusListeners != null)
notifyDataChangeStatus(StatusEvent.EDIT_STARTED, ResIndex.RowEdited);
}
}
}