public class WorkTypeDAO 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 |
---|
WorkTypeDAO(java.sql.Connection con) |
Modifier and Type | Method and Description |
---|---|
void |
copyWorkDaysCalendar(int calendarId,
int from,
int to) |
void |
deleteWorkType(int id) |
java.util.Set<WorkDaysCalendarExclude> |
getWorkDaysCalendarExcludeSet(int calendarId) |
WorkType |
getWorkType(int id) |
java.util.List<WorkType> |
getWorkTypeList() |
java.util.List<WorkType> |
getWorkTypeList(java.util.Set<?> workTypeIds) |
java.util.Map<java.lang.Integer,WorkType> |
getWorkTypeMap() |
void |
searchWorkType(SearchResult<WorkType> searchResult,
int category) |
void |
updateWorkDaysCalendar(int calendarId,
int type,
java.util.Date date) |
void |
updateWorkType(WorkType workType) |
addLikeSql, convertDateToSqlDate, convertDateToTimestamp, deleteById, getFoundRows, getGroupedIds, getGroupedIds, getIds, getIds, getLikePattern, getMySQLLimit, getPeriodSql, lastInsertId, setPeriodParamValue, setRecordCount, sqlToBgException, updateColumn, updateIds, updateIds
public void searchWorkType(SearchResult<WorkType> searchResult, int category) throws BGException
BGException
public java.util.List<WorkType> getWorkTypeList() throws BGException
BGException
public java.util.List<WorkType> getWorkTypeList(java.util.Set<?> workTypeIds) throws BGException
BGException
public java.util.Map<java.lang.Integer,WorkType> getWorkTypeMap() throws BGException
BGException
public void updateWorkType(WorkType workType) throws BGException
BGException
public WorkType getWorkType(int id) throws BGException
BGException
public void deleteWorkType(int id) throws BGException
BGException
public void updateWorkDaysCalendar(int calendarId, int type, java.util.Date date) throws BGException
BGException
public void copyWorkDaysCalendar(int calendarId, int from, int to) throws BGException
BGException
public java.util.Set<WorkDaysCalendarExclude> getWorkDaysCalendarExcludeSet(int calendarId) throws BGException
BGException