Class JDBCConnectionBase

java.lang.Object
org.gvsig.fmap.dal.store.jdbc2.spi.JDBCConnectionBase
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 JDBCConnectionBase extends Object implements org.gvsig.fmap.dal.store.jdbc2.JDBCConnection
Author:
jjdelcerro
  • Field Details

    • LOGGER

      protected static final org.slf4j.Logger LOGGER
    • conn

      protected Connection conn
    • transaction

      protected org.gvsig.fmap.dal.spi.DataTransactionServices transaction
    • id

      protected final String id
    • connectionProvider

      protected final ConnectionProvider connectionProvider
  • Constructor Details

    • JDBCConnectionBase

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

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

    • getId

      public String getId()
      Specified by:
      getId in interface org.gvsig.fmap.dal.spi.DataTransactionServices.ConnectionService<Connection>
    • close

      public void close() throws SQLException
      Specified by:
      close in interface org.gvsig.fmap.dal.store.jdbc2.JDBCConnection
      Throws:
      SQLException
    • closeQuietly

      public void closeQuietly()
      Specified by:
      closeQuietly in interface org.gvsig.fmap.dal.store.jdbc2.JDBCConnection
    • isInTransaction

      public boolean isInTransaction()
      Specified by:
      isInTransaction in interface org.gvsig.fmap.dal.store.jdbc2.JDBCConnection
    • isInDataTransaction

      public boolean isInDataTransaction()
      Specified by:
      isInDataTransaction in interface org.gvsig.fmap.dal.store.jdbc2.JDBCConnection
    • begin

      public void begin() throws SQLException
      Specified by:
      begin in interface org.gvsig.fmap.dal.store.jdbc2.JDBCConnection
      Throws:
      SQLException
    • rollback

      public void rollback() throws SQLException
      Specified by:
      rollback in interface org.gvsig.fmap.dal.store.jdbc2.JDBCConnection
      Throws:
      SQLException
    • commit

      public void commit() throws SQLException
      Specified by:
      commit in interface org.gvsig.fmap.dal.store.jdbc2.JDBCConnection
      Throws:
      SQLException
    • get

      public Connection get()
      Specified by:
      get in interface org.gvsig.fmap.dal.spi.DataTransactionServices.ConnectionService<Connection>
      Specified by:
      get in interface org.gvsig.fmap.dal.store.jdbc2.JDBCConnection
    • execute

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

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

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

      public Statement createStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException
      Specified by:
      createStatement in interface org.gvsig.fmap.dal.store.jdbc2.JDBCConnection
      Throws:
      SQLException
    • prepareStatement

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

      public DatabaseMetaData getMetaData() throws SQLException
      Specified by:
      getMetaData in interface org.gvsig.fmap.dal.store.jdbc2.JDBCConnection
      Throws:
      SQLException
    • dispose

      public void dispose()
      Specified by:
      dispose in interface org.gvsig.tools.dispose.Disposable
    • finish

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

      public void abort() throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      abort in interface org.gvsig.fmap.dal.spi.DataTransactionServices.ConnectionService<Connection>
      Throws:
      org.gvsig.fmap.dal.exception.DataException