Class SQLiteJDBCConnection

java.lang.Object
org.gvsig.fmap.dal.store.jdbc2.spi.JDBCConnectionBase
org.gvsig.sqlite.dal.SQLiteJDBCConnection
All Implemented Interfaces:
org.gvsig.fmap.dal.spi.DataTransactionServices.ConnectionService<Connection>, org.gvsig.fmap.dal.store.jdbc2.JDBCConnection, org.gvsig.tools.dispose.Disposable

public class SQLiteJDBCConnection extends org.gvsig.fmap.dal.store.jdbc2.spi.JDBCConnectionBase
Author:
fdiaz
  • Constructor Details

    • SQLiteJDBCConnection

      public SQLiteJDBCConnection(org.gvsig.fmap.dal.spi.DataTransactionServices transaction, Connection conn, String id)
    • SQLiteJDBCConnection

      public SQLiteJDBCConnection(org.gvsig.fmap.dal.spi.DataTransactionServices transaction, Connection conn, String id, org.gvsig.fmap.dal.store.jdbc2.spi.ConnectionProvider connectionProvider)
  • Method Details

    • create

      public static org.gvsig.fmap.dal.store.jdbc2.JDBCConnection create(SQLiteHelper helper) throws SQLException
      Throws:
      SQLException
    • close

      public void close() throws SQLException
      Specified by:
      close in interface org.gvsig.fmap.dal.store.jdbc2.JDBCConnection
      Overrides:
      close in class org.gvsig.fmap.dal.store.jdbc2.spi.JDBCConnectionBase
      Throws:
      SQLException
    • begin

      public void begin() throws SQLException
      Specified by:
      begin in interface org.gvsig.fmap.dal.store.jdbc2.JDBCConnection
      Overrides:
      begin in class org.gvsig.fmap.dal.store.jdbc2.spi.JDBCConnectionBase
      Throws:
      SQLException
    • commit

      public void commit() throws SQLException
      Specified by:
      commit in interface org.gvsig.fmap.dal.store.jdbc2.JDBCConnection
      Overrides:
      commit in class org.gvsig.fmap.dal.store.jdbc2.spi.JDBCConnectionBase
      Throws:
      SQLException
    • abort

      public void abort() throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      abort in interface org.gvsig.fmap.dal.spi.DataTransactionServices.ConnectionService<Connection>
      Overrides:
      abort in class org.gvsig.fmap.dal.store.jdbc2.spi.JDBCConnectionBase
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • finish

      public void finish() throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      finish in interface org.gvsig.fmap.dal.spi.DataTransactionServices.ConnectionService<Connection>
      Overrides:
      finish in class org.gvsig.fmap.dal.store.jdbc2.spi.JDBCConnectionBase
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • execute

      public void execute(String sql) throws SQLException
      Specified by:
      execute in interface org.gvsig.fmap.dal.store.jdbc2.JDBCConnection
      Overrides:
      execute in class org.gvsig.fmap.dal.store.jdbc2.spi.JDBCConnectionBase
      Throws:
      SQLException
    • prepareStatement

      public PreparedStatement prepareStatement(String sql) throws SQLException
      Specified by:
      prepareStatement in interface org.gvsig.fmap.dal.store.jdbc2.JDBCConnection
      Overrides:
      prepareStatement in class org.gvsig.fmap.dal.store.jdbc2.spi.JDBCConnectionBase
      Throws:
      SQLException
    • rollback

      public void rollback() throws SQLException
      Specified by:
      rollback in interface org.gvsig.fmap.dal.store.jdbc2.JDBCConnection
      Overrides:
      rollback in class org.gvsig.fmap.dal.store.jdbc2.spi.JDBCConnectionBase
      Throws:
      SQLException
    • createStatement

      public Statement createStatement() throws SQLException
      Specified by:
      createStatement in interface org.gvsig.fmap.dal.store.jdbc2.JDBCConnection
      Overrides:
      createStatement in class org.gvsig.fmap.dal.store.jdbc2.spi.JDBCConnectionBase
      Throws:
      SQLException
    • createStatement

      public Statement createStatement(String sql) throws SQLException
      Specified by:
      createStatement in interface org.gvsig.fmap.dal.store.jdbc2.JDBCConnection
      Overrides:
      createStatement in class org.gvsig.fmap.dal.store.jdbc2.spi.JDBCConnectionBase
      Throws:
      SQLException