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 QueryGeneratorpublic String getSelectAllQueryName()
getSelectAllQueryName in interface QueryGeneratorpublic String getQueryName(String... fieldNames)
getQueryName in interface QueryGeneratorprotected abstract String getQueryPrefix()
protected void checkFieldIsNotACollection(Field field)
public abstract Query createQueryForPersistenceId(BusinessObject businessObject)
createQueryForPersistenceId in interface QueryGeneratorpublic Query createQueryForField(BusinessObject businessObject, Field field)
createQueryForField in interface QueryGeneratorpublic Query createSelectAllQueryForBusinessObject(BusinessObject businessObject)
createSelectAllQueryForBusinessObject in interface QueryGeneratorprotected abstract String getListReturnType()
public Query createQueryForUniqueConstraint(BusinessObject businessObject, UniqueConstraint uniqueConstraint)
createQueryForUniqueConstraint in interface QueryGeneratorprotected abstract String getQualifiedReturnType(BusinessObject businessObject)
public Query createQueryForLazyField(BusinessObject businessObject, RelationField relationField)
createQueryForLazyField in interface QueryGeneratorprotected abstract String getQueryContentForLazyField()
public String createQueryNameForUniqueConstraint(UniqueConstraint uniqueConstraint)
createQueryNameForUniqueConstraint in interface QueryGeneratorprotected 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 © 2018 Bonitasoft S.A.. All rights reserved.