public abstract class AbstractQueryGenerator extends Object implements QueryGenerator
BLANK_SPACE, CLOSING_PARENTHESIS, COUNT, COUNT_PREFIX, FIND_PREFIX, FROM, LOGIC_AND, NEW_LINE, OPENING_PARENTHESIS, ORDER_BY, SELECT, WHERE
Constructor and Description |
---|
AbstractQueryGenerator() |
public String createQueryNameForField(Field field)
createQueryNameForField
in interface QueryGenerator
public String getSelectAllQueryName()
getSelectAllQueryName
in interface QueryGenerator
public String getQueryName(String... fieldNames)
getQueryName
in interface QueryGenerator
protected abstract String getQueryPrefix()
protected void checkFieldIsNotACollection(Field field)
public abstract Query createQueryForPersistenceId(BusinessObject businessObject)
createQueryForPersistenceId
in interface QueryGenerator
public Query createQueryForField(BusinessObject businessObject, Field field)
createQueryForField
in interface QueryGenerator
public Query createSelectAllQueryForBusinessObject(BusinessObject businessObject)
createSelectAllQueryForBusinessObject
in interface QueryGenerator
protected abstract String getListReturnType()
public Query createQueryForUniqueConstraint(BusinessObject businessObject, UniqueConstraint uniqueConstraint)
createQueryForUniqueConstraint
in interface QueryGenerator
protected abstract String getQualifiedReturnType(BusinessObject businessObject)
public Query createQueryForLazyField(BusinessObject businessObject, RelationField relationField)
createQueryForLazyField
in interface QueryGenerator
protected abstract String getQueryContentForLazyField()
public String createQueryNameForUniqueConstraint(UniqueConstraint uniqueConstraint)
createQueryNameForUniqueConstraint
in interface QueryGenerator
protected String createQueryContentForField(String businessObjectName, Field field)
protected abstract void addOrderBy(char tablePrefix, StringBuilder builder)
protected void checkArgumentisNotEmpty(String argument)
protected abstract void buildSelect(char simpleNameAlias, StringBuilder builder)
Copyright © 2020 Bonitasoft S.A. All rights reserved.