|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--xbn.XBNObject | +--xbn.db.DBConnStatement
A convenience class to manage a Statement, and the associated DBConnDirect and sql text.
Source code: DBConnStatement.java.
Fields inherited from class xbn.XBNObject |
bFALSE_IN_PRODUCTION, bTRUE_IN_PRODUCTION, sCNSTR, sES, sLINE_SEP |
Constructor Summary | |
DBConnStatement(DBConnDirect db_connDirect,
String s_sql)
Create a DBConnStatement. |
|
DBConnStatement(DBConnDirect db_connDirect,
String s_sql,
int i_resultSetType,
int i_resultSetConcurrency)
Create a DBConnStatement. |
Method Summary | |
protected void |
crashAtStatementCreate(SQLException sql_x,
NullPointerException np_x)
|
DBConnDirect |
getDBConnDirect()
Get the DBConnDirect for direct manipulation. |
int |
getRSConcurrency()
Get the ResultSet concurrency. |
int |
getRSType()
Get the ResultSet type. |
String |
getSql()
Get the sql statement. |
abstract Statement |
getStatement()
Actually create and get the statement. |
protected void |
throwSQLX(String s_funcMsg)
|
boolean |
wereExtraRSSettingsProvided()
Were the extra ResultSet settings provided? |
Methods inherited from class xbn.XBNObject |
getXMsgPrefix, sop, sopl, sopl, throwAX, throwAXIfBadStr, throwAXIfNull, throwAXSpoof |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DBConnStatement(DBConnDirect db_connDirect, String s_sql)
Create a DBConnStatement.
db_connDirect
- The database connection. May not be null.s_sql
- The sql statement. May not be null or zero characters in length.public DBConnStatement(DBConnDirect db_connDirect, String s_sql, int i_resultSetType, int i_resultSetConcurrency)
Create a DBConnStatement.
db_connDirect
- The database connection. May not be null.s_sql
- The sql statement. May not be null or zero characters in length.i_resultSetType
- See Connection.createStatement for information.i_resultSetConcurrency
- See Connection.createStatement for information.Method Detail |
public abstract Statement getStatement()
Actually create and get the statement.
public final DBConnDirect getDBConnDirect()
Get the DBConnDirect for direct manipulation.
public final String getSql()
Get the sql statement.
public final int getRSType()
Get the ResultSet type.
AssertException
- If the two-parameter constructor was used, meaning the result set type setting was never provided.public final int getRSConcurrency()
Get the ResultSet concurrency.
AssertException
- If the two-parameter constructor was used, meaning the result set concurrency setting was never provided.public final boolean wereExtraRSSettingsProvided()
Were the extra ResultSet settings provided?
protected final void crashAtStatementCreate(SQLException sql_x, NullPointerException np_x) throws SQLException
protected final void throwSQLX(String s_funcMsg) throws SQLException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1997-2003, Jeff Epstein, All Rights Reserved. See top of source code files for copyright notice.
http://sourceforge.net/projects/xbnjava