public class HibernateGridDao extends HibernateCRUDDao<Grid> implements GridDao
HibernateDao.DaoBlock, HibernateDao.DaoBlockR<R>
Constructor and Description |
---|
HibernateGridDao(HibernateDaoContext context) |
Modifier and Type | Method and Description |
---|---|
void |
addGrid(Grid grid) |
void |
clear() |
void |
deleteGrid(String gridId) |
Grid |
getGrid(String gridId) |
boolean |
isGridExist(String gridId) |
List<Grid> |
listAllGrids() |
add, add, clearEach, createCriteria, createDeleteQuery, delete, delete, exists, get, getOrNull, list, update
createDeleteQuery, createDeleteQuery, deleteEntities, getContext, getSession, logAdditionalInfo, logWhenRollbacking, transact, transact
public HibernateGridDao(HibernateDaoContext context)
public void clear() throws DaoException
clear
in interface GridDao
clear
in class HibernateCRUDDao<Grid>
DaoException
public void addGrid(Grid grid) throws GridAlreadyExistsException, DaoException
addGrid
in interface GridDao
GridAlreadyExistsException
DaoException
public void deleteGrid(String gridId) throws GridNotFoundException, DaoException
deleteGrid
in interface GridDao
GridNotFoundException
DaoException
public Grid getGrid(String gridId) throws GridNotFoundException, DaoException
getGrid
in interface GridDao
GridNotFoundException
DaoException
public boolean isGridExist(String gridId) throws DaoException
isGridExist
in interface GridDao
DaoException
public List<Grid> listAllGrids() throws DaoException
listAllGrids
in interface GridDao
DaoException