Class AVorgangsDataSQLBuilder
java.lang.Object
de.xima.fc.dao.impl.sqlbuilder.AVorgangsDataSQLBuilder
- All Implemented Interfaces:
IVorgangsDataSQLBuilder
- Direct Known Subclasses:
DefaultVorgangsDataSQLBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected final Stringprotected final Stringprotected final Stringprotected final Stringprotected final Stringprotected final Stringprotected final Stringprotected final Stringprotected final Stringprotected final Stringprotected final Stringprotected final Stringprotected final Stringprotected final Stringprotected final Stringprotected final Stringprotected final Stringprotected final Stringprotected final Stringprotected final Stringprotected final Stringprotected final Stringprotected final Stringprotected final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected final EDatenbankTypprotected final charprotected static final Stringprotected static final org.slf4j.Loggerprotected final Stringprotected final Stringprotected final Stringprotected final Stringprotected final Stringprotected final Stringprotected final EProjectSpecificDBTableprotected final Stringprotected final Stringprotected final Stringprotected final String -
Constructor Summary
ConstructorsConstructorDescriptionAVorgangsDataSQLBuilder(EProjectSpecificDBTable tableType, EDatenbankTyp dbType) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendAdditionalColumnsForInsert(StringBuilder colSb, StringBuilder valSb, Map<String, Object> paramMap) protected StringBuilderappendFilterStatement(StringBuilder sb, String tableName, String column, String operator, String filterValue, boolean isCustomColumn) protected voidappendInsertKeyStatement(StringBuilder sb, String column, boolean isCustomColumn) protected voidappendInsertValueStatement(StringBuilder sb, String parameter, boolean isCustomColumn) protected StringBuilderappendOrderStatement(StringBuilder sb, String column, String direction, boolean isCustomColumn) buildPropertyPathAlias(String... pathSegments) javax.persistence.QuerycreateAllQuery(IEntityContext ec, Projekt project, de.xima.cmn.criteria.QueryCriteriaManager qcm, Postfach... inboxes) javax.persistence.QuerycreateCountQuery(IEntityContext ec, Projekt project, de.xima.cmn.criteria.QueryCriteriaManager qcm, Postfach... inboxes) javax.persistence.QuerycreateDeleteDataWithoutEntityQuery(IEntityContext ec, Projekt project) javax.persistence.QuerycreateDeleteNotCurrentDataQuery(IEntityContext ec, Projekt project) javax.persistence.QuerycreateDeleteQuery(IEntityContext ec, Projekt projekt, long formEingangID) javax.persistence.QuerycreateInsertQuery(IEntityContext ec, Projekt projekt, long formEingangID, Map<String, String> dataMap, Integer maxValueSize) javax.persistence.QuerycreateInsertQuery(IEntityContext ec, Map<String, ITableColumn> columns, Projekt projekt, long formEingangID, Map<String, String> dataMap) Deprecated.javax.persistence.QuerycreateSingleQuery(IEntityContext ec, Projekt project, Vorgang v, de.xima.cmn.criteria.QueryCriteriaManager qcm) protected StringescapePath(String path) protected voidfillParams(javax.persistence.Query query, Map<String, Object> params) protected StringgetOrderByClause(Projekt project, Map<String, ITableColumn> fieldMap, de.xima.cmn.criteria.SortingCriterion sorting) protected StringgetTableName(Projekt projekt) transformColumn(String name) protected StringtransformCustomColumnForRead(String tableName, String column) transformTableName(String name) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IVorgangsDataSQLBuilder
createAllQuery, createCountQuery
-
Field Details
-
LOG
protected static final org.slf4j.Logger LOG -
CTE_SUBMISSIONS
- See Also:
-
CTE_ATTACHMENT_COUNTS
- See Also:
-
CTE_STATUS
- See Also:
-
CTE_WORKFLOW_STATUS
- See Also:
-
CTE_POSTBOX
- See Also:
-
CTE_FORM_RECORD_DATA
- See Also:
-
INTERNAL
- See Also:
-
VIEW_STATUS
-
VIEW_WF_STATE
-
VIEW_POSTFACH
-
VIEW_ATTACHMENTS
-
TABLE_STATUS
-
TABLE_WF_STATE
-
TABLE_POSTFACH
-
TABLE_VORGANG
-
TABLE_ATTACHMENT
-
TABLE_FORMEINGANG
-
COL_PROJECT_ID
-
COL_PROJEKT_ID
-
COL_VERSION_ID
-
COL_MANDANT_ID
-
COL_POSTFACH_ID
-
COL_PROCESS_ID
-
COL_STATUS_ID
-
COL_STATUS_NAME
-
COL_STATUS_DELETABLE
-
COL_WF_VERSION_FK
-
COL_WF_STATE_ID
-
COL_WF_STATE_NAME
-
COL_WF_STATE_TYPE
-
COL_WF_STATE_DELETABLE
-
COL_WF_STATE_VERSION
-
COL_POSTFACH_NAME
-
COL_ATTACHMENT_COUNT
-
COL_ID
-
COL_FORMEINGANG_ID
-
COL_FORMEINGANG
-
COL_VORGANG
-
COL_STATUS_FK
-
COL_WF_STATE_FK
-
COL_POSTFACH_FK
-
COL_PROCESS_FK
-
tableType
-
dbType
-
ESC
protected final char ESC
-
-
Constructor Details
-
AVorgangsDataSQLBuilder
-
-
Method Details
-
transformTableName
-
transformColumn
-
transformCustomColumnForRead
-
createDeleteQuery
public javax.persistence.Query createDeleteQuery(IEntityContext ec, Projekt projekt, long formEingangID) - Specified by:
createDeleteQueryin interfaceIVorgangsDataSQLBuilder- Parameters:
ec- the entity context to create the query forprojekt-ProjektformEingangID-Integer- Returns:
- a query for deleting an entry
-
createInsertQuery
@Deprecated public javax.persistence.Query createInsertQuery(IEntityContext ec, Map<String, ITableColumn> columns, Projekt projekt, long formEingangID, Map<String, String> dataMap) Deprecated.- Specified by:
createInsertQueryin interfaceIVorgangsDataSQLBuilder- Parameters:
ec- the entity context to create the query forcolumns- anMapof table columnsprojekt- the project to create the query forformEingangID- to form record data to create the query fordataMap- theMapof data to insert- Returns:
- an
Queryto perform the insert
-
createInsertQuery
public javax.persistence.Query createInsertQuery(IEntityContext ec, Projekt projekt, long formEingangID, Map<String, String> dataMap, Integer maxValueSize) - Specified by:
createInsertQueryin interfaceIVorgangsDataSQLBuilder- Parameters:
ec- the entity context to create the query forprojekt- the project to create the query forformEingangID- to form record data to create the query fordataMap- theMapof data to insertmaxValueSize- the max size of the data to insert- Returns:
- an
Queryto perform the insert
-
createSingleQuery
public javax.persistence.Query createSingleQuery(IEntityContext ec, Projekt project, Vorgang v, de.xima.cmn.criteria.QueryCriteriaManager qcm) - Specified by:
createSingleQueryin interfaceIVorgangsDataSQLBuilder- Parameters:
ec- the entity context to create the query forproject-Projektv-Vorgangqcm-QueryCriteriaManager- Returns:
- a query for a single process
-
createAllQuery
public javax.persistence.Query createAllQuery(IEntityContext ec, Projekt project, de.xima.cmn.criteria.QueryCriteriaManager qcm, Postfach... inboxes) - Specified by:
createAllQueryin interfaceIVorgangsDataSQLBuilder
-
createCountQuery
public javax.persistence.Query createCountQuery(IEntityContext ec, Projekt project, de.xima.cmn.criteria.QueryCriteriaManager qcm, Postfach... inboxes) - Specified by:
createCountQueryin interfaceIVorgangsDataSQLBuilder
-
createDeleteNotCurrentDataQuery
- Specified by:
createDeleteNotCurrentDataQueryin interfaceIVorgangsDataSQLBuilder
-
createDeleteDataWithoutEntityQuery
public javax.persistence.Query createDeleteDataWithoutEntityQuery(IEntityContext ec, Projekt project) - Specified by:
createDeleteDataWithoutEntityQueryin interfaceIVorgangsDataSQLBuilder
-
appendFilterStatement
protected StringBuilder appendFilterStatement(StringBuilder sb, String tableName, String column, String operator, String filterValue, boolean isCustomColumn) -
appendInsertKeyStatement
-
appendInsertValueStatement
protected void appendInsertValueStatement(StringBuilder sb, String parameter, boolean isCustomColumn) -
appendAdditionalColumnsForInsert
protected void appendAdditionalColumnsForInsert(StringBuilder colSb, StringBuilder valSb, Map<String, Object> paramMap) -
appendOrderStatement
protected StringBuilder appendOrderStatement(StringBuilder sb, String column, String direction, boolean isCustomColumn) -
escapePath
-
fillParams
-
getOrderByClause
protected String getOrderByClause(Projekt project, Map<String, ITableColumn> fieldMap, de.xima.cmn.criteria.SortingCriterion sorting) -
getTableName
-
buildPropertyPathAlias
- Specified by:
buildPropertyPathAliasin interfaceIVorgangsDataSQLBuilder
-
IVorgangsDataSQLBuilder.createInsertQuery(IEntityContext, Projekt, long, Map, Integer)