Oracle Fusion Middleware Java API Reference for Oracle TopLink
11g Release 1 (11.1.1)

B32476-03

oracle.toplink.sequencing
Class DefaultSequence

java.lang.Object
  extended by oracle.toplink.sequencing.Sequence
      extended by 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

Constructor Summary
DefaultSequence()
           
DefaultSequence(java.lang.String name)
          Create a new sequence with the name.
DefaultSequence(java.lang.String name, int size)
          Create a new sequence with the name and sequence pre-allocation size.
DefaultSequence(java.lang.String name, int size, int initialValue)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int getInitialValue()
           
 int getPreallocationSize()
           
 boolean hasPreallocationSize()
           
 
Methods inherited from class oracle.toplink.sequencing.Sequence
clone, getDatasourcePlatform, getName, isConnected, isNative, isTable, isUnaryTable, setInitialValue, setName, setPreallocationSize
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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

Copyright © 1998, 2010, Oracle. All Rights Reserved.