org.deegree.tools
Interface IDGenerator

All Known Implementing Classes:
GenericSQLIDGenerator

public interface IDGenerator

This interface defines a generator for unique values for the primary key in a database table.

NOTE: At the moment, every application has to take care of locking the table to prevent problems in multithreaded or multihosted applications.

Version:
$Revision: 1.2 $ $Date: 2004/03/12 15:56:46 $
Author:
Markus Schneider Markus Schneider

Method Summary
 java.lang.Object generateUniqueId()
          Generates a new Id, suitable as a primary key for the next dataset.
 

Method Detail

generateUniqueId

public java.lang.Object generateUniqueId()
                                  throws java.sql.SQLException
Generates a new Id, suitable as a primary key for the next dataset.

Returns:
Id, the object type depends on the database field used as primary key
Throws:
java.sql.SQLException