Package javax.jdo.metadata
Interface SequenceMetadata
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.IntegergetAllocationSize()Accessor for the allocation size of the sequence (if any).java.lang.StringgetDatastoreSequence()Accessor for the name of the datastore sequence that this maps tojava.lang.StringgetFactoryClass()Accessor for the factory class for this sequence.java.lang.IntegergetInitialValue()Accessor for the initial value of the sequence (if any).java.lang.StringgetName()Accessor for the name of the sequence (set on construction).SequenceStrategygetSequenceStrategy()Accessor for the sequence strategy (set on construction).SequenceMetadatasetAllocationSize(int size)Method to set the allocation size for the sequence.SequenceMetadatasetDatastoreSequence(java.lang.String seq)Method to set the name of the datastore sequence that this maps to.SequenceMetadatasetFactoryClass(java.lang.String clsName)Method to set the result class name for the query.SequenceMetadatasetInitialValue(int val)Method to set the initial value for the sequence.-
Methods inherited from interface javax.jdo.metadata.Metadata
getExtensions, getNumberOfExtensions, getParent, newExtensionMetadata
-
-
-
-
Method Detail
-
getName
java.lang.String getName()
Accessor for the name of the sequence (set on construction).- Returns:
- The name
-
getSequenceStrategy
SequenceStrategy getSequenceStrategy()
Accessor for the sequence strategy (set on construction).- Returns:
- Sequence strategy
-
setDatastoreSequence
SequenceMetadata setDatastoreSequence(java.lang.String seq)
Method to set the name of the datastore sequence that this maps to.- Parameters:
seq- Datastore sequence name- Returns:
- This metadata object
-
getDatastoreSequence
java.lang.String getDatastoreSequence()
Accessor for the name of the datastore sequence that this maps to- Returns:
- The datastore sequence name
-
setFactoryClass
SequenceMetadata setFactoryClass(java.lang.String clsName)
Method to set the result class name for the query.- Parameters:
clsName- Result class name- Returns:
- This metadata object
-
getFactoryClass
java.lang.String getFactoryClass()
Accessor for the factory class for this sequence.- Returns:
- The factory class
-
setInitialValue
SequenceMetadata setInitialValue(int val)
Method to set the initial value for the sequence.- Parameters:
val- Initial value to use- Returns:
- This metadata object
- Since:
- 3.1
-
getInitialValue
java.lang.Integer getInitialValue()
Accessor for the initial value of the sequence (if any).- Returns:
- initial value
- Since:
- 3.1
-
setAllocationSize
SequenceMetadata setAllocationSize(int size)
Method to set the allocation size for the sequence.- Parameters:
size- Allocation size to use- Returns:
- This metadata object
- Since:
- 3.1
-
getAllocationSize
java.lang.Integer getAllocationSize()
Accessor for the allocation size of the sequence (if any).- Returns:
- allocation size
- Since:
- 3.1
-
-