javax.jdo.annotations
Annotation Type Sequence


@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface Sequence

Annotation for a datastore sequence. Maps across to the JDO2 element "sequence".

Since:
2.1
Version:
2.1

Required Element Summary
 java.lang.String name
          The symbolic name of the datastore sequence.
 SequenceStrategy strategy
          Strategy for the sequence.
 
Optional Element Summary
 java.lang.String datastoreSequence
          Name of the sequence in the datastore.
 Extension[] extensions
          Vendor extensions for this sequence.
 java.lang.Class factoryClass
          Name of a factory class for generating the sequence values.
 

Element Detail

name

public abstract java.lang.String name
The symbolic name of the datastore sequence.

Returns:
the name of the sequence

strategy

public abstract SequenceStrategy strategy
Strategy for the sequence.

Returns:
the strategy for the sequence

datastoreSequence

public abstract java.lang.String datastoreSequence
Name of the sequence in the datastore.

Returns:
the name of the datastore sequence
Default:
""

factoryClass

public abstract java.lang.Class factoryClass
Name of a factory class for generating the sequence values.

Returns:
the name of the factory class for the sequence
Default:
void.class

extensions

public abstract Extension[] extensions
Vendor extensions for this sequence.

Returns:
vendor extensions
Default:
{}


Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.