Class HqlInserter
- java.lang.Object
-
- org.openbravo.service.datasource.hql.HqlQueryPriorityHandler
-
- org.openbravo.service.datasource.hql.HqlInserter
-
- Direct Known Subclasses:
AddPaymentCreditToUseInjector
,AddPaymentGLItemInjector
,LCMatchFromInvoiceInserter
,ReturnFromCustomerHQLInserter
@ApplicationScoped public abstract class HqlInserter extends HqlQueryPriorityHandler
A HqlInserter is able to insert code at an hql insertion point. HqlInserters are instantiated using dependency injection. The HQLInserterQualifier must be used to associate the HQL with a particular table and insertion point
-
-
Constructor Summary
Constructors Constructor Description HqlInserter()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract String
insertHql(Map<String,String> requestParameters, Map<String,Object> queryNamedParameters)
Returns some code to be inserted in a HQL query, and adds query named parameters when needed-
Methods inherited from class org.openbravo.service.datasource.hql.HqlQueryPriorityHandler
getPriority
-
-
-
-
Method Detail
-
insertHql
public abstract String insertHql(Map<String,String> requestParameters, Map<String,Object> queryNamedParameters)
Returns some code to be inserted in a HQL query, and adds query named parameters when needed- Parameters:
requestParameters
- the parameters of the request. The inserted code may vary depending on these parametersqueryNamedParameters
- the named parameters of the hql query that will be used to fetch the table data. If the inserted code uses named parameters, the named parameters must be added to this map- Returns:
- the hql code to be inserted
-
-