org.jooq.impl
Class SequenceImpl<T extends Number>

java.lang.Object
  extended by org.jooq.impl.SequenceImpl<T>
All Implemented Interfaces:
Serializable, Sequence<T>

public class SequenceImpl<T extends Number>
extends Object
implements Sequence<T>

A common base class for sequences

This type is for JOOQ INTERNAL USE only. Do not reference directly

Author:
Lukas Eder
See Also:
Serialized Form

Constructor Summary
SequenceImpl(String name, Schema schema, DataType<T> type)
           
 
Method Summary
 Field<T> currval()
          Get the current value of this sequence
 DataType<T> getDataType()
          Get the sequence data type
 String getName()
          Get the sequence name
 Schema getSchema()
          Get the sequence schema
 Field<T> nextval()
          Increment the sequence and get the next value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SequenceImpl

public SequenceImpl(String name,
                    Schema schema,
                    DataType<T> type)
Method Detail

getName

public final String getName()
Description copied from interface: Sequence
Get the sequence name

Specified by:
getName in interface Sequence<T extends Number>

getSchema

public final Schema getSchema()
Description copied from interface: Sequence
Get the sequence schema

Specified by:
getSchema in interface Sequence<T extends Number>

getDataType

public final DataType<T> getDataType()
Description copied from interface: Sequence
Get the sequence data type

Specified by:
getDataType in interface Sequence<T extends Number>

currval

public final Field<T> currval()
Description copied from interface: Sequence
Get the current value of this sequence

Specified by:
currval in interface Sequence<T extends Number>

nextval

public final Field<T> nextval()
Description copied from interface: Sequence
Increment the sequence and get the next value

Specified by:
nextval in interface Sequence<T extends Number>


Copyright © 2012. All Rights Reserved.