Class 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
    • Field Summary

      • 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
      • Fields inherited from interface com.im.df.api.support.DFNewTypeWellKnownOptions.NewRelationshipSimple

        PROP_FOREIGN_KEY
      • Fields inherited from interface com.im.df.api.support.DFNewTypeWellKnownOptions.SingleDFItem

        PROP_DESCRIPTION, PROP_NEW_DFITEM_NAME
    • 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)  
    • Constructor Detail

      • DBRelationshipSimpleNTO

        public DBRelationshipSimpleNTO​(com.im.df.api.ddl.DFContainer<com.im.df.api.ddl.DFRelationship> parentContainer,
                                       com.im.df.api.ddl.DFSchema schema,
                                       boolean canChangeRelType)
    • Method Detail

      • getForeignKey

        public com.im.df.api.support.DFNewTypeWellKnownOptions.NewRelationshipFK getForeignKey()
        Specified by:
        getForeignKey in interface com.im.df.api.support.DFNewTypeWellKnownOptions.NewRelationshipSimple
      • 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 class DBRelationshipNTO
      • setFKNameSafe

        public void setFKNameSafe​(com.im.commons.db.util.SchemaQualifiedName fkName)
      • notifyNewDFItemNameChanged

        protected void notifyNewDFItemNameChanged​(String oldName,
                                                  String newName)
        Overrides:
        notifyNewDFItemNameChanged in class com.chemaxon.dif.db.api.item.newtype.SingleDFItemNTO<com.im.df.api.ddl.DFRelationship>
      • setSrcField

        public void setSrcField​(com.im.df.api.ddl.DFField srcField)
        Specified by:
        setSrcField in interface com.im.df.api.support.DFNewTypeWellKnownOptions.NewRelationship
        Overrides:
        setSrcField in class DBRelationshipNTO
      • getConstraintNamesOfSchema

        public String[] getConstraintNamesOfSchema​(String schema)