Package ru.bgcrm.dao.process
Class StatusChangeDAO
- java.lang.Object
-
- ru.bgcrm.dao.CommonDAO
-
- ru.bgcrm.dao.process.StatusChangeDAO
-
public class StatusChangeDAO extends CommonDAO
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ru.bgcrm.dao.CommonDAO
CommonDAO.ObjectExtractor<T>, CommonDAO.RecordUpdater<T extends Id>
-
-
Field Summary
-
Fields inherited from class ru.bgcrm.dao.CommonDAO
con, log, SQL_AND, SQL_DELETE, SQL_DESC, SQL_FROM, SQL_GROUP_BY, SQL_INNER_JOIN, SQL_INSERT, SQL_INSERT_IGNORE, 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_UPDATE, SQL_WHERE
-
-
Constructor Summary
Constructors Constructor Description StatusChangeDAO(java.sql.Connection con)
StatusChangeDAO(java.sql.Connection con, boolean history)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
changeStatus(Process process, ProcessType type, StatusChange change)
java.util.List<StatusChange>
getProcessStatus(int processId, int statusId)
static StatusChange
getProcessStatusFromRs(java.sql.ResultSet rs)
static StatusChange
getProcessStatusFromRs(java.sql.ResultSet rs, java.lang.String prefix)
void
searchProcessStatus(SearchResult<StatusChange> searchResult, int processId, java.util.Set<java.lang.Integer> statusIds)
-
Methods inherited from class ru.bgcrm.dao.CommonDAO
deleteById, getById, getFoundRows, getGroupedIds, getGroupedIds, getIds, getIds, getLikePattern, getLikePatternEnd, getLikePatternStart, getLikePatternSub, getMySQLLimit, getPageLimit, getPeriodSql, lastInsertId, setPeriodParamValue, setRecordCount, sqlToBgException, update, updateColumn, updateIds, updateIds, updateOrInsert
-
-
-
-
Method Detail
-
changeStatus
public void changeStatus(Process process, ProcessType type, StatusChange change) throws java.lang.Exception
- Throws:
java.lang.Exception
-
searchProcessStatus
public void searchProcessStatus(SearchResult<StatusChange> searchResult, int processId, java.util.Set<java.lang.Integer> statusIds) throws BGException
- Throws:
BGException
-
getProcessStatus
public java.util.List<StatusChange> getProcessStatus(int processId, int statusId) throws BGException
- Throws:
BGException
-
getProcessStatusFromRs
public static StatusChange getProcessStatusFromRs(java.sql.ResultSet rs) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
getProcessStatusFromRs
public static StatusChange getProcessStatusFromRs(java.sql.ResultSet rs, java.lang.String prefix) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
-