public class P2PGridBasisOverUseLimitDao extends Object implements DataDao, OverUseLimitDao
Constructor and Description |
---|
P2PGridBasisOverUseLimitDao(OverUseLimitDao dao,
DaoContext context)
The constructor.
|
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 |
removeEntityListener() |
void |
setEntityListener() |
void |
setOverUseLimit(String gridId,
Period period,
LimitType limitType,
int limitValue) |
boolean |
updateDataSource(Data data) |
boolean |
updateDataTarget(Data data) |
public P2PGridBasisOverUseLimitDao(OverUseLimitDao dao, DaoContext context)
dao
- public void setEntityListener()
setEntityListener
in interface DataDao
public void removeEntityListener()
removeEntityListener
in interface DataDao
public boolean updateDataSource(Data data) throws DataDaoException, UnmatchedDataTypeException
updateDataSource
in interface DataDao
DataDaoException
UnmatchedDataTypeException
public boolean updateDataTarget(Data data) throws DataDaoException, UnmatchedDataTypeException
updateDataTarget
in interface DataDao
DataDaoException
UnmatchedDataTypeException
public void clear() throws DaoException
clear
in interface OverUseLimitDao
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
public OverUseLimit getOverUseLimit(String gridId, Period period, LimitType limitType) throws OverUseLimitNotFoundException, DaoException
getOverUseLimit
in interface OverUseLimitDao
OverUseLimitNotFoundException
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 limitValue) throws DaoException
setOverUseLimit
in interface OverUseLimitDao
DaoException