|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.lyra.Database.Interface.myConnections
private class Interface.myConnections
For some reason it is difficult to properly separate preparation and query results running without running into trouble. So this class is essentially a holder class for the PreparedStatement and ResultSet handles.
Field Summary | |
---|---|
private java.sql.PreparedStatement |
myPrepared
|
private java.sql.ResultSet |
myResult
|
Constructor Summary | |
---|---|
Interface.myConnections()
Default Constructor |
Method Summary | |
---|---|
void |
close()
Closes and nulls out all of the handles in this class. |
java.sql.PreparedStatement |
getPreparedStatement()
Gets the PreparedStatement element. |
java.sql.ResultSet |
getResultSet()
Sets the ResultSet element. |
void |
setPreparedStatement(java.sql.PreparedStatement ps)
Sets the PreparedStatement element. |
void |
setResultSet(java.sql.ResultSet rs)
Sets the ResultSet element. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.sql.PreparedStatement myPrepared
private java.sql.ResultSet myResult
Constructor Detail |
---|
public Interface.myConnections()
Method Detail |
---|
public void setPreparedStatement(java.sql.PreparedStatement ps)
ps
- PreparedStatementpublic java.sql.PreparedStatement getPreparedStatement()
public void setResultSet(java.sql.ResultSet rs)
rs
- ResultSet.public java.sql.ResultSet getResultSet()
public void close() throws java.sql.SQLException
java.sql.SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |