Class RelatedTablesCoreExtension
- java.lang.Object
- 
- mil.nga.geopackage.extension.BaseExtension
- 
- mil.nga.geopackage.extension.related.RelatedTablesCoreExtension
 
 
- 
 public abstract class RelatedTablesCoreExtension extends BaseExtension Related Tables core extension- Since:
- 3.0.1
- Author:
- jyutzler, osbornb
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringEXTENSION_AUTHORExtension authorstatic StringEXTENSION_DEFINITIONExtension definition URLstatic StringEXTENSION_NAMEExtension, with author and namestatic StringEXTENSION_NAME_NO_AUTHORExtension name without the author- 
Fields inherited from class mil.nga.geopackage.extension.BaseExtensionextensionsDao, geoPackage
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedRelatedTablesCoreExtension(GeoPackageCore geoPackage)Constructor
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ExtendedRelationaddAttributesRelationship(String baseTableName, String relatedAttributesTableName, String mappingTableName)Adds an attributes relationship between the base table and related attributes table.ExtendedRelationaddAttributesRelationship(String baseTableName, String relatedAttributesTableName, UserMappingTable userMappingTable)Adds an attributes relationship between the base table and related attributes table.ExtendedRelationaddAttributesRelationship(String baseTableName, AttributesTable attributesTable, String mappingTableName)Adds an attributes relationship between the base table and user attributes related table.ExtendedRelationaddAttributesRelationship(String baseTableName, AttributesTable attributesTable, UserMappingTable userMappingTable)Adds an attributes relationship between the base table and user attributes related table.ExtendedRelationaddFeaturesRelationship(String baseFeaturesTableName, String relatedFeaturesTableName, String mappingTableName)Adds a features relationship between the base feature and related feature table.ExtendedRelationaddFeaturesRelationship(String baseFeaturesTableName, String relatedFeaturesTableName, UserMappingTable userMappingTable)Adds a features relationship between the base feature and related feature table.ExtendedRelationaddMediaRelationship(String baseTableName, MediaTable mediaTable, String mappingTableName)Adds a media relationship between the base table and user media related table.ExtendedRelationaddMediaRelationship(String baseTableName, MediaTable mediaTable, UserMappingTable userMappingTable)Adds a media relationship between the base table and user media related table.ExtendedRelationaddRelationship(String baseTableName, String relatedTableName, String mappingTableName, String relationName)Adds a relationship between the base and related table.ExtendedRelationaddRelationship(String baseTableName, String relatedTableName, String mappingTableName, String relationAuthor, String relationName)Adds a relationship between the base and related table.ExtendedRelationaddRelationship(String baseTableName, String relatedTableName, String mappingTableName, RelationType relationType)Adds a relationship between the base and related table.ExtendedRelationaddRelationship(String baseTableName, String relatedTableName, UserMappingTable userMappingTable, String relationName)Adds a relationship between the base and related table.ExtendedRelationaddRelationship(String baseTableName, String relatedTableName, UserMappingTable userMappingTable, String relationAuthor, String relationName)Adds a relationship between the base and related table.ExtendedRelationaddRelationship(String baseTableName, String relatedTableName, UserMappingTable userMappingTable, RelationType relationType)Adds a relationship between the base and related table.ExtendedRelationaddRelationship(String baseTableName, UserRelatedTable relatedTable, String mappingTableName)Adds a relationship between the base and user related table.ExtendedRelationaddRelationship(String baseTableName, UserRelatedTable relatedTable, UserMappingTable userMappingTable)Adds a relationship between the base and user related table.ExtendedRelationaddRelationship(String baseTableName, UserTable<? extends UserColumn> relatedTable, String mappingTableName)Adds a relationship between the base and user related table.ExtendedRelationaddRelationship(String baseTableName, UserTable<? extends UserColumn> relatedTable, String relationName, String mappingTableName)Adds a relationship between the base and user related table.ExtendedRelationaddRelationship(String baseTableName, UserTable<? extends UserColumn> relatedTable, String relationName, UserMappingTable userMappingTable)Adds a relationship between the base and user related table.ExtendedRelationaddRelationship(String baseTableName, UserTable<? extends UserColumn> relatedTable, UserMappingTable userMappingTable)Adds a relationship between the base and user related table.ExtendedRelationaddSimpleAttributesRelationship(String baseTableName, SimpleAttributesTable simpleAttributesTable, String mappingTableName)Adds a simple attributes relationship between the base table and user simple attributes related table.ExtendedRelationaddSimpleAttributesRelationship(String baseTableName, SimpleAttributesTable simpleAttributesTable, UserMappingTable userMappingTable)Adds a simple attributes relationship between the base table and user simple attributes related table.ExtendedRelationaddTilesRelationship(String baseTableName, String relatedTilesTableName, String mappingTableName)Adds a tiles relationship between the base table and related tiles table.ExtendedRelationaddTilesRelationship(String baseTableName, String relatedTilesTableName, UserMappingTable userMappingTable)Adds a tiles relationship between the base table and related tiles table.ExtendedRelationaddTilesRelationship(String baseTableName, TileTable tileTable, String mappingTableName)Adds a tiles relationship between the base table and user tiles related table.ExtendedRelationaddTilesRelationship(String baseTableName, TileTable tileTable, UserMappingTable userMappingTable)Adds a tiles relationship between the base table and user tiles related table.StringbuildRelationName(String author, String name)Build the custom relation name with authorbooleancreateExtendedRelationsTable()Create the Extended Relations Table if it does not existbooleancreateRelatedTable(UserTable<? extends UserColumn> relatedTable)Create a user related table if it does not exist.booleancreateUserMappingTable(String mappingTableName)Create a default user mapping table and extension row if either does not exist.booleancreateUserMappingTable(UserMappingTable userMappingTable)Create a user mapping table and extension row if either does not exist.List<ExtendedRelation>getBaseTableRelations(String baseTable)Get the relations to the base tableExtendedRelationsDaogetExtendedRelationsDao()Get a Extended Relations DAOstatic ExtendedRelationsDaogetExtendedRelationsDao(GeoPackageCoreConnection db)Get a Extended Relations DAOstatic ExtendedRelationsDaogetExtendedRelationsDao(GeoPackageCore geoPackage)Get a Extended Relations DAOStringgetPrimaryKeyColumnName(String tableName)Get the primary key of a tableList<ExtendedRelation>getRelatedTableRelations(String relatedTable)Get the relations to the related tableList<ExtendedRelation>getRelations(String baseTable, String relatedTable)Get the relations to the base table and related tableList<ExtendedRelation>getRelations(String baseTable, String relatedTable, String mappingTable)Get the relations matching the non null provided valuesList<ExtendedRelation>getRelations(String baseTable, String relatedTable, String relation, String mappingTable)Get the relations matching the non null provided valuesList<ExtendedRelation>getRelations(String baseTable, String baseColumn, String relatedTable, String relatedColumn, String relation, String mappingTable)Get the relations matching the non null provided valuesList<ExtendedRelation>getRelationships()Returns the relationships defined through this extensionList<ExtendedRelation>getTableRelations(String table)Get the relations to the tablebooleanhas()Determine if the GeoPackage has the extensionbooleanhas(String mappingTable)Determine if the GeoPackage has the extension for the mapping tablebooleanhasBaseTableRelations(String baseTable)Determine if there are relations to the base tablebooleanhasRelatedTableRelations(String relatedTable)Determine if there are relations to the related tablebooleanhasRelations(String baseTable, String relatedTable)Determine if has one or more relations matching the base table and related tablebooleanhasRelations(String baseTable, String relatedTable, String mappingTable)Determine if has one or more relations matching the non null provided valuesbooleanhasRelations(String baseTable, String relatedTable, String relation, String mappingTable)Determine if has one or more relations matching the non null provided valuesbooleanhasRelations(String baseTable, String baseColumn, String relatedTable, String relatedColumn, String relation, String mappingTable)Determine if has one or more relations matching the non null provided valuesbooleanhasTableRelations(String table)Determine if there are relations to the tablevoidremoveExtension()Remove all trace of the extensionvoidremoveRelationship(String baseTableName, String relatedTableName, String relationName)Remove a specific relationship from the GeoPackagevoidremoveRelationship(String baseTableName, String relatedTableName, String relationAuthor, String relationName)Remove a specific relationship from the GeoPackagevoidremoveRelationship(String baseTableName, String relatedTableName, RelationType relationType)Remove a specific relationship from the GeoPackagevoidremoveRelationship(ExtendedRelation extendedRelation)Remove a specific relationship from the GeoPackagevoidremoveRelationships(String table)Remove all relationships that include the tablevoidremoveRelationshipsWithMappingTable(String mappingTable)Remove all relationships with the mapping tablevoidsetContents(UserTable<? extends UserColumn> table)Set the contents in the user table- 
Methods inherited from class mil.nga.geopackage.extension.BaseExtensioncreateDao, get, getExtensions, getExtensions, getExtensionsDao, getGeoPackage, getOrCreate, has, has, verifyWritable
 
