Package org.bgerp.dao.process
Class ProcessLinkProcessSearchDAO
java.lang.Object
ru.bgcrm.dao.CommonDAO
org.bgerp.dao.process.ProcessSearchDAO
org.bgerp.dao.process.ProcessLinkProcessSearchDAO
Fluent DAO for selection parent or child linked processes.
-
Nested Class Summary
Nested classes/interfaces inherited from class ru.bgcrm.dao.CommonDAO
CommonDAO.ObjectExtractor<T>, CommonDAO.RecordUpdater<T extends Id>
-
Field Summary
Modifier and TypeFieldDescriptionprotected final DynActionForm
User request context for isolations.Fields inherited from class ru.bgcrm.dao.CommonDAO
con, log, SQL_AND, SQL_DELETE, SQL_DELETE_FROM, SQL_DESC, SQL_DISTINCT, SQL_FROM, SQL_GROUP_BY, SQL_INNER_JOIN, SQL_INSERT, SQL_INSERT_IGNORE, SQL_INSERT_INTO, SQL_LEFT_JOIN, SQL_LIMIT, SQL_ON_DUP_KEY_UPDATE, SQL_ORDER_BY, SQL_REPLACE, SQL_SELECT, SQL_SELECT_ALL_FROM, SQL_SELECT_COUNT_ROWS, SQL_SET, SQL_UNION_ALL, SQL_UPDATE, SQL_VALUES, SQL_WHERE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
protected void
Selection order.protected void
order
(PreparedQuery pq) void
Queries processes.withLinkType
(Set<String> value) Filter by process to process link type.Filter by process closing date.Filter by process type ID.Methods inherited from class org.bgerp.dao.process.ProcessSearchDAO
search, withExcludeIds, withIdOrDescriptionLike, withStatus
Methods inherited from class ru.bgcrm.dao.CommonDAO
deleteById, foundRows, getById, getFoundRows, getGroupedIds, getGroupedIds, getIds, getIds, getLikePatternEnd, getLikePatternStart, getLikePatternSub, getPageLimit, getPeriodSql, lastInsertId, setPeriodParamValue, setRecordCount, sqlToBgException, update, updateColumn, updateIds, updateIds, updateOrInsert
-
Field Details
-
form
User request context for isolations.
-
-
Constructor Details
-
ProcessLinkProcessSearchDAO
-
ProcessLinkProcessSearchDAO
-
-
Method Details
-
withOpen
Filter by process closing date.- Overrides:
withOpen
in classProcessSearchDAO
- Parameters:
value
-null
- no filter, or process closing date not null.- Returns:
-
withType
Filter by process type ID.- Overrides:
withType
in classProcessSearchDAO
- Parameters:
value
-null
or empty - no filter, or set with type IDs.- Returns:
-
withLinkType
Filter by process to process link type.- Parameters:
value
- set of values fromProcess.LINK_TYPE_DEPEND
,Process.LINK_TYPE_LINK
,Process.LINK_TYPE_MADE
.
-
order
Selection order.- Overrides:
order
in classProcessSearchDAO
- Parameters:
value
- enum value.- Returns:
-
search
public void search(Pageable<Pair<String, Process>> result, boolean link, int processId) throws SQLExceptionQueries processes.- Parameters:
result
- pageable result, first pair's param isCommonObjectLink.getObjectType()
.link
-true
- child relations,false
- parent.processId
- process ID.- Throws:
SQLException
-
filterOpen
-
filterType
-
filterStatus
-
order
-