Some sample uses include:
SortController
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public boolean | Returns: true if the index's constraint is deferrable. Any SortObserver implementations that implement uniqueness checking need to keep track of this information.Overridden by subclasses that observe sorters with uniqueness checking. |
| public boolean | Returns: true if constraint mode of the index's constraint is effectively deferred. Any SortObserver implementations that implement uniqueness checking need to keep track of this information.Overridden by subclasses that observe sorters with uniqueness checking. |
| public DataValueDescriptor[] | |
| public DataValueDescriptor[] | Returns: the row to be inserted by the sorter. If null, then nothing is inserted by the sorter. Distinct sorts will want to return null.the current row that the sorter
is on the verge of retaining. It is a duplicate
of existingRow. insertRow, DataValueDescriptor[] the row that is already in the
the sorter which is a duplicate of insertRow existingRow)Called prior to inserting a duplicate sort key. |
| public DataValueDescriptor[] | Returns: the row to be inserted by the sorter. If null, then nothing is inserted by the sorter.the current row that the sorter
is on the verge of retaining insertRow)Called prior to inserting a distinct sort key; in other words, the first time that a key is inserted into the sorter, this method is called. |
| public void | rememberDuplicate(DataValueDescriptor[]
data of offending key row)Overridden by subclasses that observe sorters with uniqueness checking. |
| addToFreeList | back to summary |
|---|---|
| public void addToFreeList(DataValueDescriptor[] objectArray, int maxFreeListSize) | |
| deferrable | back to summary |
|---|---|
| public boolean deferrable() Overridden by subclasses that observe sorters with uniqueness checking.
| |
| deferred | back to summary |
|---|---|
| public boolean deferred() Overridden by subclasses that observe sorters with uniqueness checking.
| |
| getArrayClone | back to summary |
|---|---|
| public DataValueDescriptor[] getArrayClone() throws StandardException | |
| insertDuplicateKey | back to summary |
|---|---|
| public DataValueDescriptor[] insertDuplicateKey(DataValueDescriptor[] insertRow, DataValueDescriptor[] existingRow) throws StandardException Called prior to inserting a duplicate sort key. This method will typically be used to perform some aggregation on a row that is going to be discarded by the sorter.
| |
| insertNonDuplicateKey | back to summary |
|---|---|
| public DataValueDescriptor[] insertNonDuplicateKey(DataValueDescriptor[] insertRow) throws StandardException Called prior to inserting a distinct sort key; in other words, the first time that a key is inserted into the sorter, this method is called. Subsequent inserts with the same key generate a call to insertDuplicateKey() instead. This method will most commonly be used to clone the row that is retained by the sorter, or possibly to do some initialization of that row.
| |
| rememberDuplicate | back to summary |
|---|---|
| public void rememberDuplicate(DataValueDescriptor[] row) throws StandardException Overridden by subclasses that observe sorters with uniqueness checking. Will be called by sorters iff deferrable() and deferred() and uniqueness violation, so implementations that sometimes return true to these must implement this method to save duplicate information till commit time.
| |