- 
 
- 
- 
- 
Field Detail- 
EXTENSION_AUTHORpublic static final String EXTENSION_AUTHOR Extension author- See Also:
- Constant Field Values
 
 - 
EXTENSION_NAME_NO_AUTHORpublic static final String EXTENSION_NAME_NO_AUTHOR Extension name without the author- See Also:
- Constant Field Values
 
 - 
EXTENSION_NAMEpublic static final String EXTENSION_NAME Extension, with author and name
 - 
EXTENSION_DEFINITIONpublic static final String EXTENSION_DEFINITION Extension definition URL
 
- 
 - 
Constructor Detail- 
RelatedTablesCoreExtensionprotected RelatedTablesCoreExtension(GeoPackageCore geoPackage) Constructor- Parameters:
- geoPackage- GeoPackage
 
 
- 
 - 
Method Detail- 
haspublic boolean has() Determine if the GeoPackage has the extension- Returns:
- true if has extension
 
 - 
haspublic boolean has(String mappingTable) Determine if the GeoPackage has the extension for the mapping table- Overrides:
- hasin class- BaseExtension
- Parameters:
- mappingTable- mapping table name
- Returns:
- true if has extension
 
 - 
getExtendedRelationsDaopublic ExtendedRelationsDao getExtendedRelationsDao() Get a Extended Relations DAO- Returns:
- extended relations dao
 
 - 
