public class ProcessDAO extends CommonDAO
con, dateFormat_DDMMYYYY, dateFormat_DDMMYYYY_HHMM, log, SQL_AND, SQL_DELETE, SQL_DESC, SQL_FROM, SQL_GROUP_BY, SQL_INNER_JOIN, SQL_INSERT, SQL_LEFT_JOIN, SQL_LIMIT, SQL_ORDER_BY, SQL_REPLACE, SQL_SELECT, SQL_SELECT_ALL_FROM, SQL_SELECT_COUNT_ROWS, SQL_SET, SQL_UPDATE, SQL_WHERE
Constructor and Description |
---|
ProcessDAO(java.sql.Connection con) |
ProcessDAO(java.sql.Connection con,
boolean history) |
ProcessDAO(java.sql.Connection con,
boolean history,
int userId) |
Modifier and Type | Method and Description |
---|---|
void |
addDateFilter(ru.bgcrm.struts.form.DynActionForm form,
java.lang.StringBuilder wherePart,
java.lang.String paramPrefix,
java.lang.String column) |
void |
addDateTimeFilter(ru.bgcrm.struts.form.DynActionForm form,
java.lang.StringBuilder wherePart,
java.lang.String paramPrefix,
java.lang.String paramId) |
java.util.List<java.lang.Integer> |
getLinkedProcessTypeIdList(java.lang.String objectType,
int objectId) |
Process |
getProcess(int id) |
static Process |
getProcessFromRs(java.sql.ResultSet rs) |
static Process |
getProcessFromRs(java.sql.ResultSet rs,
boolean titleLoad)
Deprecated.
|
static Process |
getProcessFromRs(java.sql.ResultSet rs,
java.lang.String prefix) |
void |
searchLinkedProcessList(SearchResult<Pair<java.lang.String,Process>> searchResult,
java.lang.String objectType,
int objectId,
java.util.Set<java.lang.Integer> typeIds,
java.util.Set<java.lang.Integer> statusIds,
java.lang.String paramFilter)
Возвращает процессы, привязанные к какой-либо сущности.
|
void |
searchLinkProcessList(SearchResult<Pair<java.lang.String,Process>> searchResult,
int processId)
Возвращает процессы, привязанные к процессу.
|
void |
searchProcess(SearchResult<java.lang.Object[]> searchResult,
Queue queue,
ru.bgcrm.struts.form.DynActionForm form) |
void |
searchProcessListByAddress(SearchResult<AddressSearchedObject<Process>> searchResult,
java.util.Set<java.lang.Integer> typeIds,
java.util.Set<java.lang.Integer> addressParamIdList,
int houseId,
java.lang.String houseFlat,
java.lang.String houseRoom)
Выбирает процессы по адресному параметру.
|
void |
searchProcessListByMessageFrom(SearchResult<Process> searchResult,
java.lang.String email)
Выбор списка процесс.
|
void |
updateProcess(Process process) |
void |
updateProcessExecutors(int processId,
java.util.Set<java.lang.Integer> executorIds)
Deprecated.
|
void |
updateProcessExecutors(java.util.Set<ProcessExecutor> processExecutors,
int processId) |
void |
updateProcessGroups(java.util.Set<ProcessGroup> processGroups,
int processId) |
addLikeSql, convertDateToSqlDate, convertDateToTimestamp, deleteById, getFoundRows, getGroupedIds, getGroupedIds, getIds, getIds, getLikePattern, getMySQLLimit, getPeriodSql, lastInsertId, setPeriodParamValue, setRecordCount, sqlToBgException, updateColumn, updateIds, updateIds
public ProcessDAO(java.sql.Connection con)
public ProcessDAO(java.sql.Connection con, boolean history)
public ProcessDAO(java.sql.Connection con, boolean history, int userId)
public void searchProcess(SearchResult<java.lang.Object[]> searchResult, Queue queue, ru.bgcrm.struts.form.DynActionForm form) throws BGException
BGException
public void addDateTimeFilter(ru.bgcrm.struts.form.DynActionForm form, java.lang.StringBuilder wherePart, java.lang.String paramPrefix, java.lang.String paramId)
public void addDateFilter(ru.bgcrm.struts.form.DynActionForm form, java.lang.StringBuilder wherePart, java.lang.String paramPrefix, java.lang.String column)
public Process getProcess(int id) throws BGException
BGException
public static Process getProcessFromRs(java.sql.ResultSet rs) throws java.sql.SQLException
java.sql.SQLException
public static Process getProcessFromRs(java.sql.ResultSet rs, java.lang.String prefix) throws java.sql.SQLException
java.sql.SQLException
@Deprecated public static Process getProcessFromRs(java.sql.ResultSet rs, boolean titleLoad) throws java.sql.SQLException, BGException
getProcessFromRs(ResultSet)
.java.sql.SQLException
BGException
public void updateProcessGroups(java.util.Set<ProcessGroup> processGroups, int processId) throws BGException
BGException
@Deprecated public void updateProcessExecutors(int processId, java.util.Set<java.lang.Integer> executorIds) throws BGException
updateProcessExecutors(Set, int)
.BGException
public void updateProcessExecutors(java.util.Set<ProcessExecutor> processExecutors, int processId) throws BGException
BGException
public void updateProcess(Process process) throws BGException
BGException
public void searchLinkedProcessList(SearchResult<Pair<java.lang.String,Process>> searchResult, java.lang.String objectType, int objectId, java.util.Set<java.lang.Integer> typeIds, java.util.Set<java.lang.Integer> statusIds, java.lang.String paramFilter) throws BGException
searchResult
- objectType
- objectId
- typeIds
- statusIds
- paramFilter
- BGException
public java.util.List<java.lang.Integer> getLinkedProcessTypeIdList(java.lang.String objectType, int objectId) throws BGException
BGException
public void searchLinkProcessList(SearchResult<Pair<java.lang.String,Process>> searchResult, int processId) throws BGException
searchResult
- processId
- BGException
public void searchProcessListByAddress(SearchResult<AddressSearchedObject<Process>> searchResult, java.util.Set<java.lang.Integer> typeIds, java.util.Set<java.lang.Integer> addressParamIdList, int houseId, java.lang.String houseFlat, java.lang.String houseRoom) throws BGException
searchResult
- processIds
- кодыaddressParamIdList
- houseId
- код домаhouseFlat
- квартираhouseRoom
- комнатаjava.sql.SQLException
BGException
public void searchProcessListByMessageFrom(SearchResult<Process> searchResult, java.lang.String email) throws BGException
searchResult
- email
- java.sql.SQLException
BGException