public class HibernateProtocolTypeDao extends HibernateCRUDDao<Protocol> implements ProtocolDao
HibernateDao.DaoBlock, HibernateDao.DaoBlockR<R>
Constructor and Description |
---|
HibernateProtocolTypeDao(HibernateDaoContext context) |
Modifier and Type | Method and Description |
---|---|
void |
addProtocol(Protocol protocolType) |
void |
clear() |
void |
deleteProtocol(String protocolTypeId) |
Protocol |
getProtocol(String protocolTypeId) |
boolean |
isProtocolExist(String protocolTypeId) |
List<Protocol> |
listAllProtocols() |
List<Protocol> |
listAllProtocols(String gridId) |
add, add, clearEach, createCriteria, createDeleteQuery, delete, delete, exists, get, getOrNull, list, update
createDeleteQuery, createDeleteQuery, deleteEntities, getContext, getSession, logAdditionalInfo, logWhenRollbacking, transact, transact
public HibernateProtocolTypeDao(HibernateDaoContext context)
public void clear() throws DaoException
clear
in interface ProtocolDao
clear
in class HibernateCRUDDao<Protocol>
DaoException
public List<Protocol> listAllProtocols() throws DaoException
listAllProtocols
in interface ProtocolDao
DaoException
public void addProtocol(Protocol protocolType) throws ProtocolAlreadyExistsException, DaoException
addProtocol
in interface ProtocolDao
ProtocolAlreadyExistsException
DaoException
public void deleteProtocol(String protocolTypeId) throws ProtocolNotFoundException, DaoException
deleteProtocol
in interface ProtocolDao
ProtocolNotFoundException
DaoException
public Protocol getProtocol(String protocolTypeId) throws ProtocolNotFoundException, DaoException
getProtocol
in interface ProtocolDao
ProtocolNotFoundException
DaoException
public boolean isProtocolExist(String protocolTypeId) throws DaoException
isProtocolExist
in interface ProtocolDao
DaoException
public List<Protocol> listAllProtocols(String gridId) throws DaoException
listAllProtocols
in interface ProtocolDao
DaoException