All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface ibs.ebf.db.IConnection

public interface IConnection
IConnection interface provides other classes a mechanism for interacting with the database connection.

See Also:
EbfConnection, IResultSet

Method Index

 o clearWarnings()
Clears SQL warnings generated by the connection.
 o createStatement()
SQL statements without parameters are normally executed using Statement objects.
 o getCatalog()
Returns current connections catalog name.
 o getConnectionTimeStamp()
Returns a java.util.Date object containing timestamp that indicates the date/time when this connection was established.
 o getUrl()
Returns a URL string of the url that was used for establishing this connection.
 o getWarnings()
Returns a SQLWarning object containing SQL warnings generated by the connection.
 o isClosed()
Check to see if current connection is closed.
 o isReadOnly()
Tests to see if this connection is set to ReadOnly.
 o nativeSQL(String)
A driver may convert the JDBC sql grammar into its system's native SQL grammar prior to sending it; nativeSQL returns the native form of the statement that the driver would have sent.
 o prepareCall(String)
A SQL statement with or without IN parameters can be pre-compiled and stored in a PreparedStatement object.
 o prepareStatement(String)
A SQL statement with or without IN parameters can be pre-compiled and stored in a PreparedStatement object.
 o setAutoCommit(boolean)
 o setReadOnly(boolean)
Set this connection to ReadOnly.
 o setTransactionIsolation(int)
Set transaction isolation level ....

Methods

 o getConnectionTimeStamp
 public abstract SimpleDate getConnectionTimeStamp()
Returns a java.util.Date object containing timestamp that indicates the date/time when this connection was established.

See Also:
EbfConnectionPool
 o getUrl
 public abstract String getUrl()
Returns a URL string of the url that was used for establishing this connection.

See Also:
EbfConnectionPool
 o setTransactionIsolation
 public abstract void setTransactionIsolation(int level) throws SQLException
Set transaction isolation level .... TRANSACTION_NONE
- Transactions are not supported.

TRANSACTION_READ_COMMITTED
- Dirty reads are prevented; non-repeatable reads and phantom reads can occur.

TRANSACTION_READ_UNCOMMITTED
- Dirty reads, non-repeatable reads and phantom reads can occur.

TRANSACTION_REPEATABLE_READ
- Dirty reads and non-repeatable reads are prevented; phantom reads can occur.

TRANSACTION_SERIALIZABLE
- Dirty reads, non-repeatable reads and phantom reads are prevented.

Parameters:
level - Transaction isolation level
Throws: SQLException
In case of any sql errors.
See Also:
Connection
 o getWarnings
 public abstract SQLWarning getWarnings() throws SQLException
Returns a SQLWarning object containing SQL warnings generated by the connection.

See Also:
SQLWarning
 o clearWarnings
 public abstract void clearWarnings() throws SQLException
Clears SQL warnings generated by the connection.

See Also:
SQLWarning
 o isReadOnly
 public abstract boolean isReadOnly() throws SQLException
Tests to see if this connection is set to ReadOnly.

See Also:
Connection
 o setAutoCommit
 public abstract void setAutoCommit(boolean autoCommit) throws SQLException
 o isClosed
 public abstract boolean isClosed() throws SQLException
Check to see if current connection is closed. Returns true if closed, otherwise false.

Returns:
A boolean value.
 o nativeSQL
 public abstract String nativeSQL(String sql_string) throws SQLException
A driver may convert the JDBC sql grammar into its system's native SQL grammar prior to sending it; nativeSQL returns the native form of the statement that the driver would have sent.

Returns:
A String containing native form of the statement that the driver would have sent.
Throws: SQLException
In case of any sql errors.
See Also:
Connection
 o getCatalog
 public abstract String getCatalog() throws SQLException
Returns current connections catalog name.

Throws: SQLException
In case of any sql errors.
See Also:
Connection
 o setReadOnly
 public abstract void setReadOnly(boolean read_only) throws SQLException
Set this connection to ReadOnly. This settings cannot be changed in the middle of a transaction.

Parameters:
read_only - A boolean value indicating whether to set current transaction read only or not.
Throws: SQLException
In case of any sql errors.
See Also:
Connection
 o prepareStatement
 public abstract PreparedStatement prepareStatement(String sql) throws SQLException
A SQL statement with or without IN parameters can be pre-compiled and stored in a PreparedStatement object. This object can then be used to efficiently execute this statement multiple times.

See Also:
Connection, PreparedStatement
 o prepareCall
 public abstract CallableStatement prepareCall(String sql) throws SQLException
A SQL statement with or without IN parameters can be pre-compiled and stored in a PreparedStatement object. This object can then be used to efficiently execute this statement multiple times.

See Also:
Connection, CallableStatement
 o createStatement
 public abstract Statement createStatement() throws SQLException
SQL statements without parameters are normally executed using Statement objects. If the same SQL statement is executed many times, it is more efficient to use a PreparedStatement

See Also:
Connection, Statement

All Packages  Class Hierarchy  This Package  Previous  Next  Index