|
Oracle Content Management SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.ifs.server.sql.IfsConnection
An IfsConnection represents a session with a specific database. Within the context of an IfsConnection, SQL statements are executed and results are returned.
Constructor Summary | |
IfsConnection(S_LibrarySession session)
Constructs an IfsConnection which holds the Jdbc connection. |
Method Summary | |
void |
clearWarnings()
After this call, getWarnings returns null until a new warning is reported for this IfsConnection. |
IfsStatement |
createStatement()
SQL statements without parameters are normally executed using IfsStatement objects. |
boolean |
getAutoCommit()
Get the current auto-commit state. |
java.lang.String |
getCatalog()
Return the IfsConnection's current catalog name. |
java.sql.DatabaseMetaData |
getMetaData()
An IfsConnection's database is able to provide information describing its tables, its supported SQL grammar, its stored procedures, the capabilities of this connection, etc. |
S_LibrarySession |
getSession()
Return the session that requested this connection. |
int |
getTransactionIsolation()
Get this IfsConnection's current transaction isolation mode. |
java.sql.SQLWarning |
getWarnings()
The first warning reported by calls on this IfsConnection is returned. |
boolean |
isClosed()
Tests to see if an IfsConnection is closed. |
boolean |
isReadOnly()
Tests to see if the connection is in read-only mode. |
java.lang.String |
nativeSQL(java.lang.String sql)
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. |
IfsCallableStatement |
prepareCall(java.lang.String sql)
A SQL stored procedure call statement is handled by creating a IfsCallableStatement for it. |
IfsPreparedStatement |
prepareStatement(java.lang.String sql)
A SQL statement with or without IN parameters can be pre-compiled and stored in an IfsPreparedStatement object. |
Constructor Detail |
public IfsConnection(S_LibrarySession session) throws IfsException
session
- the serverside LibrarySessionIfsException
- if the operation failsMethod Detail |
public S_LibrarySession getSession()
public IfsStatement createStatement() throws java.sql.SQLException
java.sql.SQLException
- if a database-access error occurs.public IfsPreparedStatement prepareStatement(java.lang.String sql) throws java.sql.SQLException
Note: This method is optimized for handling parametric SQL statements that benefit from precompilation. If the driver supports precompilation, this method will send the statement to the database for precompilation. Some drivers may not support precompilation. In this case, the statement may not be sent to the database until the IfsPreparedStatement is executed. This has no direct affect on users; however, it does affect which method throws certain SQLExceptions.
sql
- a SQL statement that may contain one or more '?' IN
parameter placeholdersjava.sql.SQLException
- if a database-access error occurs.public IfsCallableStatement prepareCall(java.lang.String sql) throws java.sql.SQLException
Note: This method is optimized for handling stored procedure call statements. Some drivers may send the call statement to the database when the prepareCall is done; others may wait until the IfsCallableStatement is executed. This has no direct affect on users; however, it does affect which method throws certain SQLExceptions.
sql
- a SQL statement that may contain one or more '?'
parameter placeholders. Typically this statement is a JDBC
function call escape string.java.sql.SQLException
- if a database-access error occurs.public java.lang.String nativeSQL(java.lang.String sql) throws java.sql.SQLException
sql
- a SQL statement that may contain one or more '?'
parameter placeholdersjava.sql.SQLException
- if a database-access error occurs.public boolean getAutoCommit() throws java.sql.SQLException
java.sql.SQLException
- if a database-access error occurs.setAutoCommit(boolean)
public boolean isClosed() throws java.sql.SQLException
java.sql.SQLException
- if a database-access error occurs.public java.sql.DatabaseMetaData getMetaData() throws java.sql.SQLException
java.sql.SQLException
- if a database-access error occurs.public boolean isReadOnly() throws java.sql.SQLException
java.sql.SQLException
- if a database-access error occurs.public java.lang.String getCatalog() throws java.sql.SQLException
java.sql.SQLException
- if a database-access error occurs.public int getTransactionIsolation() throws java.sql.SQLException
java.sql.SQLException
- if a database-access error occurs.public java.sql.SQLWarning getWarnings() throws java.sql.SQLException
Note: Subsequent warnings will be chained to this SQLWarning.
java.sql.SQLException
- if a database-access error occurs.public void clearWarnings() throws java.sql.SQLException
java.sql.SQLException
- if a database-access error occurs.
|
Oracle Content Management SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |