|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--velosurf.sql.Pooled
|
+--velosurf.sql.PooledPreparedStatement
this class encapsulates a jdbc PreparedStatement
| Field Summary | |
protected java.util.List |
mColumnNames
column names |
protected DBConnection |
mDBConnection
the database connection |
protected Entity |
mEntity
the resulting entity |
protected boolean |
mMetaDone
has meta information been fetched ? |
protected java.sql.PreparedStatement |
mPreparedStatement
wrapped prepared statement |
protected java.sql.ResultSet |
mRS
the result set |
| Fields inherited from class velosurf.sql.Pooled |
mInUse, mTagTime, mUseOver |
| Constructor Summary | |
protected |
PooledPreparedStatement(DBConnection inDBConnection,
java.sql.PreparedStatement inPreparedStatement)
builds a new PooledPreparedStatement |
| Method Summary | |
void |
close()
close this statement |
java.lang.Object |
evaluate(java.util.List inParams)
gets a scalar result from this statement |
java.lang.Object |
fetch(java.util.List inParams)
get a unique object by id |
java.lang.Object |
fetch(java.util.List inParams,
Entity inResultEntity)
get a unique object by id and specify the Entity this object is an Instance of |
java.lang.Object |
fetch(java.util.Map inParams,
Entity inResultEntity)
get a unique object by id and specify the Entity this object is an Instance of |
java.lang.Object |
get(java.lang.Object key)
get the object value of the specified resultset column |
long |
getLastInsertID()
get the last insert id - implemented only for mysql for now... |
RowIterator |
query(java.util.List inParams)
gets the rowset |
RowIterator |
query(java.util.List inParams,
Entity inResultEntity)
gets the rowset |
protected void |
setParams(java.util.List inParams)
set prepared parameter values |
int |
update(java.util.List inParams)
issues the modification query of this prepared statement |
| Methods inherited from class velosurf.sql.Pooled |
getTagTime, isInUse, notifyInUse, notifyOver, resetTagTime |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
protected DBConnection mDBConnection
protected java.sql.ResultSet mRS
protected java.util.List mColumnNames
protected java.sql.PreparedStatement mPreparedStatement
protected Entity mEntity
protected boolean mMetaDone
| Constructor Detail |
protected PooledPreparedStatement(DBConnection inDBConnection,
java.sql.PreparedStatement inPreparedStatement)
inDBConnection - database connectioninPreparedStatement - wrapped prepared statement| Method Detail |
public java.lang.Object fetch(java.util.List inParams)
throws java.sql.SQLException
inParams - parameter valuesjava.sql.SQLException - thrown bu the database engine
public java.lang.Object fetch(java.util.List inParams,
Entity inResultEntity)
throws java.sql.SQLException
inParams - parameter valuesinResultEntity - resulting entityjava.sql.SQLException - thrown by the database engine
public java.lang.Object fetch(java.util.Map inParams,
Entity inResultEntity)
throws java.sql.SQLException
inParams - parameter valuesinResultEntity - resulting entityjava.sql.SQLException - thrown by the database engine
public RowIterator query(java.util.List inParams)
throws java.sql.SQLException
inParams - parameter valuesjava.sql.SQLException - thrown by the database engine
public RowIterator query(java.util.List inParams,
Entity inResultEntity)
throws java.sql.SQLException
inParams - parameter valuesinResultEntity - resulting entityjava.sql.SQLException - thrown by the database engine
public java.lang.Object evaluate(java.util.List inParams)
throws java.sql.SQLException
inParams - parameter valuesjava.sql.SQLException - thrown bu the database engine
public int update(java.util.List inParams)
throws java.sql.SQLException
inParams - parameter valuesjava.sql.SQLException - thrown by the database engine
public java.lang.Object get(java.lang.Object key)
throws java.sql.SQLException
get in interface DataAccessorkey - the name of the resultset columnjava.sql.SQLException - thrown by the database engine
public long getLastInsertID()
throws java.sql.SQLException
java.sql.SQLException - thrown by the database engine
public void close()
throws java.sql.SQLException
close in class Pooledjava.sql.SQLException - thrown by the database engine
protected void setParams(java.util.List inParams)
throws java.sql.SQLException
inParams - parameter valuesjava.sql.SQLException - thrown by the database engine
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||