public class SortedCompositeDataTable extends AbstractUnmodifiableDataTable
DEFAULT_FORMAT, ELEMENT_ID| Constructor and Description |
|---|
SortedCompositeDataTable(java.util.List<DataTable> sources,
java.lang.String fieldName,
boolean ascending)
Constructs a
SortedCompositeDataTable with given sources sorted by fieldName in accordance with the ascending parameter. |
| Modifier and Type | Method and Description |
|---|---|
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) |
java.lang.String |
toDefaultString() |
addRecord, addRecord, addRecord, addRecord, removeRecordImpl, removeRecords, reorderRecord, setRecord, sort, sortclone, compareTo, decrementRecordCount, getRecordCount, incrementRecordCount, isSimple, makeImmutable, setId, setRecordCount, toSimpleDataTableaddRecords, append, applyCachedFormat, cloneIfImmutable, close, 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, selectAll, setFormat, setInvalidationMessage, setQuality, setTimestamp, sort, splitFormat, stream, swapRecords, toString, validate, validateRecordpublic SortedCompositeDataTable(java.util.List<DataTable> sources, java.lang.String fieldName, boolean ascending)
SortedCompositeDataTable with given sources sorted by fieldName in accordance with the ascending parameter.sources - A list of Data Tables, each sorted by fieldName in accordance with the ascending parameter. Each source Data Table must have a fieldName field of
the same Comparable type. NULL vales are not permitted in the fieldName field. If at least one of the source tables is not sorted as described above, the behavior of this
Data Table is not specified.fieldName - Name of the field that each source table must be sorted byascending - Defines whether the sort order of each source table is ascending (if true) or descending (if false)public DataRecord getRecord(int number)
DataTablepublic 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()
DataTablepublic java.lang.Integer findIndex(DataTableQuery query)
public java.util.Iterator<DataRecord> iterator()
public java.util.Iterator<DataRecord> iterator(int index)