com.ibm.ims.rds
Class ClientConnection

java.lang.Object
  |
  +--com.ibm.ims.rds.ClientConnection
All Implemented Interfaces:
java.sql.Connection, java.io.Serializable

public class ClientConnection
extends java.lang.Object
implements java.sql.Connection, java.io.Serializable

See Also:
Serialized Form

Fields inherited from interface java.sql.Connection
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE
 
Constructor Summary
ClientConnection(com.ibm.ims.rds.ClientManagedConnection managedConnection, boolean isManagedServer)
          Creates a connection with a DL/I database.
 
Method Summary
 void clearWarnings()
           
 void close()
          Closes the connection
 void commit()
          This function is supported for Bean Managed EJBs only.
 java.sql.Statement createStatement()
          Implements the Connection.createStatement() method returning a ClientStatement object as its parent class Statement.
 java.sql.Statement createStatement(int resultSetType, int resultSetConcurrency)
          Implements the Connection.createStatement() method returning a ClientStatement object as its parent class Statement.
 boolean getAutoCommit()
           
 java.lang.String getCatalog()
          This function is not supported
 java.sql.DatabaseMetaData getMetaData()
          This function is not supported
 int getTransactionIsolation()
           
 java.util.Map getTypeMap()
          This function is not supported
 java.sql.SQLWarning getWarnings()
           
 boolean isClosed()
           
 boolean isReadOnly()
           
 java.lang.String nativeSQL(java.lang.String sql)
           
 java.sql.CallableStatement prepareCall(java.lang.String sql)
          This function is not supported
 java.sql.CallableStatement prepareCall(java.lang.String sql, int resultSetType, int resultSetConcurrency)
          This function is not supported
 java.sql.PreparedStatement prepareStatement(java.lang.String sql)
          Implements the Connection.prepareStatement() method returning a DLIPreparedStatement object as its parent class PreparedStatement Result sets created using the returned PreparedStatement will have forward-only type and read-only concurrency, by default.
 java.sql.PreparedStatement prepareStatement(java.lang.String sql, int resultSetType, int resultSetConcurrency)
          Implements the Connection.prepareStatement() method returning a DLIPreparedStatement object as its parent class PreparedStatement Result sets created using the returned PreparedStatement will have forward-only type and read-only concurrency, by default.
 void rollback()
          This function is supported for Bean Managed EJBs only.
 void setAutoCommit(boolean autoCommit)
          This function does not support setting autoCommit to true
 void setCatalog(java.lang.String catalog)
          This function is not supported
 void setReadOnly(boolean readOnly)
           
 void setTransactionIsolation(int level)
           
 void setTypeMap(java.util.Map map)
          This function is not supported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientConnection

public ClientConnection(com.ibm.ims.rds.ClientManagedConnection managedConnection,
                        boolean isManagedServer)
Creates a connection with a DL/I database.
Method Detail

createStatement

public java.sql.Statement createStatement()
                                   throws java.sql.SQLException
Implements the Connection.createStatement() method returning a ClientStatement object as its parent class Statement. Result sets created using the returned Statement object will by default have forward-only type and read-only concurrency.
Specified by:
createStatement in interface java.sql.Connection
Returns:
a new Statement object
Throws:
java.sql.SQLException - if a database access error occurs

prepareStatement

public java.sql.PreparedStatement prepareStatement(java.lang.String sql)
                                            throws java.sql.SQLException
Implements the Connection.prepareStatement() method returning a DLIPreparedStatement object as its parent class PreparedStatement Result sets created using the returned PreparedStatement will have forward-only type and read-only concurrency, by default.
Specified by:
prepareStatement in interface java.sql.Connection
Parameters:
sql - a SQL statement that may contain one or more '?' IN parameter placeholders
Returns:
a new PreparedStatement object containing the pre-compiled statement
Throws:
java.sql.SQLException - if a database access error occurs

prepareCall

public java.sql.CallableStatement prepareCall(java.lang.String sql)
                                       throws java.sql.SQLException
This function is not supported
Specified by:
prepareCall in interface java.sql.Connection

nativeSQL

public java.lang.String nativeSQL(java.lang.String sql)
                           throws java.sql.SQLException
Specified by:
nativeSQL in interface java.sql.Connection

setAutoCommit

public void setAutoCommit(boolean autoCommit)
                   throws java.sql.SQLException
