Class ExtendedRelationsDao

    • Method Detail

      • getRelatedTables

        public List<String> getRelatedTables()
                                      throws SQLException
        Get all the related table names
        Returns:
        related table names
        Throws:
        SQLException - upon failure
      • getBaseTableRelations

        public List<ExtendedRelation> getBaseTableRelations​(String baseTable)
                                                     throws SQLException
        Get the relations to the base table
        Parameters:
        baseTable - base table
        Returns:
        extended relations
        Throws:
        SQLException - upon failure
      • getRelatedTableRelations

        public List<ExtendedRelation> getRelatedTableRelations​(String relatedTable)
                                                        throws SQLException
        Get the relations to the related table
        Parameters:
        relatedTable - related table
        Returns:
        extended relations
        Throws:
        SQLException - upon failure
      • getTableRelations

        public List<ExtendedRelation> getTableRelations​(String table)
                                                 throws SQLException
        Get the relations to the table, both base table and related table
        Parameters:
        table - table name
        Returns:
        extended relations
        Throws:
        SQLException - upon failure
      • getRelations

        public List<ExtendedRelation> getRelations​(String baseTable,
                                                   String baseColumn,
                                                   String relatedTable,
                                                   String relatedColumn,
                                                   String relation,
                                                   String mappingTable)
                                            throws SQLException
        Get the relations matching the non null provided values
        Parameters:
        baseTable - base table name
        baseColumn - base primary column name
        relatedTable - related table name
        relatedColumn - related primary column name
        relation - relation name
        mappingTable - mapping table name
        Returns:
        extended relations
        Throws:
        SQLException - upon failure
        Since:
        3.2.0