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.String
PROP_CREATE_FOREIGN_KEY
static java.lang.String
PROP_DEST_FIELD
static java.lang.String
PROP_REL_TYPE
static java.lang.String
PROP_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 DFField
getDstField()
DFRelationship.Type
getRelType()
DFField
getSrcField()
boolean
isCreateConstraints()
void
setCreateConstraints(boolean create)
Instructs the NT to create the DB constraints on the tablevoid
setDstField(DFField dstField)
void
setRelType(DFRelationship.Type relType)
Sets relationship type.void
setSrcField(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()
-
-