getExtendedRelationsDaopublic static ExtendedRelationsDao getExtendedRelationsDao(GeoPackageCore geoPackage) Get a Extended Relations DAO- Parameters:
- geoPackage- GeoPackage
- Returns:
- extended relations dao
- Since:
- 4.0.0
 
 - 
getExtendedRelationsDaopublic static ExtendedRelationsDao getExtendedRelationsDao(GeoPackageCoreConnection db) Get a Extended Relations DAO- Parameters:
- db- database connection
- Returns:
- extended relations dao
- Since:
- 4.0.0
 
 - 
createExtendedRelationsTablepublic boolean createExtendedRelationsTable() Create the Extended Relations Table if it does not exist- Returns:
- true if created
- Since:
- 4.0.0
 
 - 
getPrimaryKeyColumnNamepublic String getPrimaryKeyColumnName(String tableName) Get the primary key of a table- Parameters:
- tableName- table name
- Returns:
- the column name
 
 - 
setContentspublic void setContents(UserTable<? extends UserColumn> table) Set the contents in the user table- Parameters:
- table- user table
 
 - 
getRelationshipspublic List<ExtendedRelation> getRelationships() Returns the relationships defined through this extension- Returns:
- a list of ExtendedRelation objects
 
 - 
addRelationshippublic ExtendedRelation addRelationship(String baseTableName, String relatedTableName, String mappingTableName, RelationType relationType) Adds a relationship between the base and related table. Creates a default user mapping table if needed.- Parameters:
- baseTableName- base table name
- relatedTableName- related table name
- mappingTableName- mapping table name
- relationType- relation type
- Returns:
- The relationship that was added
 
 - 
addRelationshippublic ExtendedRelation addRelationship(String baseTableName, String relatedTableName, String mappingTableName, String relationAuthor, String relationName) Adds a relationship between the base and related table. Creates a default user mapping table if needed.- Parameters:
- baseTableName- base table name
- relatedTableName- related table name
- mappingTableName- mapping table name
- relationAuthor- relation author
- relationName- relation name
- Returns:
- The relationship that was added
 
 - 
addRelationshippublic ExtendedRelation addRelationship(String baseTableName, String relatedTableName, String mappingTableName, String relationName) Adds a relationship between the base and related table. Creates a default user mapping table if needed.- Parameters:
- baseTableName- base table name
- relatedTableName- related table name
- mappingTableName- mapping table name
- relationName- relation name
- Returns:
- The relationship that was added
 
 - 
