deegree 2.3 (2010/04/09 10:10 build-4-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
 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 - if for some reason a problem was encountered

deegree 2.3 (2010/04/09 10:10 build-4-official)

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