|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.io.GenericSQLIDGenerator
class GenericSQLIDGenerator
Primary key generator for generic JDBC-connections.
NOTE: At the moment, every application has to take care of locking the table to prevent problems in multithreaded or multihosted applications.
Field Summary | |
---|---|
(package private) java.sql.Connection |
con
|
(package private) java.lang.String |
fieldName
|
(package private) int |
fieldType
|
(package private) boolean |
isNumeric
|
(package private) java.lang.String |
tableName
|
Constructor Summary | |
---|---|
GenericSQLIDGenerator(java.sql.Connection con,
java.lang.String tableName,
java.lang.String fieldName,
int fieldType,
boolean isNumeric)
Constructs a new GenericSQLIDGenerator. |
Method Summary | |
---|---|
java.lang.Object |
generateUniqueId()
Generates a new id, suitable as a primary key for the next dataset. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
java.sql.Connection con
int fieldType
boolean isNumeric
java.lang.String tableName
java.lang.String fieldName
Constructor Detail |
---|
GenericSQLIDGenerator(java.sql.Connection con, java.lang.String tableName, java.lang.String fieldName, int fieldType, boolean isNumeric)
con
- fieldType
- Method Detail |
---|
public java.lang.Object generateUniqueId() throws java.sql.SQLException
generateUniqueId
in interface DataBaseIDGenerator
java.sql.SQLException
- if for some reason a problem was encountered
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org