Save This Page
Home » apache-openjpa-1.1.0-source » org.apache.openjpa.jdbc » schema » [javadoc | source]
org.apache.openjpa.jdbc.schema
public class: Sequence [javadoc | source]
java.lang.Object
   org.apache.openjpa.jdbc.schema.ReferenceCounter
      org.apache.openjpa.jdbc.schema.Sequence

All Implemented Interfaces:
    SourceTracker, Comparable, Serializable

Represents a database sequence.
Constructor:
 public Sequence() 
 public Sequence(String name,
    Schema schema) 
    Constructor.
    Parameters:
    name - the sequence name
    schema - the sequence schema
Method from org.apache.openjpa.jdbc.schema.Sequence Summary:
compareTo,   getAllocate,   getFullName,   getIncrement,   getInitialValue,   getName,   getResourceName,   getSchema,   getSchemaName,   getSourceFile,   getSourceScope,   getSourceType,   remove,   setAllocate,   setIncrement,   setInitialValue,   setName,   setSchemaName,   setSource,   toString
Methods from org.apache.openjpa.jdbc.schema.ReferenceCounter:
deref,   getRefCount,   ref
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.openjpa.jdbc.schema.Sequence Detail:
 public int compareTo(Object other) 
 public int getAllocate() 
    The sequence's cache size.
 public String getFullName() 
    Return the sequence name, including schema, using '.' as the catalog separator.
 public int getIncrement() 
    The sequence's increment.
 public int getInitialValue() 
    The sequence's initial value.
 public String getName() 
    Return the name of the sequence.
 public String getResourceName() 
 public Schema getSchema() 
    Return the schema for the sequence.
 public String getSchemaName() 
    The sequence's schema name.
 public File getSourceFile() 
 public Object getSourceScope() 
 public int getSourceType() 
  void remove() 
    Called when the sequence is removed from its schema.
 public  void setAllocate(int cache) 
    The sequence's cache size.
 public  void setIncrement(int increment) 
    The sequence's increment.
 public  void setInitialValue(int initial) 
    The sequence's initial value.
 public  void setName(String name) 
    Set the name of the sequence. This method can only be called on sequences that are not part of a schema.
 public  void setSchemaName(String name) 
    The sequence's schema name. You can only call this method on sequences whose schema object is not set.
 public  void setSource(File source,
    int srcType) 
 public String toString()