public class SQLiteHelper extends JDBCHelperBase
Modifier and Type | Class and Description |
---|---|
static class |
SQLiteHelper.ConnectionProviderImpl |
Modifier and Type | Field and Description |
---|---|
protected static Logger |
LOGGER |
operationsFactory, providerFeatureType, srssolver, transactionsHelper
Constructor and Description |
---|
SQLiteHelper(JDBCConnectionParameters connectionParameters) |
SQLiteHelper(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() |
JDBCServerExplorer |
createServerExplorer(JDBCServerExplorerParameters parameters,
DataServerExplorerProviderServices providerServices) |
JDBCServerExplorerParameters |
createServerExplorerParameters() |
JDBCSQLBuilderBase |
createSQLBuilder()
Devuelve un SQLBuilder adaptado al proveedor.
|
Geometry |
forceGeometryType(GeometryType geomtype,
Geometry geom) |
JDBCConnection |
getConnection() |
SQLiteConnectionParameters |
getConnectionParameters() |
ConnectionProvider |
getConnectionProvider() |
java.lang.String |
getConnectionProviderKey(JDBCConnectionParameters connectionParameters) |
java.lang.String |
getConnectionURL() |
Geometry |
getGeometryFromColumn(java.sql.ResultSet rs,
int index) |
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) |
SRSSolver |
getSRSSolver() |
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, doDispose, expandCalculedColumns, fetchFeature, fetchFeature, getConnectionProviderStatus, getConnectionWritable, getGeometryFromColumn, getGeometryManager, getProviderFeatureType, getResource, getResulSetControler, getSourceId, 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 SQLiteHelper(JDBCConnectionParameters connectionParameters, ConnectionProvider connectionProvider)
connectionParameters
- connectionProvider
- public SQLiteHelper(JDBCConnectionParameters connectionParameters)
public JDBCConnection getConnection() throws AccessResourceException
getConnection
in interface JDBCHelper
getConnection
in class JDBCHelperBase
AccessResourceException
public ConnectionProvider getConnectionProvider()
getConnectionProvider
in class JDBCHelperBase
public SQLiteConnectionParameters 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 Geometry forceGeometryType(GeometryType geomtype, Geometry geom) throws CreateGeometryException
CreateGeometryException
public SRSSolver getSRSSolver()
getSRSSolver
in interface JDBCHelper
getSRSSolver
in class JDBCHelperBase
public Geometry getGeometryFromColumn(java.sql.ResultSet rs, int index) throws DataException
getGeometryFromColumn
in interface JDBCHelper
getGeometryFromColumn
in class JDBCHelperBase
DataException
public JDBCServerExplorer createServerExplorer(JDBCServerExplorerParameters parameters, DataServerExplorerProviderServices providerServices) throws InitializeException
createServerExplorer
in interface JDBCHelper
createServerExplorer
in class JDBCHelperBase
InitializeException
public java.lang.String getConnectionProviderKey(JDBCConnectionParameters connectionParameters)
getConnectionProviderKey
in class JDBCHelperBase