|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.jdbc.schema.Sequence
public class Sequence
Represents a database sequence.
Field Summary |
---|
Fields inherited from interface org.apache.openjpa.lib.meta.SourceTracker |
---|
SRC_ANNOTATIONS, SRC_OTHER, SRC_XML |
Constructor Summary | |
---|---|
Sequence()
Default constructor. |
|
Sequence(String name,
Schema schema)
Constructor. |
Method Summary | |
---|---|
int |
compareTo(Object other)
|
void |
deref()
|
int |
getAllocate()
The sequence's cache size. |
String |
getFullName()
Return the sequence name, including schema, using '.' as the catalog separator. |
int |
getIncrement()
The sequence's increment. |
int |
getInitialValue()
The sequence's initial value. |
String |
getName()
Return the name of the sequence. |
int |
getRefCount()
|
String |
getResourceName()
Return the domain-meaningful name of the resource that was loaded from this source. |
Schema |
getSchema()
Return the schema for the sequence. |
String |
getSchemaName()
The sequence's schema name. |
File |
getSourceFile()
Return the file from which this instance was parsed. |
Object |
getSourceScope()
Return the domain-dependent scope of this instance within its file. |
int |
getSourceType()
Return the type of source. |
void |
ref()
|
void |
setAllocate(int cache)
The sequence's cache size. |
void |
setIncrement(int increment)
The sequence's increment. |
void |
setInitialValue(int initial)
The sequence's initial value. |
void |
setName(String name)
Set the name of the sequence. |
void |
setSchemaName(String name)
The sequence's schema name. |
void |
setSource(File source,
int srcType)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Sequence()
public Sequence(String name, Schema schema)
name
- the sequence nameschema
- the sequence schemaMethod Detail |
---|
public Schema getSchema()
public String getSchemaName()
public void setSchemaName(String name)
public String getName()
public void setName(String name)
public String getFullName()
public int getInitialValue()
public void setInitialValue(int initial)
public int getIncrement()
public void setIncrement(int increment)
public int getAllocate()
public void setAllocate(int cache)
public File getSourceFile()
SourceTracker
getSourceFile
in interface SourceTracker
public Object getSourceScope()
SourceTracker
getSourceScope
in interface SourceTracker
public int getSourceType()
SourceTracker
getSourceType
in interface SourceTracker
public void setSource(File source, int srcType)
public String getResourceName()
SourceTracker
getResourceName
in interface SourceTracker
public int compareTo(Object other)
compareTo
in interface Comparable
public String toString()
toString
in class Object
public int getRefCount()
public void ref()
public void deref()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |