public class H2FeatureService extends JDBCFeatureService<JDBCFeature>
AbstractFeatureService.FeatureRetrievalWorker, AbstractFeatureService.LayerInitWorker| Modifier and Type | Field and Description |
|---|---|
static String |
H2_FEATURELAYER_TYPE |
static Map<String,Icon> |
layerIcons |
databasePath, query, tableNamebb, DEFAULT_TYPE, enabled, encoding, featureFactory, featureRetrievalWorker, featureServiceAttributes, initialized, initializedFromElement, layerInitWorker, layerPosition, layerProperties, maxFeatureCount, name, NONE, orderedFeatureServiceAttributes, pNode, queryButtons, SQL_QUERY_BUTTONS, translucency, UNKNOWN, visibleDEBUG, errorObject, listeners, progress, PROGRESS_PROPERTY, PROGRESS_REFRESH, propertyChangeSupport, refreshNeededLAYER_DISABLED_INVISIBLE, LAYER_DISABLED_VISIBLE, LAYER_ENABLED_INVISIBLE, LAYER_ENABLED_VISIBLETYPE_ATTRIBUTE| Modifier | Constructor and Description |
|---|---|
|
H2FeatureService(org.jdom.Element e)
Creates a new H2FeatureService object.
|
protected |
H2FeatureService(H2FeatureService hfs)
Creates a new ShapeFileFeatureService object.
|
|
H2FeatureService(String name,
String databasePath,
String tableName,
List<FeatureServiceAttribute> attributes)
Creates a new H2FeatureService object.
|
|
H2FeatureService(String name,
String databasePath,
String tableName,
List<FeatureServiceAttribute> attributes,
File shapeFile)
Creates a new H2FeatureService object.
|
|
H2FeatureService(String name,
String databasePath,
String tableName,
List<FeatureServiceAttribute> attributes,
File shapeFile,
List<FeatureServiceFeature> features)
Creates a new H2FeatureService object.
|
|
H2FeatureService(String name,
String databasePath,
String tableName,
List<FeatureServiceAttribute> attributes,
File shapeFile,
List<FeatureServiceFeature> features,
List<String> orderedAttributeNames)
Creates a new H2FeatureService object.
|
|
H2FeatureService(String name,
String databasePath,
String tableName,
List<FeatureServiceAttribute> attributes,
File shapeFile,
List<FeatureServiceFeature> features,
List<String> orderedAttributeNames,
String format)
Creates a new H2FeatureService object.
|
|
H2FeatureService(String name,
String databasePath,
String tableName,
List<FeatureServiceAttribute> attributes,
List<FeatureServiceFeature> features)
Creates a new H2FeatureService object.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
clearLocks()
Clear all locks.
|
Object |
clone() |
protected FeatureFactory |
createFeatureFactory()
Creates an instance of a service specific FeatureFactory implementation.
|
void |
createFromShapeFile(URI shapeFileUri)
Import the given shape file to the database and assign it to this layer.
|
protected LayerProperties |
createLayerProperties()
Creates an instance of a service specific LayerProperties implementation.
|
H2FeatureService |
createLinearReferencingLayer(String fromField,
String tillField,
String routeField,
String routeJoinField,
AbstractFeatureService routeService,
String layerName,
String domain,
String newTableName)
Adds the geometries for linear referenced values to the service.
|
H2FeatureService |
createPointGeometryInformation(String xField,
String yField,
String newTableName)
Adds point geometries to the service.
|
String |
decoratePropertyName(String name)
DOCUMENT ME!
|
boolean |
equals(Object obj) |
protected String |
getFeatureLayerType()
DOCUMENT ME!
|
String |
getGeometryType()
Determines the geometry type of the features of this service.
|
Icon |
getLayerIcon(int type)
DOCUMENT ME!
|
static Icon |
getLayerIcon(int type,
String tableName,
String dbName)
DOCUMENT ME!
|
static String |
getTableFormat(String tableName,
String dbName)
Checks, if the given table exists in the db.
|
static String |
getTableNameStemFromTableName(String tableName)
DOCUMENT ME!
|
int |
hashCode() |
protected void |
initConcreteInstance()
This operation is invoked after the default initialisation.
|
boolean |
isInitialised()
DOCUMENT ME!
|
boolean |
isTableNotFound()
Checks, if the table of the layer does exist.
|
static void |
lockFeature(Integer id,
String tableName)
Lock the given features.
|
static boolean |
removeTableIfExists(String tableName)
Checks, if the given table exists in the db.
|
static void |
removeUnusedSequences()
remove all unused sequences.
|
void |
setSLDInputStream(String inputStream)
DOCUMENT ME!
|
void |
setTableNotFound(boolean tableNotFound)
DOCUMENT ME!
|
static boolean |
tableAlreadyExists(String tableName)
Checks, if the given table exists in the db.
|
static void |
unlockFeature(Integer id,
String tableName)
Unlock the features, which are described by the given values.
|
getDatabasePath, getQuery, getTableName, initFromElement, isEditable, setCrs, setDatabasePath, setQuery, setTableName, toElementcanBeDisabled, cancel, decorateLater, decoratePropertyValue, decorateQuery, getBoundingBox, getCalculatedAttributes, getEncoding, getFeatureCount, getFeatureCount, getFeatureFactory, getFeatureServiceAttributes, getId, getInitElement, getInitialisationError, getLayerPosition, getLayerProperties, getLegend, getLegend, getLegends, getLegendSize, getLegendSize, getLegendSizes, getMaxFeatureCount, getMaxFeaturesPerPage, getName, getOrderedFeatureServiceAttributes, getPNode, getQueryButtons, getSLDDefiniton, getTranslucency, init, initAndWait, isEnabled, isInitialized, isSelectable, isVisible, isVisibleInBoundingBox, parseSLD, refresh, refreshFeatures, retrieve, retrieveFeatures, retrieveFeatures, setBoundingBox, setEnabled, setEncoding, setFeatureServiceAttributes, setFeatureServiceAttributes, setInitElement, setInitialisationError, setInitialized, setLayerPosition, setLayerProperties, setLayerProperties, setMaxFeatureCount, setName, setOrderedFeatureServiceAttributes, setPNode, setSelectable, setSize, setTranslucency, setVisible, toStringaddPropertyChangeListener, addRetrievalListener, cloneWithoutRetrievalListeners, fireRetrievalAborted, fireRetrievalComplete, fireRetrievalError, fireRetrievalProgress, fireRetrievalStarted, getErrorObject, getListeners, getProgress, hasErrors, isRefreshNeeded, removePropertyChangeListener, removeRetrievalListener, setErrorObject, setProgress, setRefreshNeededfinalize, getClass, notify, notifyAll, wait, wait, waitgetErrorObject, hasErrors, setErrorObjectaddPropertyChangeListener, addRetrievalListener, getProgress, isRefreshNeeded, removePropertyChangeListener, removeRetrievalListener, setProgress, setRefreshNeededpublic static final String H2_FEATURELAYER_TYPE
public H2FeatureService(org.jdom.Element e)
throws Exception
e - DOCUMENT ME!Exception - DOCUMENT ME!public H2FeatureService(String name, String databasePath, String tableName, List<FeatureServiceAttribute> attributes) throws Exception
name - DOCUMENT ME!databasePath - DOCUMENT ME!tableName - DOCUMENT ME!attributes - DOCUMENT ME!Exception - DOCUMENT ME!public H2FeatureService(String name, String databasePath, String tableName, List<FeatureServiceAttribute> attributes, File shapeFile) throws Exception
name - DOCUMENT ME!databasePath - DOCUMENT ME!tableName - DOCUMENT ME!attributes - DOCUMENT ME!shapeFile - DOCUMENT ME!Exception - DOCUMENT ME!public H2FeatureService(String name, String databasePath, String tableName, List<FeatureServiceAttribute> attributes, List<FeatureServiceFeature> features) throws Exception
name - DOCUMENT ME!databasePath - DOCUMENT ME!tableName - DOCUMENT ME!attributes - DOCUMENT ME!features - DOCUMENT ME!Exception - DOCUMENT ME!public H2FeatureService(String name, String databasePath, String tableName, List<FeatureServiceAttribute> attributes, File shapeFile, List<FeatureServiceFeature> features) throws Exception
name - The name of the servicedatabasePath - the database path of the servicetableName - the name of the service tableattributes - the feature service attributes of the serviceshapeFile - the shape file to importfeatures - the features to importException - DOCUMENT ME!public H2FeatureService(String name, String databasePath, String tableName, List<FeatureServiceAttribute> attributes, File shapeFile, List<FeatureServiceFeature> features, List<String> orderedAttributeNames) throws Exception
name - The name of the servicedatabasePath - the database path of the servicetableName - the name of the service tableattributes - the feature service attributes of the serviceshapeFile - the shape file to importfeatures - the features to importorderedAttributeNames - the order of the service attributes. Can be null for an arbitrary attribute
order.Exception - DOCUMENT ME!public H2FeatureService(String name, String databasePath, String tableName, List<FeatureServiceAttribute> attributes, File shapeFile, List<FeatureServiceFeature> features, List<String> orderedAttributeNames, String format) throws Exception
name - The name of the servicedatabasePath - the database path of the servicetableName - the name of the service tableattributes - the feature service attributes of the serviceshapeFile - the shape file to importfeatures - the features to importorderedAttributeNames - the order of the service attributes. Can be null for an arbitrary attribute
order.format - DOCUMENT ME!Exception - DOCUMENT ME!protected H2FeatureService(H2FeatureService hfs)
hfs - DOCUMENT ME!public void createFromShapeFile(URI shapeFileUri)
shapeFileUri - the uri to the shape filepublic void setSLDInputStream(String inputStream)
SLDStyledLayersetSLDInputStream in interface SLDStyledLayersetSLDInputStream in class AbstractFeatureService<JDBCFeature,String>inputStream - DOCUMENT ME!public static String getTableNameStemFromTableName(String tableName)
tableName - DOCUMENT ME!protected FeatureFactory createFeatureFactory() throws Exception
AbstractFeatureServicecreateFeatureFactory in class AbstractFeatureService<JDBCFeature,String>Exception - id the costruction failedprotected void initConcreteInstance()
throws Exception
AbstractFeatureServiceinitConcreteInstance in class AbstractFeatureService<JDBCFeature,String>Exception - if the initialisation failsprotected String getFeatureLayerType()
AbstractFeatureServicegetFeatureLayerType in class AbstractFeatureService<JDBCFeature,String>protected LayerProperties createLayerProperties()
AbstractFeatureServicecreateLayerProperties in class JDBCFeatureService<JDBCFeature>public Icon getLayerIcon(int type)
AbstractFeatureServicegetLayerIcon in class AbstractFeatureService<JDBCFeature,String>type - DOCUMENT ME!public static Icon getLayerIcon(int type, String tableName, String dbName)
type - DOCUMENT ME!tableName - DOCUMENT ME!dbName - DOCUMENT ME!public Object clone()
clone in class AbstractRetrievalServicepublic String getGeometryType()
AbstractFeatureServicegetGeometryType in class AbstractFeatureService<JDBCFeature,String>AbstractFeatureService.UNKNOWN, if the features can have different geometriespublic boolean isInitialised()
public H2FeatureService createLinearReferencingLayer(String fromField, String tillField, String routeField, String routeJoinField, AbstractFeatureService routeService, String layerName, String domain, String newTableName) throws Exception
fromField - The field with the from stationtillField - The field with the till stationrouteField - The field with the route namerouteJoinField - the field of the route service, that is used for the join with this servicerouteService - The service that conains the routeslayerName - The name of the route layerdomain - the domain of the route layernewTableName - DOCUMENT ME!Exception - DOCUMENT ME!public H2FeatureService createPointGeometryInformation(String xField, String yField, String newTableName) throws H2FeatureServiceFactory.NegativeValueException, Exception
xField - The field with the x valueyField - The field with the y valuenewTableName - DOCUMENT ME!H2FeatureServiceFactory.NegativeValueException - DOCUMENT ME!Exception - DOCUMENT ME!public String decoratePropertyName(String name)
AbstractFeatureServicedecoratePropertyName in class AbstractFeatureService<JDBCFeature,String>name - DOCUMENT ME!public static boolean tableAlreadyExists(String tableName)
tableName - the name of the table to checkpublic static void lockFeature(Integer id, String tableName) throws Exception
id - the id of the feature to lock or null to lock the hole tabletableName - The table name of the feature to lockException - DOCUMENT ME!LockFromSameUserAlreadyExistsException - DOCUMENT ME!public static void clearLocks()
public static void removeUnusedSequences()
public static void unlockFeature(Integer id, String tableName)
id - the id of the feature to unlock or null to unlock all features of the given tabletableName - the name of the table to unlockpublic static boolean removeTableIfExists(String tableName)
tableName - the name of the table to checkpublic static String getTableFormat(String tableName, String dbName)
tableName - DOCUMENT ME!dbName - DOCUMENT ME!public boolean isTableNotFound()
public void setTableNotFound(boolean tableNotFound)
tableNotFound - the tableNotFound to setCopyright © 2012–2025 cismet GmbH. All rights reserved.