org.datanucleus.metadata
Class SequenceMetaData

java.lang.Object
  extended by org.datanucleus.metadata.MetaData
      extended by org.datanucleus.metadata.SequenceMetaData
All Implemented Interfaces:
java.io.Serializable

public class SequenceMetaData
extends MetaData

Representation of the MetaData of a named Sequence (JDO, or JPA).

See Also:
Serialized Form

Field Summary
protected  long allocationSize
          Allocation size for the sequence.
protected  java.lang.String datastoreSequence
          Datastore Sequence name
protected  java.lang.String factoryClass
          factory class name (JDO).
protected  long initialValue
          Initial value of the sequence.
protected  java.lang.String name
          Name under which this sequence generator is known.
protected  SequenceStrategy strategy
          Strategy for this sequence (JDO).
 
Fields inherited from class org.datanucleus.metadata.MetaData
extensions, LOCALISER, METADATA_CREATED_STATE, METADATA_INITIALISED_STATE, METADATA_POPULATED_STATE, METADATA_USED_STATE, metaDataState, parent, VENDOR_NAME, VENDOR_NAME_OLD
 
Constructor Summary
SequenceMetaData(java.lang.String name, java.lang.String strategyValue)
          Constructor.
 
Method Summary
 long getAllocationSize()
           
 java.lang.String getDatastoreSequence()
           
 java.lang.String getFactoryClass()
           
 java.lang.String getFullyQualifiedName()
          Convenience accessor for the fully-qualified name of the sequence.
 long getInitialValue()
           
 java.lang.String getName()
           
 SequenceStrategy getStrategy()
           
 SequenceMetaData setAllocationSize(long allocationSize)
           
 SequenceMetaData setAllocationSize(java.lang.String allocationSize)
           
 SequenceMetaData setDatastoreSequence(java.lang.String datastoreSequence)
           
 SequenceMetaData setFactoryClass(java.lang.String factoryClass)
           
 SequenceMetaData setInitialValue(long initialValue)
           
 SequenceMetaData setInitialValue(java.lang.String initialValue)
           
 SequenceMetaData setName(java.lang.String name)
           
 SequenceMetaData setStrategy(SequenceStrategy strategy)
           
 java.lang.String toString(java.lang.String prefix, java.lang.String indent)
          Returns a string representation of the object.
 
Methods inherited from class org.datanucleus.metadata.MetaData
addExtension, addExtension, assertIfInitialised, getExtensions, getNoOfExtensions, getParent, getValueForExtension, getValuesForExtension, hasExtension, initialise, isInitialised, isPopulated, isUsed, newExtensionMetaData, removeExtension, setParent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected java.lang.String name
Name under which this sequence generator is known.


datastoreSequence

protected java.lang.String datastoreSequence
Datastore Sequence name


factoryClass

protected java.lang.String factoryClass
factory class name (JDO).


strategy

protected SequenceStrategy strategy
Strategy for this sequence (JDO).


initialValue

protected long initialValue
Initial value of the sequence.


allocationSize

protected long allocationSize
Allocation size for the sequence.

Constructor Detail

SequenceMetaData

public SequenceMetaData(java.lang.String name,
                        java.lang.String strategyValue)
Constructor.

Parameters:
name - The sequence name
strategyValue - The strategy value
Method Detail

getFullyQualifiedName

public java.lang.String getFullyQualifiedName()
Convenience accessor for the fully-qualified name of the sequence.

Returns:
Fully-qualified name of the sequence (including the package name).

getName

public java.lang.String getName()

setName

public SequenceMetaData setName(java.lang.String name)

getStrategy

public SequenceStrategy getStrategy()

setStrategy

public SequenceMetaData setStrategy(SequenceStrategy strategy)

getDatastoreSequence

public java.lang.String getDatastoreSequence()

setDatastoreSequence

public SequenceMetaData setDatastoreSequence(java.lang.String datastoreSequence)

getFactoryClass

public java.lang.String getFactoryClass()

setFactoryClass

public SequenceMetaData setFactoryClass(java.lang.String factoryClass)

getInitialValue

public long getInitialValue()

setInitialValue

public SequenceMetaData setInitialValue(long initialValue)

setInitialValue

public SequenceMetaData setInitialValue(java.lang.String initialValue)

getAllocationSize

public long getAllocationSize()

setAllocationSize

public SequenceMetaData setAllocationSize(long allocationSize)

setAllocationSize

public SequenceMetaData setAllocationSize(java.lang.String allocationSize)

toString

public java.lang.String toString(java.lang.String prefix,
                                 java.lang.String indent)
Returns a string representation of the object.

Overrides:
toString in class MetaData
Parameters:
prefix - prefix string
indent - indent string
Returns:
a string representation of the object.


Copyright © 2010. All Rights Reserved.