Package com.im.ijc.df.impl.db
Class DBRelationshipMtoNNTO
- java.lang.Object
-
- com.chemaxon.dif.db.api.item.newtype.AbstractNTOImpl
-
- com.chemaxon.dif.db.api.item.newtype.SingleDFItemNTO<com.im.df.api.ddl.DFRelationship>
-
- com.im.ijc.df.impl.db.DBRelationshipNTO
-
- com.im.ijc.df.impl.db.DBRelationshipMtoNNTO
-
- All Implemented Interfaces:
com.im.df.api.support.DFNewTypeOptions
,com.im.df.api.support.DFNewTypeWellKnownOptions.NewRelationship
,com.im.df.api.support.DFNewTypeWellKnownOptions.NewRelationshipMN
,com.im.df.api.support.DFNewTypeWellKnownOptions.SingleDFItem
public final class DBRelationshipMtoNNTO extends DBRelationshipNTO implements com.im.df.api.support.DFNewTypeWellKnownOptions.NewRelationshipMN
- Author:
- svata
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.im.ijc.df.impl.db.DBRelationshipNTO
DBRelationshipNTO.RelationFKImpl
-
-
Field Summary
-
Fields inherited from class com.im.ijc.df.impl.db.DBRelationshipNTO
relType
-
Fields inherited from interface com.im.df.api.support.DFNewTypeOptions
PROP_ERROR_MESSAGE, PROP_VALID
-
Fields inherited from interface com.im.df.api.support.DFNewTypeWellKnownOptions.NewRelationship
PROP_CREATE_FOREIGN_KEY, PROP_DEST_FIELD, PROP_REL_TYPE, PROP_SRC_FIELD
-
-
Constructor Summary
Constructors Constructor Description DBRelationshipMtoNNTO(com.im.df.api.ddl.DFContainer<com.im.df.api.ddl.DFRelationship> parentContainer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.im.df.api.support.DFNewTypeWellKnownOptions.NewRelationshipFK
getDestFK()
List<String>
getDstColumnNames()
com.im.df.api.ddl.DFField
getDstField()
com.im.commons.db.util.SchemaQualifiedName
getJoinTableName()
com.im.df.api.ddl.DFRelationship.Type
getRelType()
String
getSchemaName()
com.im.df.api.support.DFNewTypeWellKnownOptions.NewRelationshipFK
getSourceFK()
List<String>
getSrcColumnNames()
protected void
notifyFieldChanged(boolean source, com.im.df.api.ddl.DFField field)
protected void
notifyNewDFItemNameChanged(String oldName, String newName)
void
setDstColumnNames(List<String> dstColumnNames)
void
setDstField(com.im.df.api.ddl.DFField dstField)
protected void
setFKNameSafe(com.im.df.api.support.DFNewTypeWellKnownOptions.NewRelationshipFK fk, com.im.commons.db.util.SchemaQualifiedName name)
void
setJoinTableName(com.im.commons.db.util.SchemaQualifiedName joinTableName)
void
setRelType(com.im.df.api.ddl.DFRelationship.Type relType)
void
setSrcColumnNames(List<String> srcColumnNames)
void
setSrcField(com.im.df.api.ddl.DFField srcField)
protected void
updateStatus()
-
Methods inherited from class com.im.ijc.df.impl.db.DBRelationshipNTO
canChangeRelType, getConstraintNames, getSchema, getSrcField, isCreateConstraints, isFKRequired, notifyCreateConstraintsChanged, notifyFKNameChanged, setCreateConstraints, updateKeyValidators
-
Methods inherited from class com.chemaxon.dif.db.api.item.newtype.SingleDFItemNTO
getDescription, getNewDFItemName, getParentContainer, normalizeDFItemName, setDescription, setNewDFItemName, setNewDFItemNameSafe
-
Methods inherited from class com.chemaxon.dif.db.api.item.newtype.AbstractNTOImpl
addPropertyChangeListener, firePropertyChange, getErrorMessage, isValid, removePropertyChangeListener, setErrorMessage, setValid
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.im.df.api.support.DFNewTypeOptions
addPropertyChangeListener, getErrorMessage, isValid, removePropertyChangeListener
-
-
-
-
Method Detail
-
getSchemaName
public String getSchemaName()
-
getRelType
public com.im.df.api.ddl.DFRelationship.Type getRelType()
- Specified by:
getRelType
in interfacecom.im.df.api.support.DFNewTypeWellKnownOptions.NewRelationship
- Overrides:
getRelType
in classDBRelationshipNTO
-
getDstField
public com.im.df.api.ddl.DFField getDstField()
- Specified by:
getDstField
in interfacecom.im.df.api.support.DFNewTypeWellKnownOptions.NewRelationship
- Overrides:
getDstField
in classDBRelationshipNTO
-
setDstField
public void setDstField(com.im.df.api.ddl.DFField dstField)
- Specified by:
setDstField
in interfacecom.im.df.api.support.DFNewTypeWellKnownOptions.NewRelationship
- Overrides:
setDstField
in classDBRelationshipNTO
-
setSrcField
public void setSrcField(com.im.df.api.ddl.DFField srcField)
- Specified by:
setSrcField
in interfacecom.im.df.api.support.DFNewTypeWellKnownOptions.NewRelationship
- Overrides:
setSrcField
in classDBRelationshipNTO
-
setRelType
public void setRelType(com.im.df.api.ddl.DFRelationship.Type relType)
- Specified by:
setRelType
in interfacecom.im.df.api.support.DFNewTypeWellKnownOptions.NewRelationship
- Overrides:
setRelType
in classDBRelationshipNTO
-
getJoinTableName
public com.im.commons.db.util.SchemaQualifiedName getJoinTableName()
- Specified by:
getJoinTableName
in interfacecom.im.df.api.support.DFNewTypeWellKnownOptions.NewRelationshipMN
-
setJoinTableName
public void setJoinTableName(com.im.commons.db.util.SchemaQualifiedName joinTableName)
- Specified by:
setJoinTableName
in interfacecom.im.df.api.support.DFNewTypeWellKnownOptions.NewRelationshipMN
-
getSrcColumnNames
public List<String> getSrcColumnNames()
- Specified by:
getSrcColumnNames
in interfacecom.im.df.api.support.DFNewTypeWellKnownOptions.NewRelationshipMN
-
setSrcColumnNames
public void setSrcColumnNames(List<String> srcColumnNames)
- Specified by:
setSrcColumnNames
in interfacecom.im.df.api.support.DFNewTypeWellKnownOptions.NewRelationshipMN
-
getDstColumnNames
public List<String> getDstColumnNames()
- Specified by:
getDstColumnNames
in interfacecom.im.df.api.support.DFNewTypeWellKnownOptions.NewRelationshipMN
-
setDstColumnNames
public void setDstColumnNames(List<String> dstColumnNames)
- Specified by:
setDstColumnNames
in interfacecom.im.df.api.support.DFNewTypeWellKnownOptions.NewRelationshipMN
-
setFKNameSafe
protected void setFKNameSafe(com.im.df.api.support.DFNewTypeWellKnownOptions.NewRelationshipFK fk, com.im.commons.db.util.SchemaQualifiedName name)
- Overrides:
setFKNameSafe
in classDBRelationshipNTO
-
getSourceFK
public com.im.df.api.support.DFNewTypeWellKnownOptions.NewRelationshipFK getSourceFK()
- Specified by:
getSourceFK
in interfacecom.im.df.api.support.DFNewTypeWellKnownOptions.NewRelationshipMN
-
getDestFK
public com.im.df.api.support.DFNewTypeWellKnownOptions.NewRelationshipFK getDestFK()
- Specified by:
getDestFK
in interfacecom.im.df.api.support.DFNewTypeWellKnownOptions.NewRelationshipMN
-
notifyFieldChanged
protected void notifyFieldChanged(boolean source, com.im.df.api.ddl.DFField field)
- Overrides:
notifyFieldChanged
in classDBRelationshipNTO
-
notifyNewDFItemNameChanged
protected void notifyNewDFItemNameChanged(String oldName, String newName)
- Overrides:
notifyNewDFItemNameChanged
in classcom.chemaxon.dif.db.api.item.newtype.SingleDFItemNTO<com.im.df.api.ddl.DFRelationship>
-
updateStatus
protected void updateStatus()
- Overrides:
updateStatus
in classDBRelationshipNTO
-
-