Package com.im.ijc.df.impl.db
Class DBRelationshipSimpleNTO
- 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.DBRelationshipSimpleNTO
-
- All Implemented Interfaces:
com.im.df.api.support.DFNewTypeOptions
,com.im.df.api.support.DFNewTypeWellKnownOptions.NewRelationship
,com.im.df.api.support.DFNewTypeWellKnownOptions.NewRelationshipSimple
,com.im.df.api.support.DFNewTypeWellKnownOptions.SingleDFItem
public class DBRelationshipSimpleNTO extends DBRelationshipNTO implements com.im.df.api.support.DFNewTypeWellKnownOptions.NewRelationshipSimple
- 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 DBRelationshipSimpleNTO(com.im.df.api.ddl.DFContainer<com.im.df.api.ddl.DFRelationship> parentContainer, com.im.df.api.ddl.DFSchema schema, boolean canChangeRelType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]
getConstraintNamesOfSchema(String schema)
com.im.df.api.support.DFNewTypeWellKnownOptions.NewRelationshipFK
getForeignKey()
protected void
notifyCreateConstraintsChanged()
protected void
notifyNewDFItemNameChanged(String oldName, String newName)
void
resetFKName()
Resets FK name to a name derived from the relationship namevoid
setFKNameSafe(com.im.commons.db.util.SchemaQualifiedName fkName)
protected void
setFKNameSafe(com.im.df.api.support.DFNewTypeWellKnownOptions.NewRelationshipFK fk, com.im.commons.db.util.SchemaQualifiedName name)
void
setSrcField(com.im.df.api.ddl.DFField srcField)
protected void
updateKeyValidators()
protected void
updateStatus()
-
Methods inherited from class com.im.ijc.df.impl.db.DBRelationshipNTO
canChangeRelType, getConstraintNames, getDstField, getRelType, getSchema, getSrcField, isCreateConstraints, isFKRequired, notifyFieldChanged, notifyFKNameChanged, setCreateConstraints, setDstField, setRelType
-
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
-
getForeignKey
public com.im.df.api.support.DFNewTypeWellKnownOptions.NewRelationshipFK getForeignKey()
- Specified by:
getForeignKey
in interfacecom.im.df.api.support.DFNewTypeWellKnownOptions.NewRelationshipSimple
-
updateKeyValidators
protected void updateKeyValidators()
- Overrides:
updateKeyValidators
in classDBRelationshipNTO
-
resetFKName
public void resetFKName()
Resets FK name to a name derived from the relationship name
-
setFKNameSafe
protected void setFKNameSafe(com.im.df.api.support.DFNewTypeWellKnownOptions.NewRelationshipFK fk, com.im.commons.db.util.SchemaQualifiedName name)
- Overrides:
setFKNameSafe
in classDBRelationshipNTO
-
setFKNameSafe
public void setFKNameSafe(com.im.commons.db.util.SchemaQualifiedName fkName)
-
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>
-
notifyCreateConstraintsChanged
protected void notifyCreateConstraintsChanged()
- Overrides:
notifyCreateConstraintsChanged
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
-
updateStatus
protected void updateStatus()
- Overrides:
updateStatus
in classDBRelationshipNTO
-
-