|
deegree 2.3 (2010/04/09 10:10 build-4-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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) Connection |
con
|
(package private) String |
fieldName
|
(package private) int |
fieldType
|
(package private) boolean |
isNumeric
|
(package private) String |
tableName
|
| Constructor Summary | |
|---|---|
GenericSQLIDGenerator(Connection con,
String tableName,
String fieldName,
int fieldType,
boolean isNumeric)
Constructs a new GenericSQLIDGenerator. |
|
| Method Summary | |
|---|---|
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 |
|---|
Connection con
int fieldType
boolean isNumeric
String tableName
String fieldName
| Constructor Detail |
|---|
GenericSQLIDGenerator(Connection con,
String tableName,
String fieldName,
int fieldType,
boolean isNumeric)
con - fieldType - | Method Detail |
|---|
public Object generateUniqueId()
throws SQLException
generateUniqueId in interface DataBaseIDGeneratorSQLException - if for some reason a problem was encountered
|
deegree 2.3 (2010/04/09 10:10 build-4-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