| Modifier and Type | Field and Description |
|---|---|
| private final UUID | |
| private final boolean | |
| private final boolean | |
| private BackingStoreHashtable | |
| private final String | |
| private final LanguageConnectionContext | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | UniqueWithDuplicateNullsIndexSortObserver(LanguageConnectionContext
Language Connection context lcc, UUID Id of the constraint (only used for
deferrable constraints) constraintId, boolean If true, then rows that are retained
by the sorter will be cloned. This is needed
if language is reusing row wrappers. doClone, boolean deferrable constraint deferrable, boolean constraint mode is deferred deferred, String name of index of constraint indexOrConstraintName, ExecRow ExecRow to use as source of clone for store. execRow, boolean Whether or not we can reuse the wrappers reuseWrappers, String name of the table tableName)Constructs an object of UniqueWithDuplicateNullsIndexSortObserver |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | deferrable()
Overrides org. Implements org. Overridden by subclasses that observe sorters with uniqueness checking. |
| public boolean | deferred()
Overrides org. Implements org. Overridden by subclasses that observe sorters with uniqueness checking. |
| public DataValueDescriptor[] | Returns: DVD [] if there is at least one null in the key else throws StandardExceptionnew key in, DataValueDescriptor[] the new key is duplicate of this key dup)Overrides org. Implements org. Methods to check if the duplicate key can be inserted or not. |
| public void | rememberDuplicate(DataValueDescriptor[]
data of offending key row)Overrides org. Implements org. Overridden by subclasses that observe sorters with uniqueness checking. |
| constraintId | back to summary |
|---|---|
| private final UUID constraintId | |
| deferrable | back to summary |
|---|---|
| private final boolean deferrable | |
| deferred | back to summary |
|---|---|
| private final boolean deferred | |
| deferredDuplicates | back to summary |
|---|---|
| private BackingStoreHashtable deferredDuplicates | |
| indexOrConstraintName | back to summary |
|---|---|
| private final String indexOrConstraintName | |
| lcc | back to summary |
|---|---|
| private final LanguageConnectionContext lcc | |
| tableName | back to summary |
|---|---|
| private final String tableName | |
| UniqueWithDuplicateNullsIndexSortObserver | back to summary |
|---|---|
| public UniqueWithDuplicateNullsIndexSortObserver(LanguageConnectionContext lcc, UUID constraintId, boolean doClone, boolean deferrable, boolean deferred, String indexOrConstraintName, ExecRow execRow, boolean reuseWrappers, String tableName) Constructs an object of UniqueWithDuplicateNullsIndexSortObserver
| |
| deferrable | back to summary |
|---|---|
| public boolean deferrable() Overrides org. Implements org. Doc from org. Overridden by subclasses that observe sorters with uniqueness checking.
| |
| deferred | back to summary |
|---|---|
| public boolean deferred() Overrides org. Implements org. Doc from org. Overridden by subclasses that observe sorters with uniqueness checking.
| |
| insertDuplicateKey | back to summary |
|---|---|
| public DataValueDescriptor[] insertDuplicateKey(DataValueDescriptor[] in, DataValueDescriptor[] dup) throws StandardException Overrides org. Implements org. Methods to check if the duplicate key can be inserted or not. It throws exception if the duplicates has no null part in the key.
| |
| rememberDuplicate | back to summary |
|---|---|
| public void rememberDuplicate(DataValueDescriptor[] row) throws StandardException Overrides org. Implements org. Doc from org. 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.
| |