|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.experlog.db.ESCallable
public class ESCallable
This class makes some delegation works on a CallableStatement object. We store an hashtable of parameters to get results
Constructor Summary | |
---|---|
ESCallable(java.sql.CallableStatement stat,
java.lang.String adatasource,
java.sql.Connection con,
Client session)
create a new object with a CallableStatement object and initialize a list of parameters |
Method Summary | |
---|---|
void |
close()
closes all objects, this methods is called at the end of life of the current object. |
java.lang.String |
get(java.lang.String name)
returns the value of the a given out parameter |
java.sql.CallableStatement |
getCallable()
returns the underlying callable statement object |
java.sql.Connection |
getConnection()
|
java.lang.String |
getDatasource()
returns the name of the datasource which has been used to built the current callable statement |
java.util.Hashtable |
getParams()
returns the list of the parameters |
void |
registerOutParameter(int pos,
int type)
registers a parameter with the position in the call string (@see the CallableStatement API) and the int representation of the parameter type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ESCallable(java.sql.CallableStatement stat, java.lang.String adatasource, java.sql.Connection con, Client session)
stat
- a CallableStatement objectMethod Detail |
---|
public void registerOutParameter(int pos, int type)
pos
- the position of the parameter in the call stringtype
- the type of the parameter (@see java.sql.Types)public java.util.Hashtable getParams()
public java.sql.CallableStatement getCallable()
public java.lang.String get(java.lang.String name) throws java.sql.SQLException
get
in interface DataObject
name
- the parameter name
java.sql.SQLException
public java.lang.String getDatasource()
public void close() throws java.sql.SQLException
java.sql.SQLException
public java.sql.Connection getConnection()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |