com.solarmetric.kodo.impl.jdbc.schema
Class AutoIncrementSequenceFactory
java.lang.Object
|
+--com.solarmetric.kodo.impl.jdbc.schema.AbstractSequenceFactory
|
+--com.solarmetric.kodo.impl.jdbc.schema.AutoIncrementSequenceFactory
- All Implemented Interfaces:
- SequenceFactory, Serializable
- public class AutoIncrementSequenceFactory
- extends AbstractSequenceFactory
A SequenceFactory implementation that can deal with
auto-incrementing primary keys for some databases.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AutoIncrementSequenceFactory
public AutoIncrementSequenceFactory()
getNext
public long getNext(Class cls,
Connector connector)
throws Exception
- Obtains the next sequence number by delegating to the
DBDictionary.getNextAutoIncrementValue(com.solarmetric.kodo.impl.jdbc.schema.Table, com.solarmetric.kodo.impl.jdbc.SQLExecutionManager) method. Note that
the DBDictionary must contain support for auto-increment
sequences for this to work.
Copyright 2001,2002,2003 SolarMetric, Inc. All Rights Reserved.