|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ForeignKeyMetadata
Represents a FK constraint in an ORM context.
Method Summary | |
---|---|
ColumnMetadata[] |
getColumns()
Accessor for all column(s) defined on the FK. |
Boolean |
getDeferred()
Accessor for whether the constraint can be deferred. |
ForeignKeyAction |
getDeleteAction()
Accessor for the delete action of the FK |
MemberMetadata[] |
getMembers()
Accessor for all fields/properties defined on the FK. |
String |
getName()
Accessor for the constraint name. |
int |
getNumberOfColumns()
Accessor for the number of columns defined for this FK. |
int |
getNumberOfMembers()
Accessor for the number of fields/properties defined for this FK. |
String |
getTable()
Accessor for the name of the table. |
Boolean |
getUnique()
Accessor for whether unique. |
ForeignKeyAction |
getUpdateAction()
Accessor for the update action of the FK |
ColumnMetadata |
newColumnMetadata()
Add a new column for this FK. |
FieldMetadata |
newFieldMetadata(String name)
Add a new field for this FK. |
PropertyMetadata |
newPropertyMetadata(String name)
Add a new property for this FK. |
ForeignKeyMetadata |
setDeferred(boolean def)
Method to set whether it is deferred. |
ForeignKeyMetadata |
setDeleteAction(ForeignKeyAction action)
Method to set the delete action of the FK |
ForeignKeyMetadata |
setName(String name)
Method to set the name of the constraint |
ForeignKeyMetadata |
setTable(String table)
Method to set the table name. |
ForeignKeyMetadata |
setUnique(boolean unique)
Method to set whether it is unique. |
ForeignKeyMetadata |
setUpdateAction(ForeignKeyAction action)
Method to set the update action of the FK |
Methods inherited from interface javax.jdo.metadata.Metadata |
---|
getExtensions, getNumberOfExtensions, getParent, newExtensionMetadata |
Method Detail |
---|
ForeignKeyMetadata setName(String name)
name
- Name of the constraintString getName()
ForeignKeyMetadata setTable(String table)
table
- Table nameString getTable()
ForeignKeyMetadata setUnique(boolean unique)
unique
- Unique?Boolean getUnique()
ForeignKeyMetadata setDeferred(boolean def)
def
- Deferred?Boolean getDeferred()
ForeignKeyMetadata setDeleteAction(ForeignKeyAction action)
action
- Delete action of the FKForeignKeyAction getDeleteAction()
ForeignKeyMetadata setUpdateAction(ForeignKeyAction action)
action
- Update action of the FKForeignKeyAction getUpdateAction()
ColumnMetadata[] getColumns()
ColumnMetadata newColumnMetadata()
int getNumberOfColumns()
MemberMetadata[] getMembers()
int getNumberOfMembers()
FieldMetadata newFieldMetadata(String name)
name
- Name of the field
PropertyMetadata newPropertyMetadata(String name)
name
- Name of the property
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |