Package com.im.df.api.capabilities
Interface DBRelationshipMtoN
-
- All Superinterfaces:
DBRelationshipCapability
,DFCapability
,PropertiesEditingConfigurable
public interface DBRelationshipMtoN extends DBRelationshipCapability, PropertiesEditingConfigurable
Represents database extension of M to N instance ofDFRelationship
object. The database implementation "many to many" relationship always use a join table with columns containing indexes from the first and the second tables.- Author:
- Petr Hamernik
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.im.df.api.support.PropertiesEditingConfigurable
PropertiesEditingConfigurable.Extra
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<java.lang.String>
getDestColumnNames()
Get the list of column names related to a destination field of this relationship.com.im.commons.db.util.SchemaQualifiedName
getDestFKName()
Returns the name for the 2nd entity FK constraintjava.lang.String
getJoinTableName()
Get the join table name in database.java.lang.String
getJoinTableSchema()
Get the schema for the join table.com.im.commons.db.util.SchemaQualifiedName
getSourceFKName()
Returns the name for the 1st entity FK constraintjava.util.List<java.lang.String>
getSrcColumnNames()
Get the list of column names related to a source field of this relationship.void
setJoinTableName(java.lang.String name, com.im.commons.progress.DFEnvironmentRW env)
Rename the join table in database.-
Methods inherited from interface com.im.df.api.capabilities.DBRelationshipCapability
getFkName
-
Methods inherited from interface com.im.df.api.support.PropertiesEditingConfigurable
isPropertyEditable
-
-
-
-
Method Detail
-
getJoinTableName
java.lang.String getJoinTableName()
Get the join table name in database.
-
getJoinTableSchema
java.lang.String getJoinTableSchema()
Get the schema for the join table.- Returns:
- The schema name
-
setJoinTableName
void setJoinTableName(java.lang.String name, com.im.commons.progress.DFEnvironmentRW env)
Rename the join table in database.
-
getSrcColumnNames
java.util.List<java.lang.String> getSrcColumnNames()
Get the list of column names related to a source field of this relationship. Typically returns only one column name in the list, but can return more if primary key of the source table consist of more columns.
-
getDestColumnNames
java.util.List<java.lang.String> getDestColumnNames()
Get the list of column names related to a destination field of this relationship. Typically returns only one column name in the list, but can return more if primary key of the destination table consist of more columns.
-
getSourceFKName
com.im.commons.db.util.SchemaQualifiedName getSourceFKName()
Returns the name for the 1st entity FK constraint
-
getDestFKName
com.im.commons.db.util.SchemaQualifiedName getDestFKName()
Returns the name for the 2nd entity FK constraint
-
-