public static class ConditionsRecord.ConditionsRecordCollection extends BaseConditionsObjectCollection<ConditionsRecord>
Modifier and Type | Class and Description |
---|---|
private static class |
ConditionsRecord.ConditionsRecordCollection.CreatedComparator
Compare conditions records by creation date.
|
private static class |
ConditionsRecord.ConditionsRecordCollection.KeyComparator
Compare conditions records by their key (table name).
|
private static class |
ConditionsRecord.ConditionsRecordCollection.RunStartComparator
Compare conditions records by run start.
|
private static class |
ConditionsRecord.ConditionsRecordCollection.UpdatedComparator
Compare conditions records by updated date.
|
Constructor and Description |
---|
ConditionsRecordCollection() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(ConditionsRecord object)
Add a
ConditionsRecord to the collection. |
ConditionsRecord.ConditionsRecordCollection |
findByKey(String key)
Find a sub-set of the records matching the key name.
|
ConditionsRecord |
findUniqueRecord(String key,
MultipleCollectionsAction action)
Find a unique record using the selected action for disambiguating conditions with the same key.
|
Set<String> |
getConditionsKeys()
Get the unique conditions keys from the records in this collection.
|
void |
sortByCreated()
Sort the collection in place by creation date.
|
void |
sortByKey()
Sort the collection in place by key.
|
void |
sortByRunStart()
Sort the collection in place by run start.
|
void |
sortByUpdated()
Sort the collection in place by updated date.
|
ConditionsRecord.ConditionsRecordCollection |
sortedByCreated()
Sort and return the collection by creation date.
|
ConditionsRecord.ConditionsRecordCollection |
sortedByKey()
Sort and return the collection by key (table name).
|
ConditionsRecord.ConditionsRecordCollection |
sortedByRunStart()
Sort and return the collection by run start number.
|
ConditionsRecord.ConditionsRecordCollection |
sortedByUpdated()
Sort and return the collection by updated date.
|
addAll, clear, contains, delete, get, getCollectionId, getObjects, getTableMetaData, insert, isNew, iterator, loadCsv, select, setCollectionId, setConnection, setTableMetaData, size, sort, sorted, toString, update, writeCsv
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public boolean add(ConditionsRecord object) throws ConditionsObjectException
ConditionsRecord
to the collection.add
in interface ConditionsObjectCollection<ConditionsRecord>
add
in class BaseConditionsObjectCollection<ConditionsRecord>
object
- the ConditionsRecord
to add to the collectiontrue
if object was addedConditionsObjectException
- if there was an error adding the objectpublic ConditionsRecord.ConditionsRecordCollection findByKey(String key)
These will generally map to names of tables.
key
- the key to findpublic final Set<String> getConditionsKeys()
public final void sortByCreated()
public final void sortByKey()
public final void sortByRunStart()
public final void sortByUpdated()
public final ConditionsRecord.ConditionsRecordCollection sortedByCreated()
public final ConditionsRecord.ConditionsRecordCollection sortedByKey()
public final ConditionsRecord.ConditionsRecordCollection sortedByRunStart()
public final ConditionsRecord.ConditionsRecordCollection sortedByUpdated()
public ConditionsRecord findUniqueRecord(String key, MultipleCollectionsAction action)
key
- the name of the keyaction
- the disambiguation actionnull
if does not existCopyright © 2019. All rights reserved.