Package javax.jdo.metadata
Interface DiscriminatorMetadata
- All Superinterfaces:
Metadata
Represents the discriminator for inheritance purposes for this class.
- Since:
- 3.0
-
Method Summary
Modifier and TypeMethodDescriptionAccessor for the discriminator column nameAccessor for all column(s) defined on the discriminator.Accessor for whether indexed (true|false|unique)Accessor for any index metadata for the discriminator.int
Accessor for the number of columns defined for this discriminator.Accessor for the discriminator strategy.getValue()
Accessor for the discriminator value (when using "value-map" strategy).Add a new column for this discriminator.Method to set the index metadata for the discriminator.Method to set the discriminator column.setIndexed
(Indexed indexed) Method to set whether indexed.setStrategy
(DiscriminatorStrategy strategy) Method to set the discriminator strategy.Method to set the discriminator value (when using "value-map" strategy).Methods inherited from interface javax.jdo.metadata.Metadata
getExtensions, getNumberOfExtensions, getParent, newExtensionMetadata
-
Method Details
-
setColumn
Method to set the discriminator column.- Parameters:
column
- Name of the discriminator column- Returns:
- This metadata object
-
getColumn
String getColumn()Accessor for the discriminator column name- Returns:
- The column name
-
setValue
Method to set the discriminator value (when using "value-map" strategy).- Parameters:
val
- Value for the discriminator for this class- Returns:
- This metadata object
-
getValue
String getValue()Accessor for the discriminator value (when using "value-map" strategy).- Returns:
- The value
-
setStrategy
Method to set the discriminator strategy.- Parameters:
strategy
- The strategy- Returns:
- This metadata object
-
getStrategy
DiscriminatorStrategy getStrategy()Accessor for the discriminator strategy.- Returns:
- The strategy
-
setIndexed
Method to set whether indexed.- Parameters:
indexed
- Whether indexed (true | false | unique)- Returns:
- This metadata object
-
getIndexed
Indexed getIndexed()Accessor for whether indexed (true|false|unique)- Returns:
- Indexed?
-
getColumns
ColumnMetadata[] getColumns()Accessor for all column(s) defined on the discriminator.- Returns:
- The column(s)
-
newColumnMetadata
ColumnMetadata newColumnMetadata()Add a new column for this discriminator.- Returns:
- The ColumnMetadata
-
getNumberOfColumns
int getNumberOfColumns()Accessor for the number of columns defined for this discriminator.- Returns:
- The number of columns
-
newIndexMetadata
IndexMetadata newIndexMetadata()Method to set the index metadata for the discriminator.- Returns:
- The IndexMetadata
-
getIndexMetadata
IndexMetadata getIndexMetadata()Accessor for any index metadata for the discriminator.- Returns:
- Index metadata
-