Package javax.jdo.metadata
Interface UniqueMetadata
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ColumnMetadata[]
getColumns()
Accessor for all column(s) defined on the unique constraint.Boolean
getDeferred()
Accessor for whether deferred.MemberMetadata[]
getMembers()
Accessor for all fields/properties defined on the unique constraint.String
getName()
Accessor for the constraint name.int
getNumberOfColumns()
Accessor for the number of columns defined for this unique constraint.int
getNumberOfMembers()
Accessor for the number of fields/properties defined for this unique constraint.String
getTable()
Accessor for the name of the table.ColumnMetadata
newColumnMetadata()
Add a new column for this unique constraint.FieldMetadata
newFieldMetadata(String name)
Add a new field for this unique constraint.PropertyMetadata
newPropertyMetadata(String name)
Add a new property for this unique constraint.UniqueMetadata
setDeferred(boolean def)
Method to set whether the constraint is deferred.UniqueMetadata
setName(String name)
Method to set the name of the constraint.UniqueMetadata
setTable(String table)
Method to set the table name.-
Methods inherited from interface javax.jdo.metadata.Metadata
getExtensions, getNumberOfExtensions, getParent, newExtensionMetadata
-
-
-
-
Method Detail
-
setName
UniqueMetadata setName(String name)
Method to set the name of the constraint.- Parameters:
name
- Name of the constraint- Returns:
- This metadata object
-
getName
String getName()
Accessor for the constraint name.- Returns:
- The constraint name
-
setTable
UniqueMetadata setTable(String table)
Method to set the table name.- Parameters:
table
- Table name- Returns:
- This metadata object
-
getTable
String getTable()
Accessor for the name of the table.- Returns:
- The name
-
setDeferred
UniqueMetadata setDeferred(boolean def)
Method to set whether the constraint is deferred.- Parameters:
def
- Deferred?- Returns:
- This metadata object
-
getDeferred
Boolean getDeferred()
Accessor for whether deferred.- Returns:
- Deferred?
-
getColumns
ColumnMetadata[] getColumns()
Accessor for all column(s) defined on the unique constraint.- Returns:
- The column(s)
-
newColumnMetadata
ColumnMetadata newColumnMetadata()
Add a new column for this unique constraint.- Returns:
- The ColumnMetadata
-
getNumberOfColumns
int getNumberOfColumns()
Accessor for the number of columns defined for this unique constraint.- Returns:
- The number of columns
-
getMembers
MemberMetadata[] getMembers()
Accessor for all fields/properties defined on the unique constraint.- Returns:
- The members
-
getNumberOfMembers
int getNumberOfMembers()
Accessor for the number of fields/properties defined for this unique constraint.- Returns:
- The number of members
-
newFieldMetadata
FieldMetadata newFieldMetadata(String name)
Add a new field for this unique constraint.- Parameters:
name
- Name of the field- Returns:
- The FieldMetadata
-
newPropertyMetadata
PropertyMetadata newPropertyMetadata(String name)
Add a new property for this unique constraint.- Parameters:
name
- Name of the property- Returns:
- The PropertyMetadata
-
-