Class AssociationJoin

java.lang.Object
com.kingsrook.qqq.backend.core.actions.tables.helpers.AssociationJoin

public class AssociationJoin extends Object
A declared association's field pairs, oriented from parent to child. Tuple values use the child field types for both matching and assignment.
  • Method Details

    • resolve

      public static AssociationJoin resolve(QTableMetaData parentTable, Association association) throws QException
      Resolve the supplied parent's declared graph, including personalized metadata. Self joins keep the registered left side as the parent, as validation does.
      Throws:
      QException
    • getJoinOns

      public List<JoinOn> getJoinOns()
      Return parent-left field pairs without exposing the registered join.
    • parentValues

      public List<Serializable> parentValues(QRecord record)
      Preserve explicit null components; callers decide whether membership exists.
    • childValues

      public List<Serializable> childValues(QRecord record)
      Use the same declared types as the parent lookup key.
    • assignParentValues

      public void assignParentValues(QRecord parent, QRecord child)
      Relationship fields override child input using the actual parent values.