Package ch.so.agi.filegdb.write
Class RelationshipDefinition
java.lang.Object
ch.so.agi.filegdb.write.RelationshipDefinition
Definition of a relationship class to create.
RelationshipDefinition.builder("building_entrance")
.originClass("building").destinationClass("entrance")
.cardinality(ONE_TO_MANY)
.originPrimaryKey("globalid")
.originForeignKey("building_id")
.forwardLabel("entrances").backwardLabel("building")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classFluent builder. -
Constructor Summary
ConstructorsConstructorDescriptionRelationshipDefinition(String name, String originClassName, String destinationClassName, RelationshipCardinality cardinality, String originPrimaryKey, String originForeignKey, String destinationPrimaryKey, String destinationForeignKey, String forwardLabel, String backwardLabel, boolean composite) RelationshipDefinition(String name, String originClassName, String destinationClassName, RelationshipCardinality cardinality, String originPrimaryKey, String originForeignKey, String destinationPrimaryKey, String destinationForeignKey, String forwardLabel, String backwardLabel, boolean composite, String mappingTable, boolean attributed) Creates a relationship definition. -
Method Summary
-
Constructor Details
-
RelationshipDefinition
public RelationshipDefinition(String name, String originClassName, String destinationClassName, RelationshipCardinality cardinality, String originPrimaryKey, String originForeignKey, String destinationPrimaryKey, String destinationForeignKey, String forwardLabel, String backwardLabel, boolean composite) -
RelationshipDefinition
public RelationshipDefinition(String name, String originClassName, String destinationClassName, RelationshipCardinality cardinality, String originPrimaryKey, String originForeignKey, String destinationPrimaryKey, String destinationForeignKey, String forwardLabel, String backwardLabel, boolean composite, String mappingTable, boolean attributed) Creates a relationship definition.- Parameters:
mappingTable- existing table used as n:m mapping table; when set, no mapping table is created and the relationship name must equal the table name (as expected by GDAL/ArcGIS)attributed- whether the relationship class is attributed (n:m with attributes)
-
-
Method Details
-
name
-
originClassName
-
destinationClassName
-
cardinality
-
originPrimaryKey
-
originForeignKey
-
destinationPrimaryKey
-
destinationForeignKey
-
forwardLabel
-
backwardLabel
-
composite
public boolean composite() -
mappingTable
Existing table used as n:m mapping table, or null when filegdb4j creates it. -
attributed
public boolean attributed()Whether the relationship class is attributed (n:m with attribute columns). -
builder
-
equals
-
hashCode
public final int hashCode() -
toString
-