public class H2SpatialHelper extends JDBCHelperBase
Modifier and Type | Class and Description |
---|---|
static class |
H2SpatialHelper.H2SpatialConnectionProvider |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
H2SPATIAL_JDBC_DRIVER |
protected static Logger |
LOGGER |
operationsFactory, providerFeatureType, srssolver, transactionsHelper
Constructor and Description |
---|
H2SpatialHelper(JDBCConnectionParameters connectionParameters) |
H2SpatialHelper(JDBCConnectionParameters connectionParameters,
ConnectionProvider connectionProvider)
Constructor for use only for testing purposes.
|
Modifier and Type | Method and Description |
---|---|
boolean |
allowAutomaticValues()
Indica si la BBDD soporta valores automaticos, tipo serial.
|
boolean |
canWriteGeometry(int geometryType,
int geometrySubtype)
Indica si podemos escribir el tipo de geometria indicado.
|
JDBCNewStoreParameters |
createNewStoreParameters() |
JDBCStoreParameters |
createOpenStoreParameters() |
JDBCStoreParameters |
createOpenStoreParameters(JDBCServerExplorerParameters parameters) |
JDBCServerExplorer |
createServerExplorer(JDBCServerExplorerParameters parameters,
DataServerExplorerProviderServices providerServices) |
JDBCServerExplorerParameters |
createServerExplorerParameters() |
JDBCSQLBuilderBase |
createSQLBuilder()
Devuelve un SQLBuilder adaptado al proveedor.
|
JDBCConnection |
getConnection() |
H2SpatialConnectionParameters |
getConnectionParameters() |
ConnectionProvider |
getConnectionProvider() |
java.lang.String |
getConnectionProviderStatus() |
java.lang.String |
getConnectionURL() |
GeometryExpressionBuilderHelper.GeometrySupportType |
getGeometrySupportType()
Indica como deben ser guardadas las geometrias en la BBDD.
|
OperationsFactory |
getOperations() |
java.lang.String |
getProviderName()
Return the name of the driver.
|
java.lang.String |
getQuoteForIdentifiers()
Devuelve las comillas que han de usaese para los identificadores.
|
java.lang.String |
getQuoteForStrings()
Devuelve las comillas que han de usaese en las constantes de cadena.
|
protected java.lang.String |
getResourceType() |
java.lang.String |
getSourceId(JDBCStoreParameters parameters) |
boolean |
hasSpatialFunctions()
Indica si la BBDD tiene soporte espacial.
|
void |
shutdown() |
boolean |
supportOffsetInSelect()
Indica si la BBDD soporta el uso de OFFSET en la sentencia select.
|
addTableToColumnReferences, addTableToColumnReferencesInSingleSelect, allowNestedOperations, close, closeResourceRequested, createFeature, createProvider, doDispose, expandCalculedColumns, fetchFeature, fetchFeature, getConnectionProviderKey, getConnectionWritable, getGeometryFromColumn, getGeometryFromColumn, getGeometryManager, getProviderFeatureType, getResource, getResulSetControler, getSourceId, getSRSSolver, getTableAndFeatureType, getTransaction, initialize, initializeResource, isClosed, isThreadSafe, processSpecialFunctions, replaceExistsFunction, replaceForeingValueFunction, resourceChanged, setProviderFeatureType, setTransaction, supportCaller, supportExpression, supportFilter, supportOrder, toString, useSubquery
dispose, dispose
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
dispose
protected static final Logger LOGGER
public static final java.lang.String H2SPATIAL_JDBC_DRIVER
public H2SpatialHelper(JDBCConnectionParameters connectionParameters, ConnectionProvider connectionProvider)
connectionParameters
- connectionProvider
- public H2SpatialHelper(JDBCConnectionParameters connectionParameters)
public void shutdown()
public ConnectionProvider getConnectionProvider()
getConnectionProvider
in class JDBCHelperBase
public JDBCConnection getConnection() throws AccessResourceException
getConnection
in interface JDBCHelper
getConnection
in class JDBCHelperBase
AccessResourceException
public H2SpatialConnectionParameters getConnectionParameters()
getConnectionParameters
in interface JDBCHelper
getConnectionParameters
in class JDBCHelperBase
public java.lang.String getConnectionURL()
getConnectionURL
in interface JDBCHelper
getConnectionURL
in class JDBCHelperBase
protected java.lang.String getResourceType()
getResourceType
in class JDBCHelperBase
public java.lang.String getProviderName()
JDBCHelper
getProviderName
in interface JDBCHelper
getProviderName
in class JDBCHelperBase
public JDBCSQLBuilderBase createSQLBuilder()
JDBCHelper
createSQLBuilder
in interface JDBCHelper
createSQLBuilder
in class JDBCHelperBase
public OperationsFactory getOperations()
getOperations
in interface JDBCHelper
getOperations
in class JDBCHelperBase
public GeometryExpressionBuilderHelper.GeometrySupportType getGeometrySupportType()
JDBCHelper
getGeometrySupportType
in interface JDBCHelper
getGeometrySupportType
in class JDBCHelperBase
public boolean hasSpatialFunctions()
JDBCHelper
hasSpatialFunctions
in interface JDBCHelper
hasSpatialFunctions
in class JDBCHelperBase
public boolean canWriteGeometry(int geometryType, int geometrySubtype)
JDBCHelper
canWriteGeometry
in interface JDBCHelper
canWriteGeometry
in class JDBCHelperBase
public java.lang.String getQuoteForIdentifiers()
JDBCHelper
getQuoteForIdentifiers
in interface JDBCHelper
getQuoteForIdentifiers
in class JDBCHelperBase
public boolean allowAutomaticValues()
JDBCHelper
allowAutomaticValues
in interface JDBCHelper
allowAutomaticValues
in class JDBCHelperBase
public boolean supportOffsetInSelect()
JDBCHelper
supportOffsetInSelect
in interface JDBCHelper
supportOffsetInSelect
in class JDBCHelperBase
public java.lang.String getQuoteForStrings()
JDBCHelper
getQuoteForStrings
in interface JDBCHelper
getQuoteForStrings
in class JDBCHelperBase
public java.lang.String getSourceId(JDBCStoreParameters parameters)
getSourceId
in interface JDBCHelper
getSourceId
in class JDBCHelperBase
public JDBCNewStoreParameters createNewStoreParameters()
createNewStoreParameters
in interface JDBCHelper
createNewStoreParameters
in class JDBCHelperBase
public JDBCStoreParameters createOpenStoreParameters()
createOpenStoreParameters
in interface JDBCHelper
createOpenStoreParameters
in class JDBCHelperBase
public JDBCServerExplorerParameters createServerExplorerParameters()
createServerExplorerParameters
in interface JDBCHelper
createServerExplorerParameters
in class JDBCHelperBase
public JDBCServerExplorer createServerExplorer(JDBCServerExplorerParameters parameters, DataServerExplorerProviderServices providerServices) throws InitializeException
createServerExplorer
in interface JDBCHelper
createServerExplorer
in class JDBCHelperBase
InitializeException
public java.lang.String getConnectionProviderStatus()
getConnectionProviderStatus
in interface JDBCHelper
getConnectionProviderStatus
in class JDBCHelperBase
public JDBCStoreParameters createOpenStoreParameters(JDBCServerExplorerParameters parameters)
createOpenStoreParameters
in interface JDBCHelper
createOpenStoreParameters
in class JDBCHelperBase