|
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.Objectorg.deegree.io.datastore.idgenerator.IdGenerator
public abstract class IdGenerator
Abstract base class for generators that are used to create primary keys (especially FeatureIds).
| Field Summary | |
|---|---|
protected MappedFeatureType |
ft
MappedFeatureType that this generator is bound to. |
protected java.util.Properties |
params
Configuration properties. |
static java.lang.String |
TYPE_UUID
Default generator type based on UUIDs. |
| Constructor Summary | |
|---|---|
protected |
IdGenerator(java.util.Properties params)
Creates a new IdGenerator instance. |
| Method Summary | |
|---|---|
static IdGenerator |
getInstance(java.lang.String type,
java.util.Properties params)
Returns a concrete IdGenerator instance which is identified by the given type code. |
abstract java.lang.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 java.lang.String TYPE_UUID
protected java.util.Properties params
protected MappedFeatureType ft
MappedFeatureType that this generator is bound to.
| Constructor Detail |
|---|
protected IdGenerator(java.util.Properties params)
IdGenerator instance.
params - configuration parameters| Method Detail |
|---|
public abstract java.lang.Object getNewId(DatastoreTransaction ta)
throws IdGenerationException
ta - datastore transaction (context)
IdGenerationException - if the generation of the id could not be performed
public abstract FeatureId getNewId(MappedFeatureType ft,
DatastoreTransaction ta)
throws IdGenerationException
ft - feature typeta - datastore transaction (context)
IdGenerationException
public static final IdGenerator getInstance(java.lang.String type,
java.util.Properties params)
IdGenerator instance which is identified by the given type code.
type - type codeparams - initialization parameters for the IdGenerator
|
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