public class DispatchDAO extends CommonDAO
CommonDAO.ObjectExtractor<T>, CommonDAO.RecordUpdater<T extends Id>
con, dateFormat_DDMMYYYY, dateFormat_DDMMYYYY_HHMM, log, SQL_AND, SQL_DELETE, SQL_DESC, SQL_FROM, SQL_GROUP_BY, SQL_INNER_JOIN, SQL_INSERT, SQL_INSERT_IGNORE, SQL_LEFT_JOIN, SQL_LEFT_OUTER_JOIN, SQL_LIMIT, SQL_ON_DUP_KEY_UPDATE, SQL_OR, SQL_ORDER_BY, SQL_REPLACE, SQL_SELECT, SQL_SELECT_ALL_FROM, SQL_SELECT_COUNT_ROWS, SQL_SET, SQL_UPDATE, SQL_WHERE
Constructor and Description |
---|
DispatchDAO(java.sql.Connection con) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Dispatch> |
accountSubsriptionList(java.lang.String email) |
void |
accountSubsriptionUpdate(java.lang.String email,
java.util.Set<java.lang.Integer> dispatchIds) |
void |
dispatchDelete(int id) |
Dispatch |
dispatchGet(int id) |
java.util.List<Dispatch> |
dispatchList(java.util.Set<java.lang.Integer> ids) |
void |
dispatchUpdate(Dispatch dispatch) |
void |
dispatchUpdateAccountCounts() |
java.util.List<java.lang.String> |
messageAccountList(int messageId) |
void |
messageDelete(int id) |
DispatchMessage |
messageGet(int id) |
void |
messageSearch(SearchResult<DispatchMessage> result,
java.lang.Boolean sent) |
java.util.List<DispatchMessage> |
messageUnsentList() |
void |
messageUpdate(DispatchMessage message) |
void |
searchDispatch(SearchResult<Dispatch> result) |
deleteById, execute, execute, execute, executeInsert, executeUpdate, getById, getFoundRows, getFoundRows, getGroupedIds, getGroupedIds, getIds, getIds, getLikePattern, getLikePatternEnd, getLikePatternStart, getLikePatternSub, getMySQLLimit, getPeriodSql, lastInsertId, setPeriodParamValue, setRecordCount, sqlToBgException, update, updateColumn, updateIds, updateIds
public void searchDispatch(SearchResult<Dispatch> result) throws BGException
BGException
public void dispatchUpdate(Dispatch dispatch) throws BGException
BGException
public Dispatch dispatchGet(int id) throws BGException
BGException
public void dispatchDelete(int id) throws BGException
BGException
public java.util.List<Dispatch> dispatchList(java.util.Set<java.lang.Integer> ids) throws BGException
BGException
public void dispatchUpdateAccountCounts() throws BGException
BGException
public java.util.List<Dispatch> accountSubsriptionList(java.lang.String email) throws BGException
BGException
public void accountSubsriptionUpdate(java.lang.String email, java.util.Set<java.lang.Integer> dispatchIds) throws BGException
BGException
public void messageSearch(SearchResult<DispatchMessage> result, java.lang.Boolean sent) throws BGException
BGException
public java.util.List<DispatchMessage> messageUnsentList() throws BGException
BGException
public DispatchMessage messageGet(int id) throws BGException
BGException
public void messageDelete(int id) throws BGException
BGException
public java.util.List<java.lang.String> messageAccountList(int messageId) throws BGException
BGException
public void messageUpdate(DispatchMessage message) throws BGException
BGException