|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectccc.migration.DbUtilsDB
public class DbUtilsDB
Implementation of DB
interface, based on Apache's DbUtils library.
Constructor Summary | |
---|---|
DbUtilsDB(javax.sql.DataSource ds)
Constructor. |
Method Summary | ||
---|---|---|
|
select(SqlQuery<T> q,
java.lang.Object... param)
Execute a SQL query. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DbUtilsDB(javax.sql.DataSource ds)
ds
- JDBC datasource for the database.Method Detail |
---|
public <T> T select(SqlQuery<T> q, java.lang.Object... param)
select
in interface DB
T
- The type of result the select method will return.q
- The SQL query.param
- The queries parameters.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |