SolarMetric Kodo JDO 2.4.3 generated on March 27 2003

com.solarmetric.kodo.impl.jdbc.schema
Class ClassDBSequenceFactory

java.lang.Object
  |
  +--com.solarmetric.kodo.impl.jdbc.schema.DBSequenceFactory
        |
        +--com.solarmetric.kodo.impl.jdbc.schema.ClassDBSequenceFactory
All Implemented Interfaces:
SequenceFactory, Serializable

public class ClassDBSequenceFactory
extends DBSequenceFactory

DBSequenceFactory subclass that overrides methods to be class sensitive. Kept as a subclass to maintain DBSequenceFactory efficiency. The table is automatically created if not already present.

The table this plugin uses is not compatible with the one from DBSequenceFactory

See Also:
Serialized Form

Constructor Summary
ClassDBSequenceFactory()
           
 
Method Summary
 long getNext(Class cls, Connector connector)
          Return a unique primary key value for the given class.
static void main(String[] args)
          Usage: java com.solarmetric.kodo.impl.jdbc.schema.ClassDBSequenceFactory [option]* -action <add | drop | increment> -class classname
 
Methods inherited from class com.solarmetric.kodo.impl.jdbc.schema.DBSequenceFactory
dropTable, getIncrement, getTableName, setConfiguration, setIncrement, setTableName
 
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

getNext

public long getNext(Class cls,
                    Connector connector)
             throws SQLException
Description copied from interface: SequenceFactory
Return a unique primary key value for the given class.
Overrides:
getNext in class DBSequenceFactory

main

public static void main(String[] args)
                 throws SQLException

Usage: java com.solarmetric.kodo.impl.jdbc.schema.ClassDBSequenceFactory [option]* -action <add | drop | increment> -class classname

Where the following options are recognized.

If the license key is not specified otherwise, Kodo will check for default preference files with license keys as outlined in DefaultConfiguration.


SolarMetric Kodo JDO 2.4.3 generated on March 27 2003

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