com.objectwave.persist
Interface PrimaryKeyStrategy
- All Known Implementing Classes:
- GlobalSequence, SelectAndUpdate, TableSequence
- public interface PrimaryKeyStrategy
Implement this interface if the code is to assist with the creation with the
generation of PrimaryKeyValues.
- Version:
- $Id: PrimaryKeyStrategy.java,v 2.0 2001/06/11 16:00:03 dave_hoag Exp $
- Author:
- dhoag
nextPrimaryKey
public java.lang.Object nextPrimaryKey(RDBBroker broker,
RDBPersistence pObj)
throws java.sql.SQLException,
QueryException
- Calls to this method should never return the same value. When this method
is called, the broker assumes the value returned will create a unique
primary key value that can identify a unique row in the database.
- Parameters:
broker
- pObj
-
- Returns:
-
- Throws:
java.sql.SQLException
QueryException