addRelationshippublic ExtendedRelation addRelationship(String baseTableName, String relatedTableName, UserMappingTable userMappingTable, RelationType relationType) Adds a relationship between the base and related table. Creates the user mapping table if needed.- Parameters:
- baseTableName- base table name
- relatedTableName- related table name
- userMappingTable- user mapping table
- relationType- relation type
- Returns:
- The relationship that was added
 
 - 
addRelationshippublic ExtendedRelation addRelationship(String baseTableName, String relatedTableName, UserMappingTable userMappingTable, String relationAuthor, String relationName) Adds a relationship between the base and related table. Creates the user mapping table if needed.- Parameters:
- baseTableName- base table name
- relatedTableName- related table name
- userMappingTable- user mapping table
- relationAuthor- relation author
- relationName- relation name
- Returns:
- The relationship that was added
 
 - 
addRelationshippublic ExtendedRelation addRelationship(String baseTableName, String relatedTableName, UserMappingTable userMappingTable, String relationName) Adds a relationship between the base and related table. Creates the user mapping table if needed.- Parameters:
- baseTableName- base table name
- relatedTableName- related table name
- userMappingTable- user mapping table
- relationName- relation name
- Returns:
- The relationship that was added
 
 - 
addRelationshippublic ExtendedRelation addRelationship(String baseTableName, UserRelatedTable relatedTable, String mappingTableName) Adds a relationship between the base and user related table. Creates a default user mapping table and the related table if needed.- Parameters:
- baseTableName- base table name
- relatedTable- user related table
- mappingTableName- user mapping table name
- Returns:
- The relationship that was added
 
 - 
addRelationshippublic ExtendedRelation addRelationship(String baseTableName, UserRelatedTable relatedTable, UserMappingTable userMappingTable) Adds a relationship between the base and user related table. Creates the user mapping table and related table if needed.- Parameters:
- baseTableName- base table name
- relatedTable- user related table
- userMappingTable- user mapping table
- Returns:
- The relationship that was added
 
 - 
addRelationshippublic ExtendedRelation addRelationship(String baseTableName, UserTable<? extends UserColumn> relatedTable, String mappingTableName) Adds a relationship between the base and user related table. Creates a default user mapping table and the related table if needed.- Parameters:
- baseTableName- base table name
- relatedTable- user related table
- mappingTableName- user mapping table name
- Returns:
- The relationship that was added
- Since:
- 3.2.0
 
 - 
addRelationshippublic ExtendedRelation addRelationship(String baseTableName, UserTable<? extends UserColumn> relatedTable, UserMappingTable userMappingTable) Adds a relationship between the base and user related table. Creates the user mapping table and related table if needed.- Parameters:
- baseTableName- base table name
- relatedTable- user related table
- userMappingTable- user mapping table
- Returns:
- The relationship that was added
- Since:
- 3.2.0
 
 - 
addRelationshippublic ExtendedRelation addRelationship(String baseTableName, UserTable<? extends UserColumn> relatedTable, String relationName, String mappingTableName) Adds a relationship between the base and user related table. Creates a default user mapping table and the related table if needed.- Parameters:
- baseTableName- base table name
- relatedTable- user related table
- relationName- relation name
- mappingTableName- user mapping table name
- Returns:
- The relationship that was added
- Since:
- 3.2.0
 
 - 
addRelationshippublic ExtendedRelation addRelationship(String baseTableName, UserTable<? extends UserColumn> relatedTable, String relationName, UserMappingTable userMappingTable) Adds a relationship between the base and user related table. Creates the user mapping table and related table if needed.- Parameters:
- baseTableName- base table name
- relatedTable- user related table
- relationName- relation name
- userMappingTable- user mapping table
- Returns:
- The relationship that was added
- Since:
- 3.2.0
 
 - 
addFeaturesRelationshippublic ExtendedRelation addFeaturesRelationship(String baseFeaturesTableName, String relatedFeaturesTableName, String mappingTableName) Adds a features relationship between the base feature and related feature table. Creates a default user mapping table if needed.- Parameters:
- baseFeaturesTableName- base features table name
- relatedFeaturesTableName- related features table name
- mappingTableName- mapping table name
- Returns:
- The relationship that was added
 
 - 
addFeaturesRelationshippublic ExtendedRelation addFeaturesRelationship(String baseFeaturesTableName, String relatedFeaturesTableName, UserMappingTable userMappingTable) Adds a features relationship between the base feature and related feature table. Creates the user mapping table if needed.- Parameters:
- baseFeaturesTableName- base features table name
- relatedFeaturesTableName- related features table name
- userMappingTable- user mapping table
- Returns:
- The relationship that was added
 
 - 
addMediaRelationshippublic ExtendedRelation addMediaRelationship(String baseTableName, MediaTable mediaTable, String mappingTableName) Adds a media relationship between the base table and user media related table. Creates a default user mapping table and the media table if needed.- Parameters:
- baseTableName- base table name
- mediaTable- user media table
- mappingTableName- user mapping table name
- Returns:
- The relationship that was added
 
 - 
addMediaRelationshippublic ExtendedRelation addMediaRelationship(String baseTableName, MediaTable mediaTable, UserMappingTable userMappingTable) Adds a media relationship between the base table and user media related table. Creates the user mapping table and media table if needed.- Parameters:
- baseTableName- base table name
- mediaTable- user media table
- userMappingTable- user mapping table
- Returns:
- The relationship that was added
 
 - 
addSimpleAttributesRelationshippublic ExtendedRelation addSimpleAttributesRelationship(String baseTableName, SimpleAttributesTable simpleAttributesTable, String mappingTableName) Adds a simple attributes relationship between the base table and user simple attributes related table. Creates a default user mapping table and the simple attributes table if needed.- Parameters:
- baseTableName- base table name
- simpleAttributesTable- user simple attributes table
- mappingTableName- user mapping table name
- Returns:
- The relationship that was added
 
 - 
addSimpleAttributesRelationshippublic ExtendedRelation addSimpleAttributesRelationship(String baseTableName, SimpleAttributesTable simpleAttributesTable, UserMappingTable userMappingTable) Adds a simple attributes relationship between the base table and user simple attributes related table. Creates the user mapping table and simple attributes table if needed.- Parameters:
- baseTableName- base table name
- simpleAttributesTable- user simple attributes table
- userMappingTable- user mapping table
- Returns:
- The relationship that was added
 
 - 
addAttributesRelationshippublic ExtendedRelation addAttributesRelationship(String baseTableName, String relatedAttributesTableName, String mappingTableName) Adds an attributes relationship between the base table and related attributes table. Creates a default user mapping table if needed.- Parameters:
- baseTableName- base table name
- relatedAttributesTableName- related attributes table name
- mappingTableName- mapping table name
- Returns:
- The relationship that was added
- Since:
- 3.2.0
 
 - 
addAttributesRelationshippublic ExtendedRelation addAttributesRelationship(String baseTableName, String relatedAttributesTableName, UserMappingTable userMappingTable) Adds an attributes relationship between the base table and related attributes table. Creates the user mapping table if needed.- Parameters:
- baseTableName- base table name
- relatedAttributesTableName- related attributes table name
- userMappingTable- user mapping table
- Returns:
- The relationship that was added
- Since:
- 3.2.0
 
 - 
addAttributesRelationshippublic ExtendedRelation addAttributesRelationship(String baseTableName, AttributesTable attributesTable, String mappingTableName) Adds an attributes relationship between the base table and user attributes related table. Creates a default user mapping table and the attributes table if needed.- Parameters:
- baseTableName- base table name
- attributesTable- user attributes table
- mappingTableName- user mapping table name
- Returns:
- The relationship that was added
- Since:
- 3.2.0
 
 - 
addAttributesRelationshippublic ExtendedRelation addAttributesRelationship(String baseTableName, AttributesTable attributesTable, UserMappingTable userMappingTable) Adds an attributes relationship between the base table and user attributes related table. Creates the user mapping table and an attributes table if needed.- Parameters:
- baseTableName- base table name
- attributesTable- user attributes table
- userMappingTable- user mapping table
- Returns:
- The relationship that was added
- Since:
- 3.2.0
 
 - 
