Class ExtendedRelation


  • public class ExtendedRelation
    extends Object
    Describes the relationships between a base table, a related data table, and a mapping table
    Since:
    3.0.1
    Author:
    jyutzler, osbornb
    • Constructor Detail

      • ExtendedRelation

        public ExtendedRelation()
        Default Constructor
      • ExtendedRelation

        public ExtendedRelation​(ExtendedRelation extendedRelation)
        Copy Constructor
        Parameters:
        extendedRelation - extended relation to copy
    • Method Detail

      • getId

        public long getId()
        Getter
        Returns:
        the id
      • setId

        public void setId​(long id)
        Setter
        Parameters:
        id - id
      • resetId

        public void resetId()
        Reset the id so the row can be inserted as new
      • getBaseTableName

        public String getBaseTableName()
        Getter
        Returns:
        the base table name
      • setBaseTableName

        public void setBaseTableName​(String baseTableName)
        Setter
        Parameters:
        baseTableName - base table name
      • getBasePrimaryColumn

        public String getBasePrimaryColumn()
        Getter
        Returns:
        the name of the primary column of the base table
      • setBasePrimaryColumn

        public void setBasePrimaryColumn​(String basePrimaryColumn)
        Setter
        Parameters:
        basePrimaryColumn - base primary column
      • getRelatedTableName

        public String getRelatedTableName()
        Getter
        Returns:
        the name of the related table
      • setRelatedTableName

        public void setRelatedTableName​(String relatedTableName)
        Setter
        Parameters:
        relatedTableName - related table name
      • getRelatedPrimaryColumn

        public String getRelatedPrimaryColumn()
        Getter
        Returns:
        the name of the primary column of the related table
      • setRelatedPrimaryColumn

        public void setRelatedPrimaryColumn​(String relatedPrimaryColumn)
        Setter
        Parameters:
        relatedPrimaryColumn - related primary column
      • getRelationName

        public String getRelationName()
        Getter
        Returns:
        the relation name
      • getRelationType

        public RelationType getRelationType()
        Get the relation type for pre-known types
        Returns:
        relation type or null
      • setRelationName

        public void setRelationName​(String relationName)
        Setter
        Parameters:
        relationName - relation name
      • getMappingTableName

        public String getMappingTableName()
        Getter
        Returns:
        the mapping table name
      • setMappingTableName

        public void setMappingTableName​(String mappingTableName)
        Setter
        Parameters:
        mappingTableName - mapping table name