Package javax.jdo.metadata
Interface DatastoreIdentityMetadata
- All Superinterfaces:
Metadata
Represents the datastore identity of a class.
- Since:
- 3.0
-
Method Summary
Modifier and TypeMethodDescriptionAccessor for the datastore identity column name.Accessor for all column(s) defined on the datastore identity.Accessor for the custom strategy (overriding "strategy").int
Accessor for the number of columns defined for this datastore identity.Accessor for the sequence key (when using "sequence" strategy)Accessor for the identity generation strategy.Add a new column for this datastore identity.Method to set the datastore identity column name.setCustomStrategy
(String strategy) Method to set the custom identity generation strategy.setSequence
(String seq) Method to set the sequence key (when using "sequence" strategy).setStrategy
(IdGeneratorStrategy strategy) Method to set the identity generation strategy.Methods inherited from interface javax.jdo.metadata.Metadata
getExtensions, getNumberOfExtensions, getParent, newExtensionMetadata
-
Method Details
-
setColumn
Method to set the datastore identity column name.- Parameters:
column
- Name of the datastore identity column- Returns:
- This metadata object
-
getColumn
String getColumn()Accessor for the datastore identity column name.- Returns:
- The column name
-
setStrategy
Method to set the identity generation strategy.- Parameters:
strategy
- The strategy- Returns:
- This metadata object
-
getStrategy
IdGeneratorStrategy getStrategy()Accessor for the identity generation strategy.- Returns:
- The strategy
-
setCustomStrategy
Method to set the custom identity generation strategy.- Parameters:
strategy
- The strategy- Returns:
- This metadata object
-
getCustomStrategy
String getCustomStrategy()Accessor for the custom strategy (overriding "strategy").- Returns:
- The strategy
-
setSequence
Method to set the sequence key (when using "sequence" strategy).- Parameters:
seq
- Sequence key- Returns:
- This metadata object
-
getSequence
String getSequence()Accessor for the sequence key (when using "sequence" strategy)- Returns:
- The sequence
-
getColumns
ColumnMetadata[] getColumns()Accessor for all column(s) defined on the datastore identity.- Returns:
- The column(s)
-
newColumnMetadata
ColumnMetadata newColumnMetadata()Add a new column for this datastore identity.- Returns:
- The ColumnMetadata
-
getNumberOfColumns
int getNumberOfColumns()Accessor for the number of columns defined for this datastore identity.- Returns:
- The number of columns
-