|
deegree 2.2 (2008/12/22 11:33 build-3038-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.io.datastore.idgenerator.IdGenerator
org.deegree.io.datastore.sql.idgenerator.DBSeqIdGenerator
public class DBSeqIdGenerator
Feature id generator that uses an SQL sequence to create new values.
| Field Summary |
|---|
| Fields inherited from class org.deegree.io.datastore.idgenerator.IdGenerator |
|---|
ft, params, TYPE_UUID |
| Constructor Summary | |
|---|---|
DBSeqIdGenerator(Properties params)
Creates a new DBSeqIdGenerator instance. |
|
| Method Summary | |
|---|---|
Object |
getNewId(DatastoreTransaction ta)
Returns a new primary key. |
FeatureId |
getNewId(MappedFeatureType ft,
DatastoreTransaction ta)
Returns a new id for a feature of the given type. |
String |
getSequenceName()
Returns the name of the used sequence. |
| Methods inherited from class org.deegree.io.datastore.idgenerator.IdGenerator |
|---|
getInstance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DBSeqIdGenerator(Properties params)
throws IdGenerationException
DBSeqIdGenerator instance.
Supported configuration parameters:
| Name | optional? | Usage |
|---|---|---|
| sequence | no | name of the SQL sequence to be used |
params - configuration parameters
IdGenerationException| Method Detail |
|---|
public String getSequenceName()
public Object getNewId(DatastoreTransaction ta)
throws IdGenerationException
getNewId in class IdGeneratorta - datastore transaction (context)
IdGenerationException - if the generation of the id could not be performed
public FeatureId getNewId(MappedFeatureType ft,
DatastoreTransaction ta)
throws IdGenerationException
getNewId in class IdGeneratorft - (mapped) feature typeta - datastore transaction (context)
IdGenerationException - if the generation of the id could not be performed
|
deegree 2.2 (2008/12/22 11:33 build-3038-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://deegree.sourceforge.net