net.sqlind
Class SQLQueryMapper.SQLQueryHandler
java.lang.Object
net.sqlind.SQLQueryMapper.GenericQueryHandler
net.sqlind.SQLQueryMapper.SQLQueryHandler
- Enclosing class:
- SQLQueryMapper
public class SQLQueryMapper.SQLQueryHandler
- extends SQLQueryMapper.GenericQueryHandler
|
Method Summary |
protected void |
fillInPreparedStatement(java.sql.PreparedStatement ps,
java.util.HashMap<java.lang.String,java.lang.Object> pValues)
|
|
getBeanList(java.sql.Connection cnx,
java.lang.Class beanTypeClazz)
Perform a query using the 'one bean per rupture' wiring behavior |
|
getSimpleResult(java.sql.Connection cnx)
Perform a query and return a single result from the first record |
|
getSimpleResultList(java.sql.Connection cnx,
java.lang.Class simpleTypeClazz)
Perform a query and return a simple type result list |
|
getSingleBeanList(java.sql.Connection cnx,
java.lang.Class beanTypeClazz)
Perform a query using the 'one bean per record' wiring behavior |
void |
performSelectQuery(java.sql.Connection cnx,
SQLQueryMapper.QueryBehavior behaviour)
Perform a select over DB using current query definition. |
void |
performUpdateQuery(java.sql.Connection cnx)
Perform an update over DB using current query definition. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SQLQueryMapper.SQLQueryHandler
protected SQLQueryMapper.SQLQueryHandler(SQLQueryMapper.SQLQueryTemplate template)
getBeanList
public <T> java.util.List<T> getBeanList(java.sql.Connection cnx,
java.lang.Class beanTypeClazz)
throws SQLQueryMapper.SQLMapperException
- Perform a query using the 'one bean per rupture' wiring behavior
- Parameters:
cnx - the DB connection instance
- Returns:
- a T bean list
- Throws:
SQLQueryMapper.SQLMapperException
getSingleBeanList
public <T> java.util.List<T> getSingleBeanList(java.sql.Connection cnx,
java.lang.Class beanTypeClazz)
throws SQLQueryMapper.SQLMapperException
- Perform a query using the 'one bean per record' wiring behavior
- Parameters:
cnx - the DB connection instance
- Returns:
- a T bean list
- Throws:
SQLQueryMapper.SQLMapperException
getSimpleResultList
public <T> java.util.List<T> getSimpleResultList(java.sql.Connection cnx,
java.lang.Class simpleTypeClazz)
throws SQLQueryMapper.SQLMapperException
- Perform a query and return a simple type result list
- Parameters:
cnx - the DB connection instance
- Returns:
- a List of T type instances.
- Throws:
SQLQueryMapper.SQLMapperException
getSimpleResult
public <T> T getSimpleResult(java.sql.Connection cnx)
throws SQLQueryMapper.SQLMapperException
- Perform a query and return a single result from the first record
- Parameters:
cnx - the DB connection instance
- Returns:
- an instance of T if found, null otherwise
- Throws:
SQLQueryMapper.SQLMapperException
performUpdateQuery
public void performUpdateQuery(java.sql.Connection cnx)
throws SQLQueryMapper.SQLMapperException
- Perform an update over DB using current query definition.
- Parameters:
cnx - the DB connection instance
- Throws:
SQLQueryMapper.SQLMapperException
performSelectQuery
public void performSelectQuery(java.sql.Connection cnx,
SQLQueryMapper.QueryBehavior behaviour)
throws SQLQueryMapper.SQLMapperException
- Perform a select over DB using current query definition.
- Parameters:
cnx - the DB connection instance
- Throws:
SQLQueryMapper.SQLMapperException
fillInPreparedStatement
protected void fillInPreparedStatement(java.sql.PreparedStatement ps,
java.util.HashMap<java.lang.String,java.lang.Object> pValues)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
Copyright © 2014. All Rights Reserved.