addTilesRelationshippublic ExtendedRelation addTilesRelationship(String baseTableName, String relatedTilesTableName, String mappingTableName) Adds a tiles relationship between the base table and related tiles table. Creates a default user mapping table if needed.- Parameters:
- baseTableName- base table name
- relatedTilesTableName- related tiles table name
- mappingTableName- mapping table name
- Returns:
- The relationship that was added
- Since:
- 3.2.0
 
 - 
addTilesRelationshippublic ExtendedRelation addTilesRelationship(String baseTableName, String relatedTilesTableName, UserMappingTable userMappingTable) Adds a tiles relationship between the base table and related tiles table. Creates the user mapping table if needed.- Parameters:
- baseTableName- base table name
- relatedTilesTableName- related tiles table name
- userMappingTable- user mapping table
- Returns:
- The relationship that was added
- Since:
- 3.2.0
 
 - 
addTilesRelationshippublic ExtendedRelation addTilesRelationship(String baseTableName, TileTable tileTable, String mappingTableName) Adds a tiles relationship between the base table and user tiles related table. Creates a default user mapping table and the tile table if needed.- Parameters:
- baseTableName- base table name
- tileTable- user tile table
- mappingTableName- user mapping table name
- Returns:
- The relationship that was added
- Since:
- 3.2.0
 
 - 
addTilesRelationshippublic ExtendedRelation addTilesRelationship(String baseTableName, TileTable tileTable, UserMappingTable userMappingTable) Adds a tiles relationship between the base table and user tiles related table. Creates the user mapping table and a tile table if needed.- Parameters:
- baseTableName- base table name
- tileTable- user tile table
- userMappingTable- user mapping table
- Returns:
- The relationship that was added
- Since:
- 3.2.0
 
 - 
createUserMappingTablepublic boolean createUserMappingTable(String mappingTableName) Create a default user mapping table and extension row if either does not exist. When not created, there is no guarantee that an existing table has the same schema as the provided tabled.- Parameters:
- mappingTableName- user mapping table name
- Returns:
- true if table was created, false if the table already existed
 
 - 
createUserMappingTablepublic boolean createUserMappingTable(UserMappingTable userMappingTable) Create a user mapping table and extension row if either does not exist. When not created, there is no guarantee that an existing table has the same schema as the provided tabled.- Parameters:
- userMappingTable- user mapping table
- Returns:
- true if table was created, false if the table already existed
 
 - 
createRelatedTablepublic boolean createRelatedTable(UserTable<? extends UserColumn> relatedTable) Create a user related table if it does not exist. When not created, there is no guarantee that an existing table has the same schema as the provided tabled.- Parameters:
- relatedTable- user related table
- Returns:
- true if created, false if the table already existed
- Since:
- 3.2.0
 
 - 
removeRelationshippublic void removeRelationship(String baseTableName, String relatedTableName, RelationType relationType) Remove a specific relationship from the GeoPackage- Parameters:
- baseTableName- base table name
- relatedTableName- related table name
- relationType- relation type
 
 - 
removeRelationshippublic void removeRelationship(String baseTableName, String relatedTableName, String relationAuthor, String relationName) Remove a specific relationship from the GeoPackage- Parameters:
- baseTableName- base table name
- relatedTableName- related table name
- relationAuthor- relation author
- relationName- relation name
 
 - 
removeRelationshippublic void removeRelationship(ExtendedRelation extendedRelation) Remove a specific relationship from the GeoPackage- Parameters:
- extendedRelation- extended relation
 
 - 
removeRelationshippublic void removeRelationship(String baseTableName, String relatedTableName, String relationName) Remove a specific relationship from the GeoPackage- Parameters:
- baseTableName- base table name
- relatedTableName- related table name
- relationName- relation name
 
 - 
removeRelationshipspublic void removeRelationships(String table) Remove all relationships that include the table- Parameters:
- table- base or related table name
- Since:
- 3.2.0
 
 - 
removeRelationshipsWithMappingTablepublic void removeRelationshipsWithMappingTable(String mappingTable) Remove all relationships with the mapping table- Parameters:
- mappingTable- mapping table
- Since:
- 3.2.0
 
 - 
removeExtensionpublic void removeExtension() Remove all trace of the extension
 - 
hasRelationspublic boolean hasRelations(String baseTable, String relatedTable) throws SQLException Determine if has one or more relations matching the base table and related table- Parameters:
- baseTable- base table name
- relatedTable- related table name
- Returns:
- true if has relations
- Throws:
- SQLException- upon failure
- Since:
- 3.2.0
 
 - 
