Class AssociatedRecordDiscovery
java.lang.Object
com.kingsrook.qqq.backend.core.actions.tables.helpers.AssociatedRecordDiscovery
Internal structural values for associated writes and their permission preflight.
Record visibility and display customization cannot hide relationship values.
These results must never replace access checks or enter public read responses.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classOnly this helper constructs backend requests; no generic security-bypass flag or caller-supplied filter is accepted by this operation.static final recordSnapshot values without rejecting explicit nulls or mutating caller records.static final classOnly declared parent relationships can construct this exact-key projection. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<Serializable> findPrimaryKeys(QTableMetaData parentTable, Association association, List<AssociatedRecordDiscovery.Parent> parents, QBackendTransaction transaction) Resolve only the supplied parent's declared association and relationship values.static QTableMetaDataphysicalParentTable(QTableMetaData active) Retain the active write graph and routing while privately restoring physical fields removed from display metadata.readParentValues(QTableMetaData activeParentTable, List<Association> associations, List<Serializable> primaryKeys, QBackendTransaction transaction) Read exact stored parent keys and only their declared relationship fields.
-
Constructor Details
-
AssociatedRecordDiscovery
public AssociatedRecordDiscovery()
-
-
Method Details
-
findPrimaryKeys
public static List<Serializable> findPrimaryKeys(QTableMetaData parentTable, Association association, List<AssociatedRecordDiscovery.Parent> parents, QBackendTransaction transaction) throws QException Resolve only the supplied parent's declared association and relationship values.- Throws:
QException
-
physicalParentTable
Retain the active write graph and routing while privately restoring physical fields removed from display metadata. Never modify either metadata source.- Throws:
QException
-
readParentValues
public static List<QRecord> readParentValues(QTableMetaData activeParentTable, List<Association> associations, List<Serializable> primaryKeys, QBackendTransaction transaction) throws QException Read exact stored parent keys and only their declared relationship fields. Missing rows remain absent; incomplete or unexpected provider rows fail closed.- Throws:
QException
-