SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool

com.solarmetric.rd.kodo.impl.jdbc.schema
Interface SequenceFactory

All Known Implementing Classes:
ClassSequenceFactory, DBSequenceFactory, TrueSequenceFactory

public interface SequenceFactory

An implementation of the SequenceFactory interface is used to generate unique primary key values for newly persisted JDO instances. Multiple SequenceFactories may be used during the lifetime of a JDO application.


Method Summary
 long getNext(java.lang.Class cls, java.lang.String user, java.lang.String pass)
          Return a unique primary key value.
 void setConfiguration(com.solarmetric.rd.kodo.impl.jdbc.conf.JDBCConfiguration conf)
          Set the configuration for this factory; allows access to database connection information, etc.
 

Method Detail

setConfiguration

public void setConfiguration(com.solarmetric.rd.kodo.impl.jdbc.conf.JDBCConfiguration conf)
Set the configuration for this factory; allows access to database connection information, etc.


getNext

public long getNext(java.lang.Class cls,
                    java.lang.String user,
                    java.lang.String pass)
Return a unique primary key value.

Parameters:
cls - the class of the object being persisted
user - the authentication information for connecting to the database
pass - the authentication information for connecting to the database
Throws:
javax.jdo.JDOException, - or some subclass

SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool

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