Class UniqueKeyLookup
java.lang.Object
com.kingsrook.qqq.backend.core.actions.tables.helpers.UniqueKeyLookup
Internal native key material for write validation. These results must never
replace ordinary read/access checks or enter write patches and public outputs.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classPrivately constructed, schema-owned lookup shapes only. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindConflicts(QTableMetaData activeTable, UniqueKey declaredKey, QRecord candidate, QBackendTransaction transaction) Keep all native matches associated with this one declared key predicate.readStoredComponents(QTableMetaData activeTable, List<Serializable> typedPrimaryKeys, QBackendTransaction transaction) Fetch only declared key components for exact typed target primary keys.
-
Constructor Details
-
UniqueKeyLookup
public UniqueKeyLookup()
-
-
Method Details
-
readStoredComponents
public static List<QRecord> readStoredComponents(QTableMetaData activeTable, List<Serializable> typedPrimaryKeys, QBackendTransaction transaction) throws QException Fetch only declared key components for exact typed target primary keys.- Throws:
QException
-
findConflicts
public static List<QRecord> findConflicts(QTableMetaData activeTable, UniqueKey declaredKey, QRecord candidate, QBackendTransaction transaction) throws QException Keep all native matches associated with this one declared key predicate. A null component is distinct, matching the existing INSERT contract.- Throws:
QException
-