|
|||||||||
| Home >> All >> com >> mockobjects >> eziba >> [ sql overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.mockobjects.eziba.sql
Class Connection

java.lang.Objectcom.mockobjects.eziba.sql.Connection
- All Implemented Interfaces:
- java.sql.Connection
- public class Connection
- extends java.lang.Object
- implements java.sql.Connection
- extends java.lang.Object
| Field Summary | |
private ConnectionMap |
m_callMap
|
private boolean |
m_closed
|
private ConnectionMap |
m_resultMap
|
private ConnectionMap |
m_updateMap
|
static java.lang.Object |
WILDCARD
|
| Fields inherited from interface java.sql.Connection |
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE |
| Constructor Summary | |
(package private) |
Connection()
|
| Method Summary | |
void |
clearWarnings()
This method clears all warnings that have occurred on this connection. |
void |
close()
This method immediately closes this database connection. |
void |
commit()
This method commits any SQL statements executed on this connection since the last commit or rollback. |
java.sql.Statement |
createStatement()
This method creates a new SQL statement. |
java.sql.Statement |
createStatement(int p_resultSetType,
int p_resultSetConcurrency)
This method creates a new SQL statement with the specified type and concurrency. |
boolean |
getAutoCommit()
This method tests whether or not auto commit mode is currently enabled. |
java.lang.String |
getCatalog()
This method returns the name of the catalog in use by this connection, if any. |
java.sql.DatabaseMetaData |
getMetaData()
This method returns the meta data for this database connection. |
(package private) java.lang.Object[] |
getRegisteredCall(java.lang.String p_sql,
java.lang.Object[] p_args)
|
int |
getRegisteredCallCount()
|
int |
getRegisteredCount()
|
(package private) java.sql.ResultSet |
getRegisteredResult(java.lang.String p_sql,
java.lang.Object[] p_args)
|
int |
getRegisteredResultCount()
|
(package private) int |
getRegisteredUpdate(java.lang.String p_sql,
java.lang.Object[] p_args)
|
int |
getRegisteredUpdateCount()
|
java.lang.String |
getRegistryContents()
|
int |
getTransactionIsolation()
This method returns the current transaction isolation mode. |
java.util.Map |
getTypeMap()
This method returns the mapping of SQL types to Java classes currently in use by this connection. |
java.sql.SQLWarning |
getWarnings()
This method returns the first warning that occurred on this connection, if any. |
boolean |
isClosed()
This method tests whether or not this connection has been closed. |
boolean |
isReadOnly()
This method tests whether or not this connection is in read only mode. |
java.lang.String |
nativeSQL(java.lang.String p_sql)
This method converts the specified generic SQL statement into the native grammer of the database this object is connected to. |
java.sql.CallableStatement |
prepareCall(java.lang.String p_sql)
This method creates a new CallableStatement for the
specified SQL string. |
java.sql.CallableStatement |
prepareCall(java.lang.String p_sql,
int rsType,
int rsConcurrency)
This method creates a new CallableStatement for the
specified SQL string. |
java.sql.PreparedStatement |
prepareStatement(java.lang.String p_sql)
This method creates a new PreparedStatement for the specified
SQL string. |
java.sql.PreparedStatement |
prepareStatement(java.lang.String p_sql,
int rsType,
int rsConcurrency)
This method creates a new PreparedStatement for the specified
SQL string. |
void |
registerCall(java.lang.String p_sql,
java.lang.Object[] p_args,
java.lang.Object[] p_output)
|
void |
registerResult(java.lang.String p_sql,
java.lang.Object[] p_args,
java.sql.ResultSet p_resultSet)
|
void |
registerUpdate(java.lang.String p_sql,
java.lang.Object[] p_args,
int p_result)
|
void |
rollback()
This method rolls back any SQL statements executed on this connection since the last commit or rollback. |
void |
setAutoCommit(boolean p_autoCommit)
This method turns auto commit mode on or off. |
void |
setCatalog(java.lang.String p_catalog)
This method sets the name of the catalog in use by this connection. |
void |
setReadOnly(boolean p_readOnly)
This method turns read only mode on or off. |
void |
setTransactionIsolation(int p_level)
This method sets the current transaction isolation mode. |
void |
setTypeMap(java.util.Map p_map)
This method sets the mapping table for SQL types to Java classes. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, 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 |
| Field Detail |
WILDCARD
public static final java.lang.Object WILDCARD
m_closed
private boolean m_closed
m_resultMap
private ConnectionMap m_resultMap
m_callMap
private ConnectionMap m_callMap
m_updateMap
private ConnectionMap m_updateMap
| Constructor Detail |
Connection
Connection()
| Method Detail |
getRegisteredResult
java.sql.ResultSet getRegisteredResult(java.lang.String p_sql, java.lang.Object[] p_args) throws java.sql.SQLException
getRegisteredUpdate
int getRegisteredUpdate(java.lang.String p_sql, java.lang.Object[] p_args) throws java.sql.SQLException
getRegisteredCall
java.lang.Object[] getRegisteredCall(java.lang.String p_sql, java.lang.Object[] p_args) throws java.sql.SQLException
getRegistryContents
public java.lang.String getRegistryContents()
getRegisteredResultCount
public int getRegisteredResultCount()
getRegisteredCallCount
public int getRegisteredCallCount()
getRegisteredUpdateCount
public int getRegisteredUpdateCount()
getRegisteredCount
public int getRegisteredCount()
registerResult
public void registerResult(java.lang.String p_sql, java.lang.Object[] p_args, java.sql.ResultSet p_resultSet)
registerCall
public void registerCall(java.lang.String p_sql, java.lang.Object[] p_args, java.lang.Object[] p_output)
registerUpdate
public void registerUpdate(java.lang.String p_sql, java.lang.Object[] p_args, int p_result)
close
public void close()
throws java.sql.SQLException
- Description copied from interface:
java.sql.Connection - This method immediately closes this database connection.
- Specified by:
closein interfacejava.sql.Connection
isClosed
public boolean isClosed()
- Description copied from interface:
java.sql.Connection - This method tests whether or not this connection has been closed.
- Specified by:
isClosedin interfacejava.sql.Connection
prepareCall
public java.sql.CallableStatement prepareCall(java.lang.String p_sql) throws java.sql.SQLException
- Description copied from interface:
java.sql.Connection - This method creates a new
CallableStatementfor the specified SQL string. Thie method is designed to be used with stored procedures. The default result set type and concurrency will be used.- Specified by:
prepareCallin interfacejava.sql.Connection
prepareStatement
public java.sql.PreparedStatement prepareStatement(java.lang.String p_sql) throws java.sql.SQLException
- Description copied from interface:
java.sql.Connection - This method creates a new
PreparedStatementfor the specified SQL string. This method is designed for use with parameterized statements. The default result set type and concurrency will be used.- Specified by:
prepareStatementin interfacejava.sql.Connection
clearWarnings
public void clearWarnings()
- Description copied from interface:
java.sql.Connection - This method clears all warnings that have occurred on this connection.
- Specified by:
clearWarningsin interfacejava.sql.Connection
commit
public void commit()
- Description copied from interface:
java.sql.Connection - This method commits any SQL statements executed on this connection since
the last commit or rollback.
- Specified by:
commitin interfacejava.sql.Connection
createStatement
public java.sql.Statement createStatement()
- Description copied from interface:
java.sql.Connection - This method creates a new SQL statement. The default result set type
and concurrency will be used.
- Specified by:
createStatementin interfacejava.sql.Connection
createStatement
public java.sql.Statement createStatement(int p_resultSetType, int p_resultSetConcurrency)
- Description copied from interface:
java.sql.Connection - This method creates a new SQL statement with the specified type and
concurrency. Valid values for these parameters are specified in the
ResultSetclass.- Specified by:
createStatementin interfacejava.sql.Connection
getAutoCommit
public boolean getAutoCommit()
- Description copied from interface:
java.sql.Connection - This method tests whether or not auto commit mode is currently enabled.
In auto commit mode, every SQL statement is committed its own transaction.
Otherwise a transaction must be explicitly committed or rolled back.
- Specified by:
getAutoCommitin interfacejava.sql.Connection
getCatalog
public java.lang.String getCatalog()
- Description copied from interface:
java.sql.Connection - This method returns the name of the catalog in use by this connection,
if any.
- Specified by:
getCatalogin interfacejava.sql.Connection
getMetaData
public java.sql.DatabaseMetaData getMetaData()
- Description copied from interface:
java.sql.Connection - This method returns the meta data for this database connection.
- Specified by:
getMetaDatain interfacejava.sql.Connection
getTransactionIsolation
public int getTransactionIsolation()
- Description copied from interface:
java.sql.Connection - This method returns the current transaction isolation mode. This will
be one of the constants defined in this interface.
- Specified by:
getTransactionIsolationin interfacejava.sql.Connection
getTypeMap
public java.util.Map getTypeMap()
- Description copied from interface:
java.sql.Connection - This method returns the mapping of SQL types to Java classes
currently in use by this connection. This mapping will have no
entries unless they have been manually added.
- Specified by:
getTypeMapin interfacejava.sql.Connection
getWarnings
public java.sql.SQLWarning getWarnings()
- Description copied from interface:
java.sql.Connection - This method returns the first warning that occurred on this connection,
if any. If there were any subsequence warnings, they will be chained
to the first one.
- Specified by:
getWarningsin interfacejava.sql.Connection
isReadOnly
public boolean isReadOnly()
- Description copied from interface:
java.sql.Connection - This method tests whether or not this connection is in read only mode.
- Specified by:
isReadOnlyin interfacejava.sql.Connection
nativeSQL
public java.lang.String nativeSQL(java.lang.String p_sql)
- Description copied from interface:
java.sql.Connection - This method converts the specified generic SQL statement into the
native grammer of the database this object is connected to.
- Specified by:
nativeSQLin interfacejava.sql.Connection
prepareCall
public java.sql.CallableStatement prepareCall(java.lang.String p_sql, int rsType, int rsConcurrency)
- Description copied from interface:
java.sql.Connection - This method creates a new
CallableStatementfor the specified SQL string. Thie method is designed to be used with stored procedures. The specified result set type and concurrency will be used. Valid values for these parameters are specified in theResultSetclass.- Specified by:
prepareCallin interfacejava.sql.Connection
prepareStatement
public java.sql.PreparedStatement prepareStatement(java.lang.String p_sql, int rsType, int rsConcurrency)
- Description copied from interface:
java.sql.Connection - This method creates a new
PreparedStatementfor the specified SQL string. This method is designed for use with parameterized statements. The specified result set type and concurrency will be used. Valid values for these parameters are specified in theResultSetclass.- Specified by:
prepareStatementin interfacejava.sql.Connection
rollback
public void rollback()
- Description copied from interface:
java.sql.Connection - This method rolls back any SQL statements executed on this connection
since the last commit or rollback.
- Specified by:
rollbackin interfacejava.sql.Connection
setAutoCommit
public void setAutoCommit(boolean p_autoCommit)
- Description copied from interface:
java.sql.Connection - This method turns auto commit mode on or off. In auto commit mode,
every SQL statement is committed its own transaction. Otherwise a
transaction must be explicitly committed or rolled back.
- Specified by:
setAutoCommitin interfacejava.sql.Connection
setCatalog
public void setCatalog(java.lang.String p_catalog)
- Description copied from interface:
java.sql.Connection - This method sets the name of the catalog in use by this connection.
Note that this method does nothing if catalogs are not supported by
this database.
- Specified by:
setCatalogin interfacejava.sql.Connection
setReadOnly
public void setReadOnly(boolean p_readOnly)
- Description copied from interface:
java.sql.Connection - This method turns read only mode on or off. It may not be called while
a transaction is in progress.
- Specified by:
setReadOnlyin interfacejava.sql.Connection
setTransactionIsolation
public void setTransactionIsolation(int p_level)
- Description copied from interface:
java.sql.Connection - This method sets the current transaction isolation mode. This must
be one of the constants defined in this interface.
- Specified by:
setTransactionIsolationin interfacejava.sql.Connection
setTypeMap
public void setTypeMap(java.util.Map p_map)
- Description copied from interface:
java.sql.Connection - This method sets the mapping table for SQL types to Java classes.
Any entries in this map override the defaults.
- Specified by:
setTypeMapin interfacejava.sql.Connection
|
|||||||||
| Home >> All >> com >> mockobjects >> eziba >> [ sql overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.mockobjects.eziba.sql.Connection