public class HibernateOverUseLimitDao extends HibernateCRUDDao<OverUseLimit> implements OverUseLimitDao
HibernateDao.DaoBlock, HibernateDao.DaoBlockR<R>
Constructor and Description |
---|
HibernateOverUseLimitDao(HibernateDaoContext context) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
deleteOverUseLimit(String gridId,
Period period,
LimitType limitType) |
void |
deleteOverUseLimitsOfGrid(String gridId) |
OverUseLimit |
getOverUseLimit(String gridId,
Period period,
LimitType limitType) |
List<OverUseLimit> |
listOverUseLimits(String gridId,
Order[] orders) |
void |
setOverUseLimit(String gridId,
Period period,
LimitType limitType,
int limit) |
add, add, clearEach, createCriteria, createDeleteQuery, delete, delete, exists, get, getOrNull, list, update
createDeleteQuery, createDeleteQuery, deleteEntities, getContext, getSession, logAdditionalInfo, logWhenRollbacking, transact, transact
public HibernateOverUseLimitDao(HibernateDaoContext context)
public void clear() throws DaoException
clear
in interface OverUseLimitDao
clear
in class HibernateCRUDDao<OverUseLimit>
DaoException
public List<OverUseLimit> listOverUseLimits(String gridId, Order[] orders) throws DaoException
listOverUseLimits
in interface OverUseLimitDao
DaoException
public void setOverUseLimit(String gridId, Period period, LimitType limitType, int limit) throws DaoException
setOverUseLimit
in interface OverUseLimitDao
DaoException
public OverUseLimit getOverUseLimit(String gridId, Period period, LimitType limitType) throws OverUseLimitNotFoundException, DaoException
getOverUseLimit
in interface OverUseLimitDao
OverUseLimitNotFoundException
DaoException
public void deleteOverUseLimit(String gridId, Period period, LimitType limitType) throws OverUseLimitNotFoundException, DaoException
deleteOverUseLimit
in interface OverUseLimitDao
OverUseLimitNotFoundException
DaoException
public void deleteOverUseLimitsOfGrid(String gridId) throws DaoException
deleteOverUseLimitsOfGrid
in interface OverUseLimitDao
DaoException