|
i-net Konnekter | ||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectcom.inet.jj.cli.JJConnection
The JJConnection class is a implementation of the java.sql.Connection interface.
Connection objects obtained from i-net Konnekter can be cast to this class to access
i-net Konnekter - specific methods or to use JDBC 2.0 features under Java 1.1.x.
E.g. JJConnection con = (JJConnection)DriverManager.getConnection(..)
Below listed the i-net Konnekter - specific methods different from the JDBC API.
| Field Summary |
| Fields inherited from interface java.sql.Connection |
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE |
| Method Summary | |
void |
clearWarnings()
|
void |
close()
|
void |
commit()
|
java.sql.Statement |
createStatement()
|
java.sql.Statement |
createStatement(int resultSetType,
int resultSetConcurrency)
|
void |
finalize()
|
boolean |
getAutoCommit()
|
java.lang.String |
getCatalog()
|
java.lang.String |
getClientHostName()
Returns the client host name. |
java.sql.DatabaseMetaData |
getMetaData()
|
int |
getTransactionIsolation()
|
java.util.Map |
getTypeMap()
|
java.sql.SQLWarning |
getWarnings()
|
boolean |
isClosed()
|
boolean |
isReadOnly()
|
java.lang.String |
nativeSQL(java.lang.String sql)
|
java.sql.CallableStatement |
prepareCall(java.lang.String sql)
|
java.sql.CallableStatement |
prepareCall(java.lang.String sql,
int resultSetType,
int resultSetConcurrency)
|
java.sql.CallableStatement |
prepareCallCommand(java.lang.String cmd,
int paramCount)
Creates a new CallableStatement object for the specified command stored on the server. |
java.sql.CallableStatement |
prepareCallCommand(java.lang.String cmd,
int paramCount,
int resultSetType,
int resultSetConcurrency)
Creates a CallableStatement object for the specified command stored on the server that will generate ResultSet objects with the given type and concurrency. |
java.sql.PreparedStatement |
prepareCommand(java.lang.String cmd,
int paramCount)
Creates a new PreparedStatement object for the specified command stored on the server. |
java.sql.PreparedStatement |
prepareCommand(java.lang.String cmd,
int paramCount,
int resultSetType,
int resultSetConcurrency)
Creates a new PreparedStatement object for the specified command stored on the server. |
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql)
|
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql,
int resultSetType,
int resultSetConcurrency)
|
void |
rollback()
|
void |
setAutoCommit(boolean autoCommit)
|
void |
setCatalog(java.lang.String catalog)
|
void |
setReadOnly(boolean readOnly)
|
void |
setTransactionIsolation(int level)
|
void |
setTypeMap(java.util.Map map)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.sql.Connection |
createStatement, getHoldability, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, setHoldability, setSavepoint, setSavepoint |
| Method Detail |
public void clearWarnings()
throws java.sql.SQLException
clearWarnings in interface java.sql.Connectionjava.sql.SQLExceptionpublic void close()
close in interface java.sql.Connectionpublic void finalize()
public void commit()
throws java.sql.SQLException
commit in interface java.sql.Connectionjava.sql.SQLException
public java.sql.Statement createStatement(int resultSetType,
int resultSetConcurrency)
throws java.sql.SQLException
createStatement in interface java.sql.Connectionjava.sql.SQLException
public java.sql.Statement createStatement()
throws java.sql.SQLException
createStatement in interface java.sql.Connectionjava.sql.SQLException
public boolean getAutoCommit()
throws java.sql.SQLException
getAutoCommit in interface java.sql.Connectionjava.sql.SQLException
public java.lang.String getCatalog()
throws java.sql.SQLException
getCatalog in interface java.sql.Connectionjava.sql.SQLException
public java.sql.DatabaseMetaData getMetaData()
throws java.sql.SQLException
getMetaData in interface java.sql.Connectionjava.sql.SQLException
public int getTransactionIsolation()
throws java.sql.SQLException
getTransactionIsolation in interface java.sql.Connectionjava.sql.SQLException
public java.util.Map getTypeMap()
throws java.sql.SQLException
getTypeMap in interface java.sql.Connectionjava.sql.SQLException
public java.sql.SQLWarning getWarnings()
throws java.sql.SQLException
getWarnings in interface java.sql.Connectionjava.sql.SQLExceptionpublic boolean isClosed()
isClosed in interface java.sql.Connection
public boolean isReadOnly()
throws java.sql.SQLException
isReadOnly in interface java.sql.Connectionjava.sql.SQLException
public java.lang.String nativeSQL(java.lang.String sql)
throws java.sql.SQLException
nativeSQL in interface java.sql.Connectionjava.sql.SQLException
public java.sql.CallableStatement prepareCall(java.lang.String sql,
int resultSetType,
int resultSetConcurrency)
throws java.sql.SQLException
prepareCall in interface java.sql.Connectionjava.sql.SQLException
public java.sql.CallableStatement prepareCallCommand(java.lang.String cmd,
int paramCount,
int resultSetType,
int resultSetConcurrency)
throws java.sql.SQLException
cmd - the command's name.paramCount - the number of parameters which must be supplied for this command.resultSetType - a result set type; see ResultSet.TYPE_XXXresultSetConcurrency - a concurrency type; see ResultSet.CONCUR_XXX
java.sql.SQLException - if a database access error occursprepareCallCommand(String, int),
JJServer.addCommand(String, String),
JJServer.addCommand(String, JavaCommandFactory)
public java.sql.CallableStatement prepareCall(java.lang.String sql)
throws java.sql.SQLException
prepareCall in interface java.sql.Connectionjava.sql.SQLException
public java.sql.CallableStatement prepareCallCommand(java.lang.String cmd,
int paramCount)
throws java.sql.SQLException
cmd - the command's name.paramCount - the number of parameters which must be supplied for this command.
java.sql.SQLException - if a database access error occursprepareCallCommand(String, int, int, int),
JJServer.addCommand(String, String),
JJServer.addCommand(String, JavaCommandFactory)
public java.sql.PreparedStatement prepareStatement(java.lang.String sql)
throws java.sql.SQLException
prepareStatement in interface java.sql.Connectionjava.sql.SQLException
public java.sql.PreparedStatement prepareCommand(java.lang.String cmd,
int paramCount)
throws java.sql.SQLException
cmd - the command's name.paramCount - the number of parameters which must be supplied for this command.
java.sql.SQLException - if a database access error occursprepareCommand(String, int, int, int),
JJServer.addCommand(String, String),
JJServer.addCommand(String, JavaCommandFactory)
public java.sql.PreparedStatement prepareStatement(java.lang.String sql,
int resultSetType,
int resultSetConcurrency)
throws java.sql.SQLException
prepareStatement in interface java.sql.Connectionjava.sql.SQLException
public java.sql.PreparedStatement prepareCommand(java.lang.String cmd,
int paramCount,
int resultSetType,
int resultSetConcurrency)
throws java.sql.SQLException
cmd - the command's name.paramCount - the number of parameters which must be supplied for this command.resultSetType - a result set type; see ResultSet.TYPE_XXXresultSetConcurrency - a concurrency type; see ResultSet.CONCUR_XXX
java.sql.SQLException - if a database access error occursprepareCommand(String, int, int, int),
JJServer.addCommand(String, String),
JJServer.addCommand(String, JavaCommandFactory)
public void rollback()
throws java.sql.SQLException
rollback in interface java.sql.Connectionjava.sql.SQLException
public void setAutoCommit(boolean autoCommit)
throws java.sql.SQLException
setAutoCommit in interface java.sql.Connectionjava.sql.SQLException
public void setCatalog(java.lang.String catalog)
throws java.sql.SQLException
setCatalog in interface java.sql.Connectionjava.sql.SQLException
public void setReadOnly(boolean readOnly)
throws java.sql.SQLException
setReadOnly in interface java.sql.Connectionjava.sql.SQLException
public void setTransactionIsolation(int level)
throws java.sql.SQLException
setTransactionIsolation in interface java.sql.Connectionjava.sql.SQLException
public void setTypeMap(java.util.Map map)
throws java.sql.SQLException
setTypeMap in interface java.sql.Connectionjava.sql.SQLException
public java.lang.String getClientHostName()
throws java.sql.SQLException
java.sql.SQLException
|
i-net Konnekter | ||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||