deegree 2.2 (2008/12/22 11:33 build-3038-official)

org.deegree.framework.util
Interface DataBaseIDGenerator

All Known Implementing Classes:
GenericSQLIDGenerator

public interface DataBaseIDGenerator

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: 9339 $ $Date: 2007-12-27 13:31:52 +0100 (Do, 27 Dez 2007) $
Author:
Markus Schneider Markus Schneider

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

Method Detail

generateUniqueId

Object generateUniqueId()
                        throws 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:
SQLException

deegree 2.2 (2008/12/22 11:33 build-3038-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net