public class AVorgangsDataSQLBuilder extends Object implements IVorgangsDataSQLBuilder
Modifier and Type | Field and Description |
---|---|
protected String |
COL_ATTACHMENT_COUNT |
protected String |
COL_FORMEINGANG |
protected String |
COL_FORMEINGANG_ID |
protected String |
COL_ID |
protected String |
COL_MANDANT_ID |
protected String |
COL_POSTFACH_FK |
protected String |
COL_POSTFACH_ID |
protected String |
COL_POSTFACH_NAME |
protected String |
COL_PROCESS_FK |
protected String |
COL_PROCESS_ID |
protected String |
COL_PROJECT_ID |
protected String |
COL_PROJEKT_ID |
protected String |
COL_STATUS_FK |
protected String |
COL_STATUS_ID |
protected String |
COL_STATUS_NAME |
protected String |
COL_VORGANG |
protected char |
ESC |
protected static org.slf4j.Logger |
LOG |
protected String |
TABLE_ATTACHMENT |
protected String |
TABLE_FORMEINGANG |
protected String |
TABLE_POSTFACH |
protected String |
TABLE_STATUS |
protected String |
TABLE_VORGANG |
protected EProjectSpecificDBTable |
tableType |
protected String |
VIEW_ATTACHMENTS |
protected String |
VIEW_POSTFACH |
protected String |
VIEW_STATUS |
Constructor and Description |
---|
AVorgangsDataSQLBuilder(EProjectSpecificDBTable tableType) |
Modifier and Type | Method and Description |
---|---|
protected void |
appandSelectAllJoin(StringBuilder sb,
Projekt projekt,
Postfach... inboxes) |
protected void |
appandSingleSelectAllJoin(StringBuilder sb,
Projekt projekt,
Vorgang v) |
protected void |
appendCountPost(StringBuilder sb,
Map<String,ITableColumn> columnMap) |
protected void |
appendCountPre(StringBuilder sb,
Map<String,ITableColumn> columnMap) |
protected StringBuilder |
appendFilterStatement(StringBuilder sb,
String column,
String operator,
String filterValue,
boolean isCustomColumn) |
protected StringBuilder |
appendInsertKeyStatement(StringBuilder sb,
String column,
boolean isCustomColumn) |
protected StringBuilder |
appendInsertValueStatement(StringBuilder sb,
String key,
boolean isCustomColumn) |
protected void |
appendNonCustomColumnsForInsert(StringBuilder colSb,
StringBuilder valSb,
Map<String,String> paramMap) |
StringBuilder |
appendOrderByClauses(StringBuilder sb,
de.xima.cmn.criteria.SortingCriterion[] sortingCriterions,
Map<String,ITableColumn> fieldMap) |
protected StringBuilder |
appendOrderStatement(StringBuilder sb,
String column,
String direction,
boolean isCustomColumn) |
protected javax.persistence.Query |
appendQueryCriterias(StringBuilder sb,
IEntityContext ec,
Map<String,ITableColumn> columnMap,
de.xima.cmn.criteria.QueryCriteriaManager qcm,
boolean withOrder) |
protected void |
appendSelectPost(StringBuilder sb,
Map<String,ITableColumn> coulumns) |
protected void |
appendSelectPre(StringBuilder sb,
Map<String,ITableColumn> coulumns) |
StringBuilder |
appendWhereClauses(StringBuilder sb,
de.xima.cmn.criteria.FilterCriterion[] filterCriterions,
Map<String,ITableColumn> fieldMap,
Map<String,String> stringFCs,
Map<String,Date> dateFCs,
Map<String,Boolean> booleanFCs,
Map<String,Integer> integerFCs,
Map<String,Long> longFCs,
Map<String,List<Long>> longListFCs) |
javax.persistence.Query |
createAllQuery(IEntityContext ec,
Map<String,ITableColumn> columnMap,
Projekt projekt,
Postfach pf,
de.xima.cmn.criteria.QueryCriteriaManager qcm) |
javax.persistence.Query |
createAllQuery(IEntityContext ec,
Map<String,ITableColumn> columnMap,
Projekt projekt,
de.xima.cmn.criteria.QueryCriteriaManager qcm,
Postfach... inboxes) |
javax.persistence.Query |
createCountQuery(IEntityContext ec,
Map<String,ITableColumn> columnMap,
Projekt projekt,
Postfach pf,
de.xima.cmn.criteria.QueryCriteriaManager qcm) |
javax.persistence.Query |
createCountQuery(IEntityContext ec,
Map<String,ITableColumn> columnMap,
Projekt projekt,
de.xima.cmn.criteria.QueryCriteriaManager qcm,
Postfach... inboxes) |
javax.persistence.Query |
createDeleteDataWithoutEntityQuery(IEntityContext ec,
Projekt project) |
javax.persistence.Query |
createDeleteNotCurrentDataQuery(IEntityContext ec,
Projekt project) |
javax.persistence.Query |
createDeleteQuery(IEntityContext ec,
Projekt projekt,
long formEingangID) |
javax.persistence.Query |
createInsertQuery(IEntityContext ec,
Map<String,ITableColumn> columns,
Projekt projekt,
long formEingangID,
Map<String,String> dataMap)
|
javax.persistence.Query |
createInsertQuery(IEntityContext ec,
Map<String,ITableColumn> columns,
Projekt projekt,
long formEingangID,
Map<String,String> dataMap,
Integer maxValueSize) |
javax.persistence.Query |
createSingleQuery(IEntityContext ec,
Map<String,ITableColumn> columnMap,
Projekt projekt,
Vorgang v,
de.xima.cmn.criteria.QueryCriteriaManager qcm) |
protected void |
fillParams(javax.persistence.Query query,
Map<String,String> stringFCs,
Map<String,Date> dateFCs,
HashMap<String,Boolean> booleanFCs,
Map<String,Integer> integerFCs,
Map<String,Long> longFCs,
Map<String,List<Long>> longListFCs) |
protected String |
getOrderByClause(de.xima.cmn.criteria.SortingCriterion sorting,
Map<String,ITableColumn> fieldMap) |
protected String |
getTableName(Projekt projekt) |
protected String |
getWhereClause(String column,
de.xima.cmn.criteria.FilterCriterion.Operator operator,
String parameter,
Map<String,ITableColumn> fieldMap) |
protected boolean |
isBooleanColumn(String column) |
protected boolean |
isDateColumn(String column) |
protected boolean |
isIntegerColumn(String column) |
protected boolean |
isLongColumn(String column) |
String |
transformColumn(String name) |
String |
transformTableName(String name) |
protected static final org.slf4j.Logger LOG
protected final String VIEW_STATUS
protected final String VIEW_POSTFACH
protected final String VIEW_ATTACHMENTS
protected final String TABLE_STATUS
protected final String TABLE_POSTFACH
protected final String TABLE_VORGANG
protected final String TABLE_ATTACHMENT
protected final String TABLE_FORMEINGANG
protected final String COL_PROJECT_ID
protected final String COL_PROJEKT_ID
protected final String COL_MANDANT_ID
protected final String COL_POSTFACH_ID
protected final String COL_PROCESS_ID
protected final String COL_STATUS_ID
protected final String COL_STATUS_NAME
protected final String COL_POSTFACH_NAME
protected final String COL_ATTACHMENT_COUNT
protected final String COL_ID
protected final String COL_FORMEINGANG_ID
protected final String COL_FORMEINGANG
protected final String COL_VORGANG
protected final String COL_STATUS_FK
protected final String COL_POSTFACH_FK
protected final String COL_PROCESS_FK
protected final EProjectSpecificDBTable tableType
protected final char ESC
public AVorgangsDataSQLBuilder(EProjectSpecificDBTable tableType)
protected boolean isBooleanColumn(String column)
protected boolean isDateColumn(String column)
protected boolean isIntegerColumn(String column)
protected boolean isLongColumn(String column)
public javax.persistence.Query createDeleteQuery(IEntityContext ec, Projekt projekt, long formEingangID)
createDeleteQuery
in interface IVorgangsDataSQLBuilder
ec
- the entity context to create the query forprojekt
- Projekt
formEingangID
- Integer
@Deprecated public javax.persistence.Query createInsertQuery(IEntityContext ec, Map<String,ITableColumn> columns, Projekt projekt, long formEingangID, Map<String,String> dataMap)
createInsertQuery
in interface IVorgangsDataSQLBuilder
ec
- the entity context to create the query forcolumns
- an Map
of table columnsprojekt
- the project to create the query forformEingangID
- to form record data to create the query fordataMap
- the Map
of data to insertQuery
to perform the insertpublic javax.persistence.Query createInsertQuery(IEntityContext ec, Map<String,ITableColumn> columns, Projekt projekt, long formEingangID, Map<String,String> dataMap, Integer maxValueSize)
createInsertQuery
in interface IVorgangsDataSQLBuilder
ec
- the entity context to create the query forcolumns
- an Map
of table columnsprojekt
- the project to create the query forformEingangID
- to form record data to create the query fordataMap
- the Map
of data to insertmaxValueSize
- the max size of the data to insertQuery
to perform the insertpublic javax.persistence.Query createSingleQuery(IEntityContext ec, Map<String,ITableColumn> columnMap, Projekt projekt, Vorgang v, de.xima.cmn.criteria.QueryCriteriaManager qcm)
createSingleQuery
in interface IVorgangsDataSQLBuilder
ec
- the entity context to create the query forcolumnMap
- an Map
of table columnsprojekt
- Projekt
v
- Vorgang
qcm
- QueryCriteriaManager
public javax.persistence.Query createAllQuery(IEntityContext ec, Map<String,ITableColumn> columnMap, Projekt projekt, Postfach pf, de.xima.cmn.criteria.QueryCriteriaManager qcm)
createAllQuery
in interface IVorgangsDataSQLBuilder
projekt
- Projekt
pf
- Postfach
may be null
qcm
- QueryCriteriaManager
public javax.persistence.Query createAllQuery(IEntityContext ec, Map<String,ITableColumn> columnMap, Projekt projekt, de.xima.cmn.criteria.QueryCriteriaManager qcm, Postfach... inboxes)
createAllQuery
in interface IVorgangsDataSQLBuilder
public javax.persistence.Query createCountQuery(IEntityContext ec, Map<String,ITableColumn> columnMap, Projekt projekt, Postfach pf, de.xima.cmn.criteria.QueryCriteriaManager qcm)
createCountQuery
in interface IVorgangsDataSQLBuilder
projekt
- Projekt
pf
- Postfach
may be null
qcm
- QueryCriteriaManager
public javax.persistence.Query createCountQuery(IEntityContext ec, Map<String,ITableColumn> columnMap, Projekt projekt, de.xima.cmn.criteria.QueryCriteriaManager qcm, Postfach... inboxes)
createCountQuery
in interface IVorgangsDataSQLBuilder
public javax.persistence.Query createDeleteNotCurrentDataQuery(IEntityContext ec, Projekt project)
createDeleteNotCurrentDataQuery
in interface IVorgangsDataSQLBuilder
public javax.persistence.Query createDeleteDataWithoutEntityQuery(IEntityContext ec, Projekt project)
createDeleteDataWithoutEntityQuery
in interface IVorgangsDataSQLBuilder
protected void appandSingleSelectAllJoin(StringBuilder sb, Projekt projekt, Vorgang v)
protected void appandSelectAllJoin(StringBuilder sb, Projekt projekt, Postfach... inboxes)
protected javax.persistence.Query appendQueryCriterias(StringBuilder sb, IEntityContext ec, Map<String,ITableColumn> columnMap, de.xima.cmn.criteria.QueryCriteriaManager qcm, boolean withOrder)
public StringBuilder appendOrderByClauses(StringBuilder sb, de.xima.cmn.criteria.SortingCriterion[] sortingCriterions, Map<String,ITableColumn> fieldMap)
public StringBuilder appendWhereClauses(StringBuilder sb, de.xima.cmn.criteria.FilterCriterion[] filterCriterions, Map<String,ITableColumn> fieldMap, Map<String,String> stringFCs, Map<String,Date> dateFCs, Map<String,Boolean> booleanFCs, Map<String,Integer> integerFCs, Map<String,Long> longFCs, Map<String,List<Long>> longListFCs)
protected void appendNonCustomColumnsForInsert(StringBuilder colSb, StringBuilder valSb, Map<String,String> paramMap)
protected StringBuilder appendOrderStatement(StringBuilder sb, String column, String direction, boolean isCustomColumn)
protected StringBuilder appendFilterStatement(StringBuilder sb, String column, String operator, String filterValue, boolean isCustomColumn)
protected StringBuilder appendInsertValueStatement(StringBuilder sb, String key, boolean isCustomColumn)
protected StringBuilder appendInsertKeyStatement(StringBuilder sb, String column, boolean isCustomColumn)
protected void appendSelectPost(StringBuilder sb, Map<String,ITableColumn> coulumns)
protected void appendSelectPre(StringBuilder sb, Map<String,ITableColumn> coulumns)
protected void appendCountPost(StringBuilder sb, Map<String,ITableColumn> columnMap)
protected void appendCountPre(StringBuilder sb, Map<String,ITableColumn> columnMap)
protected String getWhereClause(String column, de.xima.cmn.criteria.FilterCriterion.Operator operator, String parameter, Map<String,ITableColumn> fieldMap)
protected String getOrderByClause(de.xima.cmn.criteria.SortingCriterion sorting, Map<String,ITableColumn> fieldMap)
Copyright © 2021 XIMA MEDIA GmbH. All rights reserved.