Skip navigation links
oracle.toplink.sequencing
Class DefaultSequence
java.lang.Object
oracle.toplink.sequencing.Sequence
oracle.toplink.sequencing.DefaultSequence
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
-
public class DefaultSequence
- extends Sequence
Purpose: Reference to the default sequence.
Description This sequence can be used to provide a sequence using the session's default sequencing mechanism but override the pre-allocation size.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultSequence
public DefaultSequence()
DefaultSequence
public DefaultSequence(java.lang.String name)
- Create a new sequence with the name.
DefaultSequence
public DefaultSequence(java.lang.String name,
int size)
- Create a new sequence with the name and sequence pre-allocation size.
DefaultSequence
public DefaultSequence(java.lang.String name,
int size,
int initialValue)
hasPreallocationSize
public boolean hasPreallocationSize()
getPreallocationSize
public int getPreallocationSize()
-
- Overrides:
getPreallocationSize
in class Sequence
getInitialValue
public int getInitialValue()
-
- Overrides:
getInitialValue
in class Sequence
equals
public boolean equals(java.lang.Object obj)
-
- Overrides:
equals
in class Sequence
Skip navigation links