org.geotools.data
Interface VersioningDataStore

All Superinterfaces:
DataAccess<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>, DataStore
All Known Implementing Classes:
SynchronizedPostgisDataStore, VersionedPostgisDataStore

public interface VersioningDataStore
extends DataStore

A data store that can version enable feature types, and then keep version history for those. TODO: add better docs on how to leverage featureVersion in standard queries, as well as

Author:
Andrea Aime, TOPP

Field Summary
static java.lang.String AUTHOR
          Key used in transaction properties to hold the commit author
static java.lang.String MESSAGE
          Key used in transaction properties to hold the commit message
 
Method Summary
 boolean isVersioned(java.lang.String typeName)
          Returns true if the specified feature type is versioned, false otherwise
 void setVersioned(java.lang.String typeName, boolean versioned, java.lang.String author, java.lang.String message)
          Alters the versioned state of a feature type
 
Methods inherited from interface org.geotools.data.DataStore
getFeatureReader, getFeatureSource, getFeatureWriter, getFeatureWriter, getFeatureWriterAppend, getLockingManager, getSchema, getTypeNames, getView, updateSchema
 
Methods inherited from interface org.geotools.data.DataAccess
createSchema, dispose, getFeatureSource, getInfo, getNames, getSchema, updateSchema
 

Field Detail

AUTHOR

static final java.lang.String AUTHOR
Key used in transaction properties to hold the commit author

See Also:
Constant Field Values

MESSAGE

static final java.lang.String MESSAGE
Key used in transaction properties to hold the commit message

See Also:
Constant Field Values
Method Detail

isVersioned

boolean isVersioned(java.lang.String typeName)
                    throws java.io.IOException
Returns true if the specified feature type is versioned, false otherwise

Parameters:
typeName -
Returns:
Throws:
java.io.IOException

setVersioned

void setVersioned(java.lang.String typeName,
                  boolean versioned,
                  java.lang.String author,
                  java.lang.String message)
                  throws java.io.IOException
Alters the versioned state of a feature type

Parameters:
typeName - the type name that must be changed
versioned - if true, the type gets version enabled, if false versioning is disabled
t - the transaction used to performe version enabling. It shall contain user and commit message as properties.
Throws:
java.io.IOException


Copyright © 1996-2010 Geotools. All Rights Reserved.