public class PostgisFeatureFactory extends AbstractFeatureFactory<PostgisFeature,SimpleFeatureServiceSqlStatement>
FeatureFactory.TooManyFeaturesException| Modifier and Type | Field and Description |
|---|---|
protected de.cismet.tools.ConnectionInfo |
connectionInfo |
static String |
ID_TOKEN |
protected RetrievalService |
parentService |
protected PostgisAction |
postgisAction |
static String |
QUERY_CANCELED |
DEBUG, groovyShell, ID, lastCreatedfeatureVector, lastGeom, lastQuery, layerName, layerProperties, maxFeatureCount, styles| Modifier | Constructor and Description |
|---|---|
|
PostgisFeatureFactory(LayerProperties layerProperties,
de.cismet.tools.ConnectionInfo connectionInfo,
PostgisAction postgisAction,
RetrievalService parentService)
Creates a new PostgisFeatureFactory object.
|
protected |
PostgisFeatureFactory(PostgisFeatureFactory pff)
Creates a new PostgisFeatureFactory object.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanup(Statement statement)
DOCUMENT ME!
|
PostgisFeatureFactory |
clone()
DOCUMENT ME!
|
Vector |
createAttributes(SwingWorker workerThread)
Method that does not create FeatureServiceAttributes.
|
static Connection |
createConnection(de.cismet.tools.ConnectionInfo connectionInfo)
DOCUMENT ME!
|
List<PostgisFeature> |
createFeatures(SimpleFeatureServiceSqlStatement sqlStatement,
BoundingBox boundingBox,
SwingWorker workerThread)
Returns instances of features
FT that match the optional query and that fall into the optional
BoundingBox.Applies layerProperties (if set) on all Features (if the type of the feature implements the interface InheritsLayerProperties). |
List<PostgisFeature> |
createFeatures(SimpleFeatureServiceSqlStatement sqlStatement,
BoundingBox boundingBox,
SwingWorker workerThread,
int offset,
int limit,
FeatureServiceAttribute[] orderBy)
Returns instances of features
FT that match the optional query and that fall into the optional
BoundingBox.Applies layerProperties (if set) on all Features (if the type of the feature implements the interface InheritsLayerProperties). |
int |
getFeatureCount(SimpleFeatureServiceSqlStatement query,
BoundingBox bb)
DOCUMENT ME!
|
protected boolean |
isGenerateIds()
Determines if the service automatically generates unique IDs for all queryable features.
|
checkCancelled, createFeaturesFromMemory, createNewFeature, evaluateBeanShellExpression, evaluateExpressions, evaluateGroovyExpressions, featuresAlreadyInMemory, getLastCreatedFeatures, getLayerProperties, getMaxFeatureCount, getStyle, getStyle, reEvaluteExpressions, setInterruptedAllowed, setInterruptedNotAllowed, setLayerName, setLayerProperties, setMaxFeatureCount, setSLDStyle, sortFeatureList, updateLastCreatedFeatures, waitUntilInterruptedIsAllowedpublic static final String ID_TOKEN
public static final String QUERY_CANCELED
protected final de.cismet.tools.ConnectionInfo connectionInfo
protected final PostgisAction postgisAction
protected final RetrievalService parentService
public PostgisFeatureFactory(LayerProperties layerProperties, de.cismet.tools.ConnectionInfo connectionInfo, PostgisAction postgisAction, RetrievalService parentService) throws Exception
layerProperties - DOCUMENT ME!connectionInfo - DOCUMENT ME!postgisAction - DOCUMENT ME!parentService - DOCUMENT ME!Exception - DOCUMENT ME!protected PostgisFeatureFactory(PostgisFeatureFactory pff)
pff - DOCUMENT ME!public static Connection createConnection(de.cismet.tools.ConnectionInfo connectionInfo) throws Exception
connectionInfo - DOCUMENT ME!Exception - DOCUMENT ME!protected boolean isGenerateIds()
AbstractFeatureFactorytrue, the id expression is not evaluated.isGenerateIds in class AbstractFeatureFactory<PostgisFeature,SimpleFeatureServiceSqlStatement>true if the service generates id}public List<PostgisFeature> createFeatures(SimpleFeatureServiceSqlStatement sqlStatement, BoundingBox boundingBox, SwingWorker workerThread) throws FeatureFactory.TooManyFeaturesException, Exception
FeatureFactoryFT that match the optional query and that fall into the optional
BoundingBox.InheritsLayerProperties). The SwingWorker instance can be used to set the progress of the operation and
to check the worker thread was canceled. The state of the features list after a the operation was canceled is
undefined.sqlStatement - optional query of type QT to select the features to be returnedboundingBox - optional BoundingBox to restrict the features to be returnedworkerThread - an optional worker thread that is observedFTFeatureFactory.TooManyFeaturesException - if the maximum number of features is reached during processingException - if something went wrong during parsingpublic Vector createAttributes(SwingWorker workerThread) throws FeatureFactory.TooManyFeaturesException, Exception
FeatureFactoryworkerThread - DOCUMENT ME!FeatureFactory.TooManyFeaturesException - if the maximum number of features is reached during processingUnsupportedOperationException - if the factory does not support the creation attributesException - if something went wrong during parsingprotected void cleanup(Statement statement)
statement - DOCUMENT ME!public PostgisFeatureFactory clone()
FeatureFactoryclone in interface FeatureFactory<PostgisFeature,SimpleFeatureServiceSqlStatement>clone in class AbstractFeatureFactory<PostgisFeature,SimpleFeatureServiceSqlStatement>public int getFeatureCount(SimpleFeatureServiceSqlStatement query, BoundingBox bb)
FeatureFactoryquery - DOCUMENT ME!bb - DOCUMENT ME!public List<PostgisFeature> createFeatures(SimpleFeatureServiceSqlStatement sqlStatement, BoundingBox boundingBox, SwingWorker workerThread, int offset, int limit, FeatureServiceAttribute[] orderBy) throws FeatureFactory.TooManyFeaturesException, Exception
FeatureFactoryFT that match the optional query and that fall into the optional
BoundingBox.InheritsLayerProperties). The SwingWorker instance can be used to set the progress of the operation and
to check the worker thread was canceled. The state of the features list after a the operation was canceled is
undefined.sqlStatement - optional query of type QT to select the features to be returnedboundingBox - optional BoundingBox to restrict the features to be returnedworkerThread - an optional worker thread that is observedoffset - the start indexlimit - a limitorderBy - the attributes, the features should be ordered byFTFeatureFactory.TooManyFeaturesException - if the maximum number of features is reached during processingException - if something went wrong during parsingCopyright © 2012–2026 cismet GmbH. All rights reserved.