SolarMetric Kodo JDO 3.0.3 generated on February 20 2004

kodo.jdbc.schema
Class ClassDBSequenceFactory

java.lang.Object
  |
  +--kodo.jdbc.schema.DBSequenceFactory
        |
        +--kodo.jdbc.schema.ClassDBSequenceFactory
All Implemented Interfaces:
Configurable, SequenceFactory

public class ClassDBSequenceFactory
extends DBSequenceFactory

Specialization of the DBSequenceFactory that maintains a separate sequence count per-class.


Inner classes inherited from class kodo.jdbc.schema.DBSequenceFactory
DBSequenceFactory.Seq
 
Fields inherited from class kodo.jdbc.schema.DBSequenceFactory
ACTION_ADD, ACTION_DROP, ACTION_INCREMENT
 
Constructor Summary
ClassDBSequenceFactory()
           
 
Method Summary
protected  Column addPrimaryKeyColumn(Table table)
          Add the primary key column to the given table and return it.
protected  Object getPrimaryKey(ClassMapping mapping)
          Return the primary key value for the given mapping.
protected  DBSequenceFactory.Seq getSeq(ClassMapping mapping)
          Return the appropriate sequence info object for the given mapping.
 
Methods inherited from class kodo.jdbc.schema.DBSequenceFactory
addSchema, dropTable, endConfiguration, getConfiguration, getConnection, getIncrement, getNext, getPrimaryKeyColumn, getSequenceColumn, getTableName, main, refreshTable, run, run, setConfiguration, setIncrement, setPrimaryKeyColumn, setSequenceColumn, setTableName, startConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassDBSequenceFactory

public ClassDBSequenceFactory()
Method Detail

getSeq

protected DBSequenceFactory.Seq getSeq(ClassMapping mapping)
Description copied from class: DBSequenceFactory
Return the appropriate sequence info object for the given mapping.
Overrides:
getSeq in class DBSequenceFactory

addPrimaryKeyColumn

protected Column addPrimaryKeyColumn(Table table)
Description copied from class: DBSequenceFactory
Add the primary key column to the given table and return it.
Overrides:
addPrimaryKeyColumn in class DBSequenceFactory

getPrimaryKey

protected Object getPrimaryKey(ClassMapping mapping)
Description copied from class: DBSequenceFactory
Return the primary key value for the given mapping.
Overrides:
getPrimaryKey in class DBSequenceFactory

SolarMetric Kodo JDO 3.0.3 generated on February 20 2004

Copyright 2001,2002 SolarMetric, Inc. All Rights Reserved.