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).

Since:
1.1
Version:
$Revision: 1.12 $
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(MetaData parent, java.lang.String name, java.lang.String datastoreSequence, java.lang.String factoryClass, java.lang.String strategyValue, java.lang.String initialValue, java.lang.String allocationSize)
          Constructor.
 
Method Summary
 long getAllocationSize()
          Accessor for the allocation size of the sequence.
 java.lang.String getDatastoreSequence()
          Accessor for the sequence name
 java.lang.String getFactoryClass()
          Accessor for the factory class
 java.lang.String getFullyQualifiedName()
          Convenience accessor for the fully-qualified name of the sequence.
 long getInitialValue()
          Accessor for the initial value of the sequence.
 java.lang.String getName()
          Accessor for the class name.
 SequenceStrategy getStrategy()
          Accessor for the 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, getExtensions, getNoOfExtensions, getParent, getValueForExtension, getValuesForExtension, hasExtension, initialise, isInitialised, isPopulated, isUsed, removeExtension, setInitialised, setParent, setPopulated, setUsed, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected final 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(MetaData parent,
                        java.lang.String name,
                        java.lang.String datastoreSequence,
                        java.lang.String factoryClass,
                        java.lang.String strategyValue,
                        java.lang.String initialValue,
                        java.lang.String allocationSize)
Constructor.

Parameters:
parent - The parent of this element
name - The sequence name
datastoreSequence - The datastore sequence
factoryClass - The factory class
strategyValue - The strategy value
initialValue - Initial value
allocationSize - Allocation size
Method Detail

getFullyQualifiedName

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

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

getName

public java.lang.String getName()
Accessor for the class name.

Returns:
class name

getStrategy

public SequenceStrategy getStrategy()
Accessor for the strategy

Returns:
strategy tag value

getDatastoreSequence

public java.lang.String getDatastoreSequence()
Accessor for the sequence name

Returns:
The sequence name

getFactoryClass

public java.lang.String getFactoryClass()
Accessor for the factory class

Returns:
factory class

getInitialValue

public long getInitialValue()
Accessor for the initial value of the sequence.

Returns:
The initial value

getAllocationSize

public long getAllocationSize()
Accessor for the allocation size of the sequence.

Returns:
The allocation size

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 © 2009. All Rights Reserved.