Package javax.jdo.metadata
Interface OrderMetadata
- All Superinterfaces:
Metadata
Represents ordering of a collection field/property.
- Since:
- 3.0
-
Method Summary
Modifier and TypeMethodDescriptionAccessor for the version column name.Accessor for all column(s) defined on the ordering.Accessor for any index metadata for the ordering.Accessor for the mapped-by field/property name in the element class.int
Accessor for the number of columns defined for this ordering.Add a column for this ordering.Method to set index metadata for the ordering.Method to set the version column name.setMappedBy
(String mappedBy) Method to set mapped-by information whether the order is present in the element class.Methods inherited from interface javax.jdo.metadata.Metadata
getExtensions, getNumberOfExtensions, getParent, newExtensionMetadata
-
Method Details
-
setColumn
Method to set the version column name.- Parameters:
column
- Name of the version column- Returns:
- This metadata object
-
getColumn
String getColumn()Accessor for the version column name.- Returns:
- The version column name
-
setMappedBy
Method to set mapped-by information whether the order is present in the element class.- Parameters:
mappedBy
- Field/property name in which to store the ordering in the element- Returns:
- This metadata object
-
getMappedBy
String getMappedBy()Accessor for the mapped-by field/property name in the element class.- Returns:
- Name of field/property in element class
-
getColumns
ColumnMetadata[] getColumns()Accessor for all column(s) defined on the ordering.- Returns:
- The column(s)
-
newColumnMetadata
ColumnMetadata newColumnMetadata()Add a column for this ordering.- Returns:
- The ColumnMetadata
-
getNumberOfColumns
int getNumberOfColumns()Accessor for the number of columns defined for this ordering.- Returns:
- The number of columns
-
newIndexMetadata
IndexMetadata newIndexMetadata()Method to set index metadata for the ordering.- Returns:
- The metadata for any index
-
getIndexMetadata
IndexMetadata getIndexMetadata()Accessor for any index metadata for the ordering.- Returns:
- Index metadata
-