|
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.FeatureIdAssigner
public class FeatureIdAssigner
Responsible for the assigning of valid FeatureIds 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 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 FeatureIds 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 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
FeatureIds to the given feature instance and it's subfeatures.
feature - ta -
IdGenerationExceptionpublic void markStoredFeatures()
|
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