public class ResultSetDataTable extends AbstractBigDataTable
DEFAULT_FORMAT, ELEMENT_ID| Constructor and Description |
|---|
ResultSetDataTable(java.sql.ResultSet resultSet) |
| Modifier and Type | Method and Description |
|---|---|
DataRecord |
addRecord()
Adds new record to the table.
|
DataTable |
addRecord(DataRecord record)
Adds new record to the table.
|
DataTable |
addRecord(int index,
DataRecord record)
Adds new record to the table at the specified index.
|
DataRecord |
addRecord(java.lang.Object... fieldValues)
Adds new record to the table.
|
DataTable |
clone()
Creates a
SimpleDataTable that contains same records (in the sense of the object equality but not necessarily the referential equality) as represented by this data table at the
moment of cloning. |
void |
close() |
java.lang.String |
dataAsString(boolean showFieldNames,
boolean showHiddenFields,
boolean showPasswords) |
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
findIndex(DataTableQuery query) |
DataRecord |
getRecord(int number)
Returns record with specified index.
|
int |
hashCode() |
boolean |
isOneCellTable()
Returns true if table has exactly one record and one field.
|
java.util.Iterator<DataRecord> |
iterator() |
java.util.Iterator<DataRecord> |
iterator(int index) |
protected DataRecord |
removeRecordImpl(int index) |
void |
removeRecords(DataRecord rec)
Removes all records equal to the rec parameter from the table.
|
void |
reorderRecord(DataRecord record,
int index)
Moves specified record to position specified by
index argument. |
java.util.List<DataRecord> |
selectAll(DataTableQuery query) |
DataTable |
setRecord(int index,
DataRecord record)
Replaces record at the specified index.
|
void |
sort(java.util.Comparator<DataRecord> comparator) |
void |
sort(DataTableSorter sorter) |
void |
splitFormat() |
java.lang.String |
toDefaultString() |
void |
validate(Context context,
ContextManager contextManager,
CallerController caller)
Executes table validators to make sure table data is valid.
|
compareTo, decrementRecordCount, getRecordCount, incrementRecordCount, isSimple, makeImmutable, setId, setRecordCount, toSimpleDataTableaddRecords, append, applyCachedFormat, cloneIfImmutable, conform, conformMessage, dataAsString, dataAsString, encode, encode, encode, encode, findIndex, findIndex, fixRecords, get, getDescription, getEncodedData, getEncodedData, getFieldCount, getFormat, getFormat, getFormat, getId, getInvalidationMessage, getQuality, getRecordById, getRecords, getTimestamp, getValue, hasField, isImmutable, isInvalid, joinFormats, rec, removeRecord, removeRecordsByIds, select, select, setFormat, setInvalidationMessage, setQuality, setTimestamp, sort, stream, swapRecords, toString, validateRecordpublic DataTable addRecord(DataRecord record)
public void splitFormat()
splitFormat in interface DataTablesplitFormat in class AbstractDataTablepublic DataRecord addRecord(java.lang.Object... fieldValues)
public DataTable addRecord(int index, DataRecord record)
DataTablepublic DataRecord addRecord()
DataTableprotected DataRecord removeRecordImpl(int index)
removeRecordImpl in class AbstractDataTablepublic void validate(Context context, ContextManager contextManager, CallerController caller) throws DataTableException
DataTablevalidate in interface DataTablevalidate in class AbstractDataTableDataTableExceptionpublic DataTable setRecord(int index, DataRecord record)
public DataRecord getRecord(int number)
public void removeRecords(DataRecord rec)
public void reorderRecord(DataRecord record, int index)
DataTableindex argument.
record must belong to this table, otherwise method will throw an IllegalStateExceptionpublic boolean equals(java.lang.Object obj)
public int hashCode()
public java.lang.String toDefaultString()
public java.lang.String dataAsString(boolean showFieldNames,
boolean showHiddenFields,
boolean showPasswords)
public boolean isOneCellTable()
public java.util.List<DataRecord> selectAll(DataTableQuery query)
selectAll in interface DataTableselectAll in class AbstractDataTablepublic java.lang.Integer findIndex(DataTableQuery query)
public void sort(DataTableSorter sorter)
public void sort(java.util.Comparator<DataRecord> comparator)
public java.util.Iterator<DataRecord> iterator()
public java.util.Iterator<DataRecord> iterator(int index)
public DataTable clone()
SimpleDataTable that contains same records (in the sense of the object equality but not necessarily the referential equality) as represented by this data table at the
moment of cloning. Does NOT call super.clone()clone in interface DataTableclone in interface PublicCloneableclone in class AbstractBigDataTablepublic void close()
close in interface DataTableclose in class AbstractDataTable