/** * return the cached metaData */ public DatabaseMetaData getConnectionMetaData() throws SQLException { return getConnection().getMetaData(); }
/** * Return true if the receiver is currently connected to a data source. Return false otherwise. */ @Override public boolean isDatasourceConnected() { try { return !getConnection().isClosed(); } catch (SQLException exception) { return false; } }
/** * Return true if the receiver is currently connected to a data source. Return false otherwise. */ public boolean isDatasourceConnected() { try { return !getConnection().isClosed(); } catch (SQLException exception) { return false; } }
/** * return the cached metaData */ public DatabaseMetaData getConnectionMetaData() throws SQLException { return getConnection().getMetaData(); }
/** * return the cached metaData */ public DatabaseMetaData getConnectionMetaData() throws SQLException { return getConnection().getMetaData(); }
/** * Return true if the receiver is currently connected to a data source. Return false otherwise. */ public boolean isDatasourceConnected() { try { return !getConnection().isClosed(); } catch (SQLException exception) { return false; } }
/** * Used by JDBC drivers that do not support autocommit so simulate an autocommit. */ public void autoCommit(DatabaseAccessor accessor) throws SQLException { if (!supportsAutoCommit()) { accessor.getConnection().commit(); } }
/** * Used for jdbc drivers which do not support autocommit to explicitly rollback a transaction * This method is a no-op for databases which implement autocommit as expected. */ public void rollbackTransaction(DatabaseAccessor accessor) throws SQLException { if (!supportsAutoCommit()) { accessor.getConnection().rollback(); } }
/** * Used by JDBC drivers that do not support autocommit so simulate an autocommit. */ public void autoCommit(DatabaseAccessor accessor) throws SQLException { if (!supportsAutoCommit()) { accessor.getConnection().commit(); } }
/** * Used for jdbc drivers which do not support autocommit to explicitly rollback a transaction * This method is a no-op for databases which implement autocommit as expected. */ public void rollbackTransaction(DatabaseAccessor accessor) throws SQLException { if (!supportsAutoCommit()) { accessor.getConnection().rollback(); } }
/** * Used for jdbc drivers which do not support autocommit to explicitly commit a transaction * This method is a no-op for databases which implement autocommit as expected. */ public void commitTransaction(DatabaseAccessor accessor) throws SQLException { if (!supportsAutoCommit()) { accessor.getConnection().commit(); } }
/** * Used for jdbc drivers which do not support autocommit to explicitly commit a transaction * This method is a no-op for databases which implement autocommit as expected. */ public void commitTransaction(DatabaseAccessor accessor) throws SQLException { if (!supportsAutoCommit()) { accessor.getConnection().commit(); } }
/** * Close the connection. */ public void closeDatasourceConnection() throws DatabaseException { try { getConnection().close(); } catch (SQLException exception) { throw DatabaseException.sqlException(exception, this, null, false); } }
/** * Close the connection. */ @Override public void closeDatasourceConnection() throws DatabaseException { try { getConnection().close(); } catch (SQLException exception) { throw DatabaseException.sqlException(exception, this, null, false); } }
/** * Used by JDBC drivers that do not support autocommit so simulate an autocommit. */ public void autoCommit(DatabaseAccessor accessor) throws SQLException { if (!supportsAutoCommit()) { accessor.getConnection().commit(); } }
/** * Used for jdbc drivers which do not support autocommit to explicitly commit a transaction * This method is a no-op for databases which implement autocommit as expected. */ public void commitTransaction(DatabaseAccessor accessor) throws SQLException { if (!supportsAutoCommit()) { accessor.getConnection().commit(); } }
/** * Close the connection. */ @Override public void closeDatasourceConnection() throws DatabaseException { try { getConnection().close(); } catch (SQLException exception) { throw DatabaseException.sqlException(exception, this, null, false); } }
/** * INTERNAL: * Build and return the field value from the specified nested database row. * The database better be expecting a Struct. */ @Override public Object buildFieldValueFromNestedRow(AbstractRecord nestedRow, AbstractSession session) throws DatabaseException { java.sql.Connection connection = ((DatabaseAccessor)session.getAccessor()).getConnection(); return this.buildStructureFromRow(nestedRow, session, connection); }
/** * INTERNAL: * Build and return the field value from the specified nested database row. * The database better be expecting a Struct. */ public Object buildFieldValueFromNestedRow(AbstractRecord nestedRow, AbstractSession session) throws DatabaseException { java.sql.Connection connection = ((DatabaseAccessor)session.getAccessor()).getConnection(); return this.buildStructureFromRow(nestedRow, session, connection); }
/** * INTERNAL: * Build and return the field value from the specified nested database row. * The database better be expecting a Struct. */ @Override public Object buildFieldValueFromNestedRow(AbstractRecord nestedRow, AbstractSession session) throws DatabaseException { java.sql.Connection connection = ((DatabaseAccessor)session.getAccessor()).getConnection(); return this.buildStructureFromRow(nestedRow, session, connection); }