|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectsky.engine.connector.database.DBConnection
DBConnection is used by forms to query and update back-end relational database.
$RCSfile: DBConnection.java,v $
$Revision: 1.5 $, $Date: 2005/04/24 03:14:04 $
| Field Summary | |
static FormattedResourceBundle |
STRINGS
|
| Constructor Summary | |
DBConnection(java.lang.String jdrv,
java.lang.String jurl,
int maxstmts,
int id)
Constructor |
|
| Method Summary | |
void |
clear()
Resets state information for all the statements in this connection. |
void |
clear(int id)
resets all state information associated with a given statement in this connection. |
void |
close()
Clear all state information and close this connection. |
boolean |
connectsTo(java.lang.String jdrv,
java.lang.String jurl)
Check if this connection connects using a perticular JDBC driver and JDBC URL. |
DBRowIterator |
executeQuery(int id,
java.lang.String query)
Execute a SELECT query. |
int |
executeUpdate(int id,
java.lang.String query)
Execute INSERT, UPDATE, DELETE, CREATE, DROP statements. |
int |
getConnectionID()
Get unique id of this connection |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final FormattedResourceBundle STRINGS
| Constructor Detail |
public DBConnection(java.lang.String jdrv,
java.lang.String jurl,
int maxstmts,
int id)
throws ErrorMessage
jdrv - JDBC driver namejurl - JDBC dirver URL.maxstmts - Maximum number of statements that this connection can have.id - unique id of this connection.
ErrorMessage - if there is a runtime error.| Method Detail |
public DBRowIterator executeQuery(int id,
java.lang.String query)
throws ErrorMessage
id - unique id that identifies the query.query - query string.
ErrorMessage - if there is an error.
public int executeUpdate(int id,
java.lang.String query)
throws ErrorMessage
id - unique id that identifies the query.query - query string.
ErrorMessage - if there is an error.public void clear(int id)
id - statement id.public void clear()
public void close()
throws ErrorMessage
ErrorMessage - if there is an error.
public boolean connectsTo(java.lang.String jdrv,
java.lang.String jurl)
jdrv - JDBC driver name.jurl - JDBC url for the back-end database.
public int getConnectionID()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||