Package javax.jdo.metadata
Interface ElementMetadata
- All Superinterfaces:
Metadata
Represents an element in a collection/array.
- Since:
- 3.0
-
Method Summary
Modifier and TypeMethodDescriptionAccessor for the name of the column.Accessor for all column(s) defined on the element.AttributeConverter
<?, ?> Accessor for the attribute converter for this element (if any).Accessor for the delete action of the FKAccessor for any embedded metadata on this element.Accessor for any foreign key metadata on this element.Accessor for any index metadata on this elementint
Accessor for the number of columns defined for this element.getTable()
Accessor for the name of the table.Accessor for any unique constraint metadata on this element.Accessor for the update action of the FK.Accessor for whether any AttributeConverter for this element type is explicitly disabled and should use the implementation default.Add a new column for this element.Method to set new embedded metadata for the element.Method to set new foreign key metadata for the element.Method to set new index metadata for the element.Method to set new unique constraint metadata for the element.Method to set the column name.setConverter
(AttributeConverter<?, ?> conv) Method to set the attribute converter to use for this element.setDeleteAction
(ForeignKeyAction action) Method to set the delete action of the FKMethod to set the table name.setUpdateAction
(ForeignKeyAction action) Method to set the update action of the FKMethod to explicitly set whether to disable use of AttributeConverter for this type (either here, class-level or PMF level).Methods inherited from interface javax.jdo.metadata.Metadata
getExtensions, getNumberOfExtensions, getParent, newExtensionMetadata
-
Method Details
-
setColumn
Method to set the column name.- Parameters:
column
- Column name- Returns:
- This metadata object
-
getColumn
String getColumn()Accessor for the name of the column.- Returns:
- The name
-
setTable
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
-
setDeleteAction
Method to set the delete action of the FK- Parameters:
action
- Delete action of the FK- Returns:
- This metadata object
-
getDeleteAction
ForeignKeyAction getDeleteAction()Accessor for the delete action of the FK- Returns:
- The FK delete-action
-
setUpdateAction
Method to set the update action of the FK- Parameters:
action
- Update action of the FK- Returns:
- This metadata object
-
getUpdateAction
ForeignKeyAction getUpdateAction()Accessor for the update action of the FK.- Returns:
- The FK update-action
-
getColumns
ColumnMetadata[] getColumns()Accessor for all column(s) defined on the element.- Returns:
- The column(s)
-
newColumnMetadata
ColumnMetadata newColumnMetadata()Add a new column for this element.- Returns:
- The ColumnMetadata
-
getNumberOfColumns
int getNumberOfColumns()Accessor for the number of columns defined for this element.- Returns:
- The number of columns
-
newEmbeddedMetadata
EmbeddedMetadata newEmbeddedMetadata()Method to set new embedded metadata for the element.- Returns:
- The EmbeddedMetadata
-
getEmbeddedMetadata
EmbeddedMetadata getEmbeddedMetadata()Accessor for any embedded metadata on this element.- Returns:
- The EmbeddedMetadata
-
newIndexMetadata
IndexMetadata newIndexMetadata()Method to set new index metadata for the element.- Returns:
- The IndexMetadata
-
getIndexMetadata
IndexMetadata getIndexMetadata()Accessor for any index metadata on this element- Returns:
- Index metadata
-
newUniqueMetadata
UniqueMetadata newUniqueMetadata()Method to set new unique constraint metadata for the element.- Returns:
- The UniqueMetadata
-
getUniqueMetadata
UniqueMetadata getUniqueMetadata()Accessor for any unique constraint metadata on this element.- Returns:
- The UniqueMetadata
-
newForeignKeyMetadata
ForeignKeyMetadata newForeignKeyMetadata()Method to set new foreign key metadata for the element.- Returns:
- The ForeignKeyMetadata
-
getForeignKeyMetadata
ForeignKeyMetadata getForeignKeyMetadata()Accessor for any foreign key metadata on this element.- Returns:
- The ForeignKeyMetadata
-
getConverter
AttributeConverter<?,?> getConverter()Accessor for the attribute converter for this element (if any).- Returns:
- The converter
-
setConverter
Method to set the attribute converter to use for this element.- Parameters:
conv
- Converter- Returns:
- This metadata
-
getUseDefaultConversion
Boolean getUseDefaultConversion()Accessor for whether any AttributeConverter for this element type is explicitly disabled and should use the implementation default.- Returns:
- Whether it is disabled
-
setUseDefaultConversion
Method to explicitly set whether to disable use of AttributeConverter for this type (either here, class-level or PMF level).- Parameters:
flag
- Whether to disable- Returns:
- This metadata
-