public class ShiftDAO 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 |
---|
ShiftDAO(java.sql.Connection con) |
Modifier and Type | Method and Description |
---|---|
void |
addCallboardTask(int process_id,
int group,
int team,
int graph,
java.util.Date date) |
void |
deleteCallboardTask(int process_id) |
void |
deleteCallboardTask(int process_id,
int group,
int team,
int graph,
java.util.Date date) |
void |
deleteShift(int id) |
void |
deleteWorkShift(int graphId,
int groupId,
int userId,
java.util.Date date) |
java.util.List<WorkShift> |
findSameWorkShift(WorkShift workShift) |
java.util.Map<java.lang.Integer,Shift> |
getAllShiftMap() |
java.util.List<CallboardTask> |
getDateTaskList(java.util.Date date) |
java.util.Map<java.util.Date,java.util.Set<WorkShift>> |
getMonthWorkShift(java.util.Date date,
int groupId) |
Shift |
getShift(int id) |
Shift |
getShift(int id,
int category) |
static Shift |
getShiftFromRs(java.sql.ResultSet rs) |
java.util.List<Shift> |
getShiftList(int category) |
java.util.List<Shift> |
getShiftList(java.util.Set<java.lang.Integer> shiftIds) |
java.util.Map<java.lang.Integer,java.util.Set<WorkShift>> |
getWorkShift(int graphId,
java.util.Date fromDate,
java.util.Date toDate,
java.util.Map<java.lang.Integer,java.util.Set<java.lang.Integer>> groupWithUsersSet) |
WorkShift |
getWorkShift(int graphId,
int groupId,
int userId,
java.util.Date date) |
boolean |
isTimeOccupied(int group,
int team,
int graph,
java.util.Date date) |
void |
searchShift(SearchResult<Shift> searchResult,
int category) |
void |
updateShift(Shift shift) |
void |
updateWorkShift(WorkShift workShift) |
addLikeSql, convertDateToSqlDate, convertDateToTimestamp, deleteById, getFoundRows, getGroupedIds, getGroupedIds, getIds, getIds, getLikePattern, getMySQLLimit, getPeriodSql, lastInsertId, setPeriodParamValue, setRecordCount, sqlToBgException, updateColumn, updateIds, updateIds
public void searchShift(SearchResult<Shift> searchResult, int category) throws BGException
BGException
public java.util.List<Shift> getShiftList(int category) throws BGException
BGException
public java.util.List<Shift> getShiftList(java.util.Set<java.lang.Integer> shiftIds) throws BGException
BGException
public java.util.Map<java.lang.Integer,Shift> getAllShiftMap() throws BGException
BGException
public static Shift getShiftFromRs(java.sql.ResultSet rs) throws BGException
BGException
public Shift getShift(int id, int category) throws BGException
BGException
public Shift getShift(int id) throws BGException
BGException
public void deleteShift(int id) throws BGException
BGException
public void updateShift(Shift shift) throws BGException
BGException
public WorkShift getWorkShift(int graphId, int groupId, int userId, java.util.Date date) throws BGException
BGException
public java.util.Map<java.lang.Integer,java.util.Set<WorkShift>> getWorkShift(int graphId, java.util.Date fromDate, java.util.Date toDate, java.util.Map<java.lang.Integer,java.util.Set<java.lang.Integer>> groupWithUsersSet) throws BGException
BGException
public java.util.Map<java.util.Date,java.util.Set<WorkShift>> getMonthWorkShift(java.util.Date date, int groupId) throws BGException
BGException
public void updateWorkShift(WorkShift workShift) throws BGException
BGException
public void deleteWorkShift(int graphId, int groupId, int userId, java.util.Date date) throws BGException
BGException
public void addCallboardTask(int process_id, int group, int team, int graph, java.util.Date date) throws BGException
BGException
public void deleteCallboardTask(int process_id, int group, int team, int graph, java.util.Date date) throws BGException
BGException
public void deleteCallboardTask(int process_id) throws BGException
BGException
public boolean isTimeOccupied(int group, int team, int graph, java.util.Date date) throws BGException
BGException
public java.util.List<CallboardTask> getDateTaskList(java.util.Date date) throws BGException
BGException
public java.util.List<WorkShift> findSameWorkShift(WorkShift workShift) throws BGException
BGException