|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.w3c.tools.jdbc.JdbcBean
Field Summary | |
protected boolean |
debug
|
protected java.lang.String |
driver
|
protected java.lang.String |
password
|
protected java.util.Properties |
props
|
protected java.lang.String |
result
|
protected java.lang.String |
sqlrequest
|
protected java.sql.ResultSet |
sqlresult
|
protected java.lang.String |
url
|
protected java.lang.String |
username
|
Constructor Summary | |
JdbcBean()
Constructor |
Method Summary | |
void |
executeSQL()
Send the SQL Request to the DB. |
void |
executeSQL(java.lang.String sqlrequest)
Send the given SQL Request to the DB. |
boolean |
getDebug()
Get the debug flag |
java.lang.String |
getDriver()
Get the JDBC driver |
int |
getMaxconn()
Get the max number of open connections to the DB |
java.lang.String |
getPassword()
Get the password property |
java.sql.ResultSet |
getResult()
Warning: can be null! |
java.lang.String |
getSqlrequest()
Get the SQL request property |
java.lang.String |
getUrl()
Get the JDBC URI property |
java.lang.String |
getUsername()
Get the username property |
void |
setDebug(boolean debug)
Set the debug flag |
void |
setDriver(java.lang.String driver)
Set the JDBC driver |
void |
setMaxconn(int maxconn)
Set the max number of open connections to the DB |
void |
setPassword(java.lang.String password)
Set the password property |
void |
setSqlrequest(java.lang.String sqlrequest)
Set the SQL request property |
void |
setUrl(java.lang.String url)
Set the JDBC URI property |
void |
setUsername(java.lang.String username)
Set the username property |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.Properties props
protected java.sql.ResultSet sqlresult
protected boolean debug
protected java.lang.String driver
protected java.lang.String username
protected java.lang.String password
protected java.lang.String url
protected java.lang.String sqlrequest
protected java.lang.String result
Constructor Detail |
public JdbcBean()
Method Detail |
public void setDebug(boolean debug)
debug
- a booleanpublic boolean getDebug()
public void setDriver(java.lang.String driver)
driver
- the jdbc driverpublic java.lang.String getDriver()
public void setUsername(java.lang.String username)
username
- public java.lang.String getUsername()
public void setPassword(java.lang.String password)
password
- public java.lang.String getPassword()
public void setUrl(java.lang.String url)
url
- public java.lang.String getUrl()
public void setSqlrequest(java.lang.String sqlrequest)
sqlrequest
- public java.lang.String getSqlrequest()
public void setMaxconn(int maxconn)
maxconn
- public int getMaxconn()
public void executeSQL()
nocache
- we don't use the cache if truepublic void executeSQL(java.lang.String sqlrequest)
sqlresult
- the SQL Requestnocache
- we don't use the cache if truepublic java.sql.ResultSet getResult()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |