|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jtools.jpool.shell.Sequence
Sequence Class This shell provides an easy way to execute sql statement through the select and the execute method. For each request on one of those two methods a connection will be retrieved from the corresponding pool. After the excution of the statement (success or failed) the connection is returned to the pool for availability.
$Id: Sequence.java,v 1.1 2003/10/15 15:37:30 stfndln Exp $
Constructor Summary | |
Sequence(PoolManager _manager)
Constructs the Sequence shell class in order to access the database pools in an easy way. |
Method Summary | |
boolean |
execute(java.lang.String _dbname,
java.lang.String _statement,
java.lang.Object[] _param)
Execute a insert, update or delete query. |
java.util.Vector |
select(java.lang.String _dbname,
java.lang.String _statement,
java.lang.Object[] _param)
Executes a select statement which returns a Vector with the results of the statement. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Sequence(PoolManager _manager)
_manager
- Class to access the several pools functionalityMethod Detail |
public java.util.Vector select(java.lang.String _dbname, java.lang.String _statement, java.lang.Object[] _param)
_dbname
- The database on which you want to execute the statement_statement
- The Select statement you want to execute_param
- The parameters that are needed in the statement Such a parameter
replaces the ? in the sql statement string.
public boolean execute(java.lang.String _dbname, java.lang.String _statement, java.lang.Object[] _param)
_dbname
- The database on which you want to execute the query_statement
- The insert, update or delete statement string_param
- The parameter that are needed in the statement. Such a parameter
replaces the ? in the sql statement string.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |