|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sqlind.SQLQueryMapper.GenericQueryHandler
net.sqlind.SQLQueryMapper.SQLQueryHandler
public class SQLQueryMapper.SQLQueryHandler
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class net.sqlind.SQLQueryMapper.GenericQueryHandler |
|---|
SQLQueryMapper.GenericQueryHandler.BeanListWiringBehavior<T>, SQLQueryMapper.GenericQueryHandler.BeanWiringBehavior<T>, SQLQueryMapper.GenericQueryHandler.ResultSetFecthedBehaviour, SQLQueryMapper.GenericQueryHandler.SingleBeanListWiringBehavior<T> |
| Field Summary |
|---|
| Fields inherited from class net.sqlind.SQLQueryMapper.GenericQueryHandler |
|---|
debug, injectPointValues, parameterValues, ps, rs, template |
| Constructor Summary | |
|---|---|
protected |
SQLQueryMapper.SQLQueryHandler(SQLQueryMapper.SQLQueryTemplate template)
|
| Method Summary | ||
|---|---|---|
protected void |
fillInPreparedStatement(PreparedStatement ps,
HashMap<String,Object> pValues)
|
|
|
getBeanList(Connection cnx,
Class beanTypeClazz)
Perform a query using the 'one bean per rupture' wiring behavior |
|
|
getSimpleResult(Connection cnx)
Perform a query and return a single result from the first record |
|
|
getSimpleResultList(Connection cnx,
Class simpleTypeClazz)
Perform a query and return a simple type result list |
|
|
getSingleBeanList(Connection cnx,
Class beanTypeClazz)
Perform a query using the 'one bean per record' wiring behavior |
|
SQLQueryMapper.SQLQueryHandler |
getSQLQuery(String file,
String schema,
String id,
String... params)
Retrieve a given query for a template context (schema, parameters...) |
|
void |
performSelectQuery(Connection cnx,
SQLQueryMapper.QueryBehavior behaviour)
Perform a select over DB using current query definition. |
|
void |
performUpdateQuery(Connection cnx)
Perform an update over DB using current query definition. |
|
| Methods inherited from class net.sqlind.SQLQueryMapper.GenericQueryHandler |
|---|
close, dumpQuery, fillInParametersFromBean, getInjectedSQL, getInjectPoints, getSQL, getSQLWithParameters, performInjection, setInjection, setParameter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected SQLQueryMapper.SQLQueryHandler(SQLQueryMapper.SQLQueryTemplate template)
| Method Detail |
|---|
public <T> List<T> getBeanList(Connection cnx,
Class beanTypeClazz)
throws SQLQueryMapper.SQLMapperException
cnx - the DB connection instance
SQLQueryMapper.SQLMapperException
public <T> List<T> getSingleBeanList(Connection cnx,
Class beanTypeClazz)
throws SQLQueryMapper.SQLMapperException
cnx - the DB connection instance
SQLQueryMapper.SQLMapperException
public <T> List<T> getSimpleResultList(Connection cnx,
Class simpleTypeClazz)
throws SQLQueryMapper.SQLMapperException
cnx - the DB connection instance
SQLQueryMapper.SQLMapperException
public <T> T getSimpleResult(Connection cnx)
throws SQLQueryMapper.SQLMapperException
cnx - the DB connection instance
SQLQueryMapper.SQLMapperException
public void performUpdateQuery(Connection cnx)
throws SQLQueryMapper.SQLMapperException
cnx - the DB connection instance
SQLQueryMapper.SQLMapperException
public void performSelectQuery(Connection cnx,
SQLQueryMapper.QueryBehavior behaviour)
throws SQLQueryMapper.SQLMapperException
cnx - the DB connection instance
SQLQueryMapper.SQLMapperException
protected void fillInPreparedStatement(PreparedStatement ps,
HashMap<String,Object> pValues)
throws SQLException
SQLException
public SQLQueryMapper.SQLQueryHandler getSQLQuery(String file,
String schema,
String id,
String... params)
throws SQLQueryMapper.SQLMapperException
file - the template fileschemathe - DB schema nameid - the query idparams - optional sections id to enable
SQLQueryMapper.SQLMapperException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||