com.solarmetric.kodo.impl.jdbc
Interface SequenceFactory
- All Superinterfaces:
- Serializable
- All Known Implementing Classes:
- DBSequenceFactory, TrueSequenceFactory, ClassSequenceFactory
- public interface SequenceFactory
- extends Serializable
An implementation of the SequenceFactory interface is used to generate
unique primary key values for newly persisted JDO instances.
SequenceFactories must be serializable so that the PersistenceManagerFactory
can retain them when stored in JNDI.
setConfiguration
public void setConfiguration(JDBCConfiguration conf,
DBDictionary dict)
- Set the configuration for this factory; allows access to database
connection information, etc.
getNext
public long getNext(Class cls,
Connector connector)
throws Exception
- Return a unique primary key value for the given class.
Copyright 2001,2002 SolarMetric, Inc. All Rights Reserved.