|
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
public abstract class IdGenerator
Abstract base class for generators that are used to create primary keys (especially
FeatureId
s).
Field Summary | |
---|---|
protected MappedFeatureType |
ft
|
protected Properties |
params
|
static String |
TYPE_UUID
Default generator type based on UUIDs. |
Constructor Summary | |
---|---|
protected |
IdGenerator(Properties params)
Creates a new IdGenerator instance. |
Method Summary | |
---|---|
static IdGenerator |
getInstance(String type,
Properties params)
Returns a concrete IdGenerator instance which is identified by the given type
code. |
abstract Object |
getNewId(DatastoreTransaction ta)
Returns a new primary key. |
abstract FeatureId |
getNewId(MappedFeatureType ft,
DatastoreTransaction ta)
Returns a new id for a feature of the given type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static String TYPE_UUID
protected Properties params
protected MappedFeatureType ft
Constructor Detail |
---|
protected IdGenerator(Properties params)
IdGenerator
instance.
params
- configuration parametersMethod Detail |
---|
public abstract Object getNewId(DatastoreTransaction ta) throws IdGenerationException
ta
- datastore transaction (context)
IdGenerationException
- if the generation of the id could not be performedpublic abstract FeatureId getNewId(MappedFeatureType ft, DatastoreTransaction ta) throws IdGenerationException
ft
- feature typeta
- datastore transaction (context)
IdGenerationException
public static final IdGenerator getInstance(String type, Properties params)
IdGenerator
instance which is identified by the given type
code.
type
- type codeparams
- initialization parameters for the IdGenerator
|
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