Interface TableReferenceDefinition<T extends com.liferay.petra.sql.dsl.Table<T>>


public interface TableReferenceDefinition<T extends com.liferay.petra.sql.dsl.Table<T>>
Describes parent and child relationships for a given table using joins. Implementations are required for complete change tracking integration of a service builder service that has a base persistence.
  • Method Details

    • defineChildTableReferences

      void defineChildTableReferences(ChildTableReferenceInfoBuilder<T> childTableReferenceInfoBuilder)
      Defines child rows using inner joins on the table. A child row is defined as a row required by the parent table to function correctly. Typically, children have their parents' primary keys contained in one of the child's columns. AssetEntry and ResourcePermission are common children of many tables.
      Parameters:
      childTableReferenceInfoBuilder - the builder object used to define child relationships for this table reference definition
    • defineParentTableReferences

      void defineParentTableReferences(ParentTableReferenceInfoBuilder<T> parentTableReferenceInfoBuilder)
      Defines parent rows using inner joins on the table. A parent row is defined as a row that triggers its children for deletion when it is deleted. Typically, children have their parents' primary keys contained in one of the child's columns. Company and Group are common parents of many tables.
      Parameters:
      parentTableReferenceInfoBuilder - the builder object used to define parent relationships for this table reference definition
    • getBasePersistence

      com.liferay.portal.kernel.service.persistence.BasePersistence<?> getBasePersistence()
      Returns the base persistence for the table described by this table reference definition.
      Returns:
      the base persistence for this table reference definition
    • getTable

      T getTable()
      Returns the table being described by this table reference definition.
      Returns:
      the table being described by this table reference definition