getRelationspublic List<ExtendedRelation> getRelations(String baseTable, String relatedTable) Get the relations to the base table and related table- Parameters:
- baseTable- base table name
- relatedTable- related table name
- Returns:
- extended relations
- Since:
- 3.2.0
 
 - 
hasRelationspublic boolean hasRelations(String baseTable, String relatedTable, String mappingTable) throws SQLException Determine if has one or more relations matching the non null provided values- Parameters:
- baseTable- base table name
- relatedTable- related table name
- mappingTable- mapping table name
- Returns:
- true if has relations
- Throws:
- SQLException- upon failure
- Since:
- 3.2.0
 
 - 
getRelationspublic List<ExtendedRelation> getRelations(String baseTable, String relatedTable, String mappingTable) throws SQLException Get the relations matching the non null provided values- Parameters:
- baseTable- base table name
- relatedTable- related table name
- mappingTable- mapping table name
- Returns:
- extended relations
- Throws:
- SQLException- upon failure
- Since:
- 3.2.0
 
 - 
hasRelationspublic boolean hasRelations(String baseTable, String relatedTable, String relation, String mappingTable) Determine if has one or more relations matching the non null provided values- Parameters:
- baseTable- base table name
- relatedTable- related table name
- relation- relation name
- mappingTable- mapping table name
- Returns:
- true if has relations
- Since:
- 3.2.0
 
 - 
getRelationspublic List<ExtendedRelation> getRelations(String baseTable, String relatedTable, String relation, String mappingTable) throws SQLException Get the relations matching the non null provided values- Parameters:
- baseTable- base table name
- relatedTable- related table name
- relation- relation name
- mappingTable- mapping table name
- Returns:
- extended relations
- Throws:
- SQLException- upon failure
- Since:
- 3.2.0
 
 - 
hasRelationspublic boolean hasRelations(String baseTable, String baseColumn, String relatedTable, String relatedColumn, String relation, String mappingTable) Determine if has one or more 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:
- true if has relations
- Since:
- 3.2.0
 
 - 
getRelationspublic List<ExtendedRelation> getRelations(String baseTable, String baseColumn, String relatedTable, String relatedColumn, String relation, String mappingTable) 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
- Since:
- 3.2.0
 
 - 
buildRelationNamepublic String buildRelationName(String author, String name) Build the custom relation name with author- Parameters:
- author- relation author
- name- base relation name
- Returns:
- custom relation name
 
 - 
getBaseTableRelationspublic List<ExtendedRelation> getBaseTableRelations(String baseTable) throws SQLException Get the relations to the base table- Parameters:
- baseTable- base table name
- Returns:
- extended relations
- Throws:
- SQLException- upon failure
- Since:
- 6.3.0
 
 - 
hasBaseTableRelationspublic boolean hasBaseTableRelations(String baseTable) throws SQLException Determine if there are relations to the base table- Parameters:
- baseTable- base table name
- Returns:
- true if has extended relations
- Throws:
- SQLException- upon failure
- Since:
- 6.3.0
 
 - 
getRelatedTableRelationspublic List<ExtendedRelation> getRelatedTableRelations(String relatedTable) throws SQLException Get the relations to the related table- Parameters:
- relatedTable- related table name
- Returns:
- extended relations
- Throws:
- SQLException- upon failure
- Since:
- 6.3.0
 
 - 
hasRelatedTableRelationspublic boolean hasRelatedTableRelations(String relatedTable) throws SQLException Determine if there are relations to the related table- Parameters:
- relatedTable- related table name
- Returns:
- true if has extended relations
- Throws:
- SQLException- upon failure
- Since:
- 6.3.0
 
 - 
getTableRelationspublic List<ExtendedRelation> getTableRelations(String table) throws SQLException Get the relations to the table- Parameters:
- table- table name
- Returns:
- extended relations
- Throws:
- SQLException- upon failure
- Since:
- 6.3.0
 
 - 
hasTableRelationspublic boolean hasTableRelations(String table) throws SQLException Determine if there are relations to the table- Parameters:
- table- table name
- Returns:
- true if has extended relations
- Throws:
- SQLException- upon failure
- Since:
- 6.3.0
 
 
- 
 
-