net.sqlind
Class HQLQueryMapper.HQLQueryHandler
java.lang.Object
net.sqlind.SQLQueryMapper.GenericQueryHandler
net.sqlind.HQLQueryMapper.HQLQueryHandler
- Enclosing class:
- HQLQueryMapper
public class HQLQueryMapper.HQLQueryHandler
- extends net.sqlind.SQLQueryMapper.GenericQueryHandler
| Nested classes/interfaces inherited from class net.sqlind.SQLQueryMapper.GenericQueryHandler |
net.sqlind.SQLQueryMapper.GenericQueryHandler.BeanListWiringBehavior<T>, net.sqlind.SQLQueryMapper.GenericQueryHandler.BeanWiringBehavior<T>, net.sqlind.SQLQueryMapper.GenericQueryHandler.ResultSetFecthedBehaviour, net.sqlind.SQLQueryMapper.GenericQueryHandler.SingleBeanListWiringBehavior<T> |
| Fields inherited from class net.sqlind.SQLQueryMapper.GenericQueryHandler |
injectPointValues, parameterValues, ps, rs, template |
|
Method Summary |
protected void |
fillInPreparedStatement(org.hibernate.Query query,
HashMap<String,Object> pValues)
|
|
getBeanList(org.hibernate.Session session,
Class beanTypeClazz)
Perform a query using the 'one bean per rupture' wiring behavior |
|
getSimpleResult(org.hibernate.Session session)
Perform a query and return a single result from the first record |
|
getSimpleResultList(org.hibernate.Session session,
Class simpleTypeClazz)
Perform a query and return a simple type result list |
|
getSingleBeanList(org.hibernate.Session session,
Class beanTypeClazz)
Perform a query using the 'one bean per record' wiring behavior |
void |
performSelectQuery(org.hibernate.Session session,
net.sqlind.SQLQueryMapper.QueryBehavior behaviour)
Perform a query using the given query fetching behavior |
void |
performUpdateQuery(org.hibernate.Session session)
Perform an update query u |
| 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 |
HQLQueryMapper.HQLQueryHandler
protected HQLQueryMapper.HQLQueryHandler(net.sqlind.SQLQueryMapper.SQLQueryTemplate template)
fillInPreparedStatement
protected void fillInPreparedStatement(org.hibernate.Query query,
HashMap<String,Object> pValues)
throws SQLException
- Throws:
SQLException
getBeanList
public <T> List<T> getBeanList(org.hibernate.Session session,
Class beanTypeClazz)
throws net.sqlind.SQLQueryMapper.SQLMapperException
- Perform a query using the 'one bean per rupture' wiring behavior
- Parameters:
session -
- Returns:
- a T bean list
- Throws:
SQLMapperException
net.sqlind.SQLQueryMapper.SQLMapperException
getSingleBeanList
public <T> List<T> getSingleBeanList(org.hibernate.Session session,
Class beanTypeClazz)
throws net.sqlind.SQLQueryMapper.SQLMapperException
- Perform a query using the 'one bean per record' wiring behavior
- Parameters:
session -
- Returns:
- a T bean list
- Throws:
SQLMapperException
net.sqlind.SQLQueryMapper.SQLMapperException
getSimpleResultList
public <T> List<T> getSimpleResultList(org.hibernate.Session session,
Class simpleTypeClazz)
throws net.sqlind.SQLQueryMapper.SQLMapperException
- Perform a query and return a simple type result list
- Parameters:
session -
- Returns:
- a List of T type instances.
- Throws:
SQLMapperException
net.sqlind.SQLQueryMapper.SQLMapperException
getSimpleResult
public <T> T getSimpleResult(org.hibernate.Session session)
throws net.sqlind.SQLQueryMapper.SQLMapperException
- Perform a query and return a single result from the first record
- Parameters:
session -
- Returns:
- an instance of T if found, null otherwise
- Throws:
SQLMapperException
net.sqlind.SQLQueryMapper.SQLMapperException
performSelectQuery
public void performSelectQuery(org.hibernate.Session session,
net.sqlind.SQLQueryMapper.QueryBehavior behaviour)
throws net.sqlind.SQLQueryMapper.SQLMapperException
- Perform a query using the given query fetching behavior
- Parameters:
session - behavior -
- Throws:
SQLMapperException
net.sqlind.SQLQueryMapper.SQLMapperException
performUpdateQuery
public void performUpdateQuery(org.hibernate.Session session)
throws net.sqlind.SQLQueryMapper.SQLMapperException
- Perform an update query u
- Parameters:
session -
- Throws:
SQLMapperException
net.sqlind.SQLQueryMapper.SQLMapperException
Copyright © 2011. All Rights Reserved.