|
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.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(java.util.Properties params)
Creates a new DBSeqIdGenerator instance. |
Method Summary | |
---|---|
java.lang.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. |
java.lang.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(java.util.Properties params) throws IdGenerationException
DBSeqIdGenerator
instance.
Supported configuration parameters:
Name | optional? | Usage |
---|---|---|
sequence | no | name of the SQL sequence to be used |
offset | yes | integer value, if omitted the next value of the sequence is used (default) otherwise the current value + offset is used |
params
- configuration parameters
IdGenerationException
Method Detail |
---|
public java.lang.String getSequenceName()
public java.lang.Object getNewId(DatastoreTransaction ta) throws IdGenerationException
getNewId
in class IdGenerator
ta
- datastore transaction (context)
IdGenerationException
- if the generation of the id could not be performedpublic FeatureId getNewId(MappedFeatureType ft, DatastoreTransaction ta) throws IdGenerationException
getNewId
in class IdGenerator
ft
- (mapped) feature typeta
- datastore transaction (context)
IdGenerationException
- if the generation of the id could not be performed
|
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