|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--HMS.jdbcConnection
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
jdbcConnection()
|
Method Summary | |
boolean |
commit()
Commits all changes to the database |
void |
dropConnection()
|
protected void |
finalize()
Overriden method that will drop the connection when the object is destroyed |
java.sql.ResultSet |
getData(java.lang.String sData)
Allows queries of the database |
boolean |
rollback()
Rolls back any changes to the database |
boolean |
setData(java.lang.String sUpdate)
Allows inserts into the database |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public jdbcConnection()
Method Detail |
public void dropConnection()
protected void finalize()
finalize
in class java.lang.Object
public boolean setData(java.lang.String sUpdate)
sUpdate
- -- SQL statement to insert into databasepublic java.sql.ResultSet getData(java.lang.String sData)
sData
- contains statement regarding database selectpublic boolean commit()
public boolean rollback()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |