Package com.im.df.api.support
Interface DFNewTypeWellKnownOptions.NewRelationship
-
- All Superinterfaces:
DFNewTypeOptions,DFNewTypeWellKnownOptions.SingleDFItem
- All Known Subinterfaces:
DFNewTypeWellKnownOptions.NewRelationshipMN,DFNewTypeWellKnownOptions.NewRelationshipSimple
- Enclosing interface:
- DFNewTypeWellKnownOptions
public static interface DFNewTypeWellKnownOptions.NewRelationship extends DFNewTypeWellKnownOptions.SingleDFItem
Options for creating a new DFRelationship
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPROP_CREATE_FOREIGN_KEYstatic java.lang.StringPROP_DEST_FIELDstatic java.lang.StringPROP_REL_TYPEstatic java.lang.StringPROP_SRC_FIELD-
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.SingleDFItem
PROP_DESCRIPTION, PROP_NEW_DFITEM_NAME
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DFFieldgetDstField()DFRelationship.TypegetRelType()DFFieldgetSrcField()booleanisCreateConstraints()voidsetCreateConstraints(boolean create)Instructs the NT to create the DB constraints on the tablevoidsetDstField(DFField dstField)voidsetRelType(DFRelationship.Type relType)Sets relationship type.voidsetSrcField(DFField srcField)-
Methods inherited from interface com.im.df.api.support.DFNewTypeOptions
addPropertyChangeListener, getErrorMessage, isValid, removePropertyChangeListener
-
Methods inherited from interface com.im.df.api.support.DFNewTypeWellKnownOptions.SingleDFItem
getDescription, getNewDFItemName, setDescription, setNewDFItemName, setNewDFItemNameSafe
-
-
-
-
Field Detail
-
PROP_SRC_FIELD
static final java.lang.String PROP_SRC_FIELD
- See Also:
- Constant Field Values
-
PROP_DEST_FIELD
static final java.lang.String PROP_DEST_FIELD
- See Also:
- Constant Field Values
-
PROP_CREATE_FOREIGN_KEY
static final java.lang.String PROP_CREATE_FOREIGN_KEY
- See Also:
- Constant Field Values
-
PROP_REL_TYPE
static final java.lang.String PROP_REL_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSrcField
DFField getSrcField()
-
setSrcField
void setSrcField(DFField srcField)
-
getDstField
DFField getDstField()
-
setDstField
void setDstField(DFField dstField)
-
getRelType
DFRelationship.Type getRelType()
-
setRelType
void setRelType(DFRelationship.Type relType)
Sets relationship type. This method makes no sense for M:N relationships
-
setCreateConstraints
void setCreateConstraints(boolean create)
Instructs the NT to create the DB constraints on the table
-
isCreateConstraints
boolean isCreateConstraints()
-
-