Ctx(Connection)
Format:
public Ctx(java.sql.Connection JDBC-connection-object)
throws SQLException
Parameters:
JDBC-connection-object
A previously created JDBC Connection object.
If the constructor call throws an SQLException, the JDBC Connection object
remains open.
Ctx(ConnectionContext)
Format:
public Ctx(sqlj.runtime.ConnectionContext SQLJ-connection-context-object)
throws SQLException
Parameters:
SQLJ-connection-context-object
A previously created SQLJ ConnectionContext object.
The following constructors are defined in a concrete implementation of the
ConnectionContext interface that results from translation of the statement #sql
context Ctx with (dataSource ="jdbc/TestDS");:
Ctx()
Format:
public Ctx()
throws SQLException
Ctx(String, String)
Format:
public Ctx(String user, String password,
)
throws SQLException
Parameters:
user
The user ID under which the connection to the data source is made.
password
The password for the user ID under which the connection to the data
source is made.
Ctx(Connection)
Format:
public Ctx(java.sql.Connection JDBC-connection-object)
throws SQLException
Parameters:
JDBC-connection-object
A previously created JDBC Connection object.
If the constructor call throws an SQLException, the JDBC Connection object
remains open.
296 Application Programming Guide and Reference for Java
â„¢