Class ExtendedRelation
- java.lang.Object
-
- mil.nga.geopackage.extension.related.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
-
-
Field Summary
Fields Modifier and Type Field Description static String
COLUMN_BASE_PRIMARY_COLUMN
base_primary_column field namestatic String
COLUMN_BASE_TABLE_NAME
base_table_name field namestatic String
COLUMN_ID
id field namestatic String
COLUMN_MAPPING_TABLE_NAME
mapping_table_name field namestatic String
COLUMN_RELATED_PRIMARY_COLUMN
related_primary_column field namestatic String
COLUMN_RELATED_TABLE_NAME
related_table_name field namestatic String
COLUMN_RELATION_NAME
relation_name field namestatic String
TABLE_NAME
Table name
-
Constructor Summary
Constructors Constructor Description ExtendedRelation()
Default ConstructorExtendedRelation(ExtendedRelation extendedRelation)
Copy Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBasePrimaryColumn()
GetterString
getBaseTableName()
Getterlong
getId()
GetterString
getMappingTableName()
GetterString
getRelatedPrimaryColumn()
GetterString
getRelatedTableName()
GetterString
getRelationName()
GetterRelationType
getRelationType()
Get the relation type for pre-known typesvoid
resetId()
Reset the id so the row can be inserted as newvoid
setBasePrimaryColumn(String basePrimaryColumn)
Settervoid
setBaseTableName(String baseTableName)
Settervoid
setId(long id)
Settervoid
setMappingTableName(String mappingTableName)
Settervoid
setRelatedPrimaryColumn(String relatedPrimaryColumn)
Settervoid
setRelatedTableName(String relatedTableName)
Settervoid
setRelationName(String relationName)
Setter
-
-
-
Field Detail
-
TABLE_NAME
public static final String TABLE_NAME
Table name- See Also:
- Constant Field Values
-
COLUMN_ID
public static final String COLUMN_ID
id field name- See Also:
- Constant Field Values
-
COLUMN_BASE_TABLE_NAME
public static final String COLUMN_BASE_TABLE_NAME
base_table_name field name- See Also:
- Constant Field Values
-
COLUMN_BASE_PRIMARY_COLUMN
public static final String COLUMN_BASE_PRIMARY_COLUMN
base_primary_column field name- See Also:
- Constant Field Values
-
COLUMN_RELATED_TABLE_NAME
public static final String COLUMN_RELATED_TABLE_NAME
related_table_name field name- See Also:
- Constant Field Values
-
COLUMN_RELATED_PRIMARY_COLUMN
public static final String COLUMN_RELATED_PRIMARY_COLUMN
related_primary_column field name- See Also:
- Constant Field Values
-
COLUMN_RELATION_NAME
public static final String COLUMN_RELATION_NAME
relation_name field name- See Also:
- Constant Field Values
-
COLUMN_MAPPING_TABLE_NAME
public static final String COLUMN_MAPPING_TABLE_NAME
mapping_table_name field name- See Also:
- Constant Field Values
-
-
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
-
-