deegree 2.5 (2011/06/29 09:44 build-8-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: 18195 $ $Date: 2009-06-18 17:55:39 +0200 (Do, 18 Jun 2009) $
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

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 - if for some reason a problem was encountered

deegree 2.5 (2011/06/29 09:44 build-8-official)

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