This function does not support setting autoCommit to true
Specified by:
setAutoCommit in interface java.sql.Connection

getAutoCommit

public boolean getAutoCommit()
                      throws java.sql.SQLException
Specified by:
getAutoCommit in interface java.sql.Connection

commit

public void commit()
            throws java.sql.SQLException
This function is supported for Bean Managed EJBs only.
Specified by:
commit in interface java.sql.Connection

rollback

public void rollback()
              throws java.sql.SQLException
This function is supported for Bean Managed EJBs only.
Specified by:
rollback in interface java.sql.Connection

close

public void close()
           throws java.sql.SQLException
Closes the connection
Specified by:
close in interface java.sql.Connection

isClosed

public boolean isClosed()
                 throws java.sql.SQLException
Specified by:
isClosed in interface java.sql.Connection

getMetaData

public java.sql.DatabaseMetaData getMetaData()
                                      throws java.sql.SQLException
This function is not supported
Specified by:
getMetaData in interface java.sql.Connection

setReadOnly

public void setReadOnly(boolean readOnly)
                 throws java.sql.SQLException
Specified by:
setReadOnly in interface java.sql.Connection

isReadOnly

public boolean isReadOnly()
                   throws java.sql.SQLException
Specified by:
isReadOnly in interface java.sql.Connection

setCatalog

public void setCatalog(java.lang.String catalog)
                throws java.sql.SQLException
This function is not supported
Specified by:
setCatalog in interface java.sql.Connection

getCatalog

public java.lang.String getCatalog()
                            throws java.sql.SQLException
This function is not supported
Specified by:
getCatalog in interface java.sql.Connection

setTransactionIsolation

public void setTransactionIsolation(int level)
                             throws java.sql.SQLException
Specified by:
setTransactionIsolation in interface java.sql.Connection

getTransactionIsolation

public int getTransactionIsolation()
                            throws java.sql.SQLException
Specified by:
getTransactionIsolation in interface java.sql.Connection

getWarnings

public java.sql.SQLWarning getWarnings()
                                throws java.sql.SQLException
Specified by:
getWarnings in interface java.sql.Connection

clearWarnings

public void clearWarnings()
                   throws java.sql.SQLException
Specified by:
clearWarnings in interface java.sql.Connection

createStatement

public java.sql.Statement createStatement(int resultSetType,
                                          int resultSetConcurrency)
                                   throws java.sql.SQLException
Implements the Connection.createStatement() method returning a ClientStatement object as its parent class Statement.
Specified by:
createStatement in interface java.sql.Connection
Parameters:
resultSetType - a result set type; see ResultSet.TYPE_XXX
resultSetConcurrency - a concurrency type; see ResultSet.CONCUR_XXX
Returns:
a new Statement object
Throws:
java.sql.SQLException - if a database access error occurs

prepareStatement

public java.sql.PreparedStatement prepareStatement(java.lang.String sql,
                                                   int resultSetType,
                                                   int resultSetConcurrency)
                                            throws java.sql.SQLException
Implements the Connection.prepareStatement() method returning a DLIPreparedStatement object as its parent class PreparedStatement Result sets created using the returned PreparedStatement will have forward-only type and read-only concurrency, by default.
Specified by:
prepareStatement in interface java.sql.Connection
Parameters:
sql - a SQL statement that may contain one or more '?' IN parameter placeholders
resultSetType - a result set type; see ResultSet.TYPE_XXX
resultSetConcurrency - a concurrency type; see ResultSet.CONCUR_XXX
Returns:
a new PreparedStatement object containing the pre-compiled SQL statement
Throws:
java.sql.SQLException - if a database access error occurs

prepareCall

public java.sql.CallableStatement prepareCall(java.lang.String sql,
                                              int resultSetType,
                                              int resultSetConcurrency)
                                       throws java.sql.SQLException
This function is not supported
Specified by:
prepareCall in interface java.sql.Connection

getTypeMap

public java.util.Map getTypeMap()
                         throws java.sql.SQLException
This function is not supported
Specified by:
getTypeMap in interface java.sql.Connection

setTypeMap

public void setTypeMap(java.util.Map map)
                throws java.sql.SQLException
This function is not supported
Specified by:
setTypeMap in interface java.sql.Connection


(C) International Business Machines Corporation 2004. All rights reserved.