|
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.FeatureIdAssigner
public class FeatureIdAssigner
Responsible for the assigning of valid FeatureId
s which are a prerequisite to the insertion of features in a
Datastore
. For each Insert
operation, a new FeatureIdAssigner
instance is created.
The behaviour of assignFID(Feature, DatastoreTransaction)
} depends on the Insert.ID_GEN
mode in use:
GenerateNew | Prior to the assigning of new feature ids, "equal" features are looked up in the datastore and their feature ids are used. |
UseExisting |
|
ReplaceDuplicate | not supported yet |
DatastoreTransaction.performInsert(List)
Field Summary | |
---|---|
static java.lang.String |
EXISTS_MARKER
if an assigned feature id starts with this, it is already stored |
Constructor Summary | |
---|---|
FeatureIdAssigner(Insert.ID_GEN idGenMode)
Creates a new FeatureIdAssigner instance that generates new feature ids as specified. |
Method Summary | |
---|---|
void |
assignFID(Feature feature,
DatastoreTransaction ta)
Assigns valid FeatureId s to the given feature instance and it's subfeatures. |
void |
markStoredFeatures()
TODO mark stored features a better way |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String EXISTS_MARKER
Constructor Detail |
---|
public FeatureIdAssigner(Insert.ID_GEN idGenMode)
FeatureIdAssigner
instance that generates new feature ids as specified.
idGenMode
- Method Detail |
---|
public void assignFID(Feature feature, DatastoreTransaction ta) throws IdGenerationException
FeatureId
s to the given feature instance and it's subfeatures.
feature
- ta
-
IdGenerationException
public void markStoredFeatures()
|
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