org.apache.openjpa.jdbc.meta
Class SequenceMapping

java.lang.Object
  extended by org.apache.openjpa.meta.SequenceMetaData
      extended by org.apache.openjpa.jdbc.meta.SequenceMapping
All Implemented Interfaces:
org.apache.openjpa.lib.meta.SourceTracker, org.apache.openjpa.lib.util.Closeable, org.apache.openjpa.lib.xml.Commentable, org.apache.openjpa.meta.MetaDataContext

public class SequenceMapping
extends org.apache.openjpa.meta.SequenceMetaData

Specialization of sequence metadata for ORM.

Author:
Abe White

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.openjpa.meta.SequenceMetaData
org.apache.openjpa.meta.SequenceMetaData.SequenceFactory
 
Field Summary
static java.lang.String IMPL_CLASS_TABLE
          ClassTableJDBCSeq alias.
static java.lang.String IMPL_TABLE
          TableJDBCSeq alias.
static java.lang.String IMPL_VALUE_TABLE
          ValueTableJDBCSeq alias.
 
Fields inherited from class org.apache.openjpa.meta.SequenceMetaData
IMPL_NATIVE, IMPL_TIME, NAME_SYSTEM
 
Fields inherited from interface org.apache.openjpa.lib.meta.SourceTracker
SRC_ANNOTATIONS, SRC_OTHER, SRC_XML
 
Fields inherited from interface org.apache.openjpa.lib.xml.Commentable
EMPTY_COMMENTS
 
Constructor Summary
SequenceMapping(java.lang.String name, MappingRepository repos)
           
 
Method Summary
protected  void addStandardProperties(java.lang.StringBuffer props)
           
 java.io.File getMappingFile()
          Allow sequence to have a mapping file separate from its metadata source file.
 java.lang.String getPrimaryKeyColumn()
          Name of primary key column, if any.
 java.lang.String getPrimaryKeyValue()
          Primary key value, if not auto-determined.
 java.lang.String getSequenceColumn()
          Name of sequence column, if any.
 java.lang.String getTable()
          Name of sequence table, if any.
protected  org.apache.openjpa.lib.conf.PluginValue newPluginValue(java.lang.String property)
           
 void setMappingFile(java.io.File file)
          Allow sequence to have a mapping file separate from its metadata source file.
 void setPrimaryKeyColumn(java.lang.String primaryKeyColumn)
          Name of primary key column, if any.
 void setPrimaryKeyValue(java.lang.String primaryKeyValue)
          Primary key value, if not auto-determined.
 void setSequenceColumn(java.lang.String sequenceColumn)
          Name of sequence column, if any.
 void setTable(java.lang.String table)
          Name of sequence table, if any.
 
Methods inherited from class org.apache.openjpa.meta.SequenceMetaData
appendProperty, appendProperty, close, getAllocate, getComments, getIncrement, getInitialValue, getInstance, getName, getRepository, getResourceName, getSequence, getSequenceFactory, getSequencePlugin, getSourceFile, getSourceScope, getSourceType, getType, instantiate, setAllocate, setComments, setIncrement, setInitialValue, setSequence, setSequenceFactory, setSequencePlugin, setSource, setType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

IMPL_VALUE_TABLE

public static final java.lang.String IMPL_VALUE_TABLE
ValueTableJDBCSeq alias.

See Also:
Constant Field Values

IMPL_TABLE

public static final java.lang.String IMPL_TABLE
TableJDBCSeq alias.

See Also:
Constant Field Values

IMPL_CLASS_TABLE

public static final java.lang.String IMPL_CLASS_TABLE
ClassTableJDBCSeq alias.

See Also:
Constant Field Values
Constructor Detail

SequenceMapping

public SequenceMapping(java.lang.String name,
                       MappingRepository repos)
Method Detail

getMappingFile

public java.io.File getMappingFile()
Allow sequence to have a mapping file separate from its metadata source file.


setMappingFile

public void setMappingFile(java.io.File file)
Allow sequence to have a mapping file separate from its metadata source file.


getTable

public java.lang.String getTable()
Name of sequence table, if any.


setTable

public void setTable(java.lang.String table)
Name of sequence table, if any.


getSequenceColumn

public java.lang.String getSequenceColumn()
Name of sequence column, if any.


setSequenceColumn

public void setSequenceColumn(java.lang.String sequenceColumn)
Name of sequence column, if any.


getPrimaryKeyColumn

public java.lang.String getPrimaryKeyColumn()
Name of primary key column, if any.


setPrimaryKeyColumn

public void setPrimaryKeyColumn(java.lang.String primaryKeyColumn)
Name of primary key column, if any.


getPrimaryKeyValue

public java.lang.String getPrimaryKeyValue()
Primary key value, if not auto-determined.


setPrimaryKeyValue

public void setPrimaryKeyValue(java.lang.String primaryKeyValue)
Primary key value, if not auto-determined.


newPluginValue

protected org.apache.openjpa.lib.conf.PluginValue newPluginValue(java.lang.String property)
Overrides:
newPluginValue in class org.apache.openjpa.meta.SequenceMetaData

addStandardProperties

protected void addStandardProperties(java.lang.StringBuffer props)
Overrides:
addStandardProperties in class org.apache.openjpa.meta.SequenceMetaData


Copyright © 2006 Apache Software Foundation. All Rights Reserved.