net.sqlind
Class HQLQueryMapper

java.lang.Object
  extended by net.sqlind.SQLQueryMapper
      extended by net.sqlind.HQLQueryMapper

public class HQLQueryMapper
extends net.sqlind.SQLQueryMapper

SQLind4HQL

Since:
2011
Author:
Rives Davy

Nested Class Summary
 class HQLQueryMapper.HQLQueryHandler
           
 
Nested classes/interfaces inherited from class net.sqlind.SQLQueryMapper
net.sqlind.SQLQueryMapper.Errors, net.sqlind.SQLQueryMapper.GenericQueryHandler, net.sqlind.SQLQueryMapper.InjectPoint, net.sqlind.SQLQueryMapper.QueryBehavior, net.sqlind.SQLQueryMapper.SQLBeanAccess, net.sqlind.SQLQueryMapper.SQLMapperException, net.sqlind.SQLQueryMapper.SQLQueryHandler, net.sqlind.SQLQueryMapper.SQLQueryTemplate, net.sqlind.SQLQueryMapper.Tracer
 
Field Summary
 
Fields inherited from class net.sqlind.SQLQueryMapper
instances, log
 
Constructor Summary
HQLQueryMapper()
           
HQLQueryMapper(String file)
           
 
Method Summary
 HQLQueryMapper.HQLQueryHandler getHQLQuery(String file, String id, String... params)
          Retrieve a given HQL query
static HQLQueryMapper getInstance()
           
protected  String getParamBindingString(String paramId)
           
 
Methods inherited from class net.sqlind.SQLQueryMapper
clearCache, getContext, getQuery, getSQLQuery, setCacheSize, shrinkSQL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HQLQueryMapper

public HQLQueryMapper(String file)
               throws net.sqlind.SQLQueryMapper.SQLMapperException
Throws:
net.sqlind.SQLQueryMapper.SQLMapperException

HQLQueryMapper

public HQLQueryMapper()
Method Detail

getInstance

public static HQLQueryMapper getInstance()
Returns:
the singleton manager instance of SQLQueryMapper

getHQLQuery

public HQLQueryMapper.HQLQueryHandler getHQLQuery(String file,
                                                  String id,
                                                  String... params)
                                           throws net.sqlind.SQLQueryMapper.SQLMapperException
Retrieve a given HQL query

Parameters:
file - the template file
id - the query id
params - optional sections id to enable
Returns:
SQLQuery object
Throws:
net.sqlind.SQLQueryMapper.SQLMapperException

getParamBindingString

protected String getParamBindingString(String paramId)
Overrides:
getParamBindingString in class net.sqlind.SQLQueryMapper


Copyright © 2011. All Rights Reserved.