Overview | Package | Class | Tree | Serialized | Deprecated | Index | Help
| SolarMetric Kodo JDO 2.4.3 generated on March 27 2003
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.

  - -properties <properties file>: the path to a Kodo properties file containing information such as the license key and connection data as outlined in `Configuration`; optional
  - -ignoreErrors <true|false>: if false, an exception will will be thrown if the tool encounters any database exceptions; defaults to `false`
  - -<bean property> <value>: all bean properties of the Kodo `JDBCConfiguration` can be set by using their names and supplying a value; for example: `-licenseKey adslfja83r3lkadf`
  - -class <className>: The classname increment ids for. Required for -action increment

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

Overview | Package | Class | Tree | Serialized | Deprecated | Index | Help
| SolarMetric Kodo JDO 2.4.3 generated on March 27 2003
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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