public class PostgreSQLHelper extends JDBCHelperBase
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
POSTGRESQL_JDBC_DRIVER |
static boolean |
USE_CONNECTIONS_POOL |
LOGGER, operationsFactory, providerFeatureType, srssolver, transactionsHelper
Constructor and Description |
---|
PostgreSQLHelper(JDBCConnectionParameters connectionParameters) |
PostgreSQLHelper(PostgreSQLConnectionParameters 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() |
JDBCServerExplorerParameters |
createServerExplorerParameters() |
JDBCSQLBuilderBase |
createSQLBuilder()
Devuelve un SQLBuilder adaptado al proveedor.
|
protected void |
doDispose()
Internal implementation for the
AbstractDisposable.dispose() method, to be
implemented by child classes. |
void |
fetchFeature(FeatureProvider feature,
java.sql.ResultSet rs,
FeatureAttributeDescriptor[] columns,
java.lang.String[] extraValueNames) |
JDBCConnection |
getConnection() |
PostgreSQLConnectionParameters |
getConnectionParameters() |
java.lang.String |
getConnectionURL() |
static java.lang.String |
getConnectionURL(PostgreSQLConnectionParameters params) |
static java.lang.String |
getConnectionURL(java.lang.String host,
java.lang.Integer port,
java.lang.String db,
boolean useSSL) |
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() |
boolean |
hasSpatialFunctions()
Indica si la BBDD tiene soporte espacial.
|
boolean |
supportOffsetInSelect()
Indica si la BBDD soporta el uso de OFFSET en la sentencia select.
|
addTableToColumnReferences, addTableToColumnReferencesInSingleSelect, allowNestedOperations, close, closeResourceRequested, createFeature, createOpenStoreParameters, createProvider, createServerExplorer, expandCalculedColumns, fetchFeature, getConnectionProvider, getConnectionProviderKey, getConnectionProviderStatus, getConnectionWritable, getGeometryFromColumn, getGeometryFromColumn, getGeometryManager, getProviderFeatureType, getResource, getResulSetControler, getSourceId, 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
public static final java.lang.String POSTGRESQL_JDBC_DRIVER
public static final boolean USE_CONNECTIONS_POOL
public PostgreSQLHelper(PostgreSQLConnectionParameters connectionParameters, ConnectionProvider connectionProvider)
connectionParameters
- connectionProvider
- public PostgreSQLHelper(JDBCConnectionParameters connectionParameters)
public static java.lang.String getConnectionURL(PostgreSQLConnectionParameters params)
public static java.lang.String getConnectionURL(java.lang.String host, java.lang.Integer port, java.lang.String db, boolean useSSL)
protected void doDispose() throws BaseException
AbstractDisposable
AbstractDisposable.dispose()
method, to be
implemented by child classes.doDispose
in class JDBCHelperBase
BaseException
AbstractDisposable.dispose()
public JDBCConnection getConnection() throws AccessResourceException
getConnection
in interface JDBCHelper
getConnection
in class JDBCHelperBase
AccessResourceException
public PostgreSQLConnectionParameters 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 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 void fetchFeature(FeatureProvider feature, java.sql.ResultSet rs, FeatureAttributeDescriptor[] columns, java.lang.String[] extraValueNames) throws DataException
fetchFeature
in interface JDBCHelper
fetchFeature
in class JDBCHelperBase
DataException