public class P2PGridBasisProtocolDao extends Object implements DataDao, ProtocolDao
Constructor and Description |
---|
P2PGridBasisProtocolDao(ProtocolDao dao,
DaoContext context) |
Modifier and Type | Method and Description |
---|---|
void |
addProtocol(Protocol protocol) |
void |
clear() |
void |
deleteProtocol(String protocolId) |
Protocol |
getProtocol(String protocolId) |
boolean |
isProtocolExist(String protocolId) |
List<Protocol> |
listAllProtocols() |
List<Protocol> |
listAllProtocols(String gridId) |
void |
removeEntityListener() |
void |
setEntityListener() |
boolean |
updateDataSource(Data data) |
boolean |
updateDataTarget(Data data) |
public P2PGridBasisProtocolDao(ProtocolDao dao, DaoContext context)
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 UnmatchedDataTypeException, DataDaoException
updateDataTarget
in interface DataDao
UnmatchedDataTypeException
DataDaoException
public void clear() throws DaoException
clear
in interface ProtocolDao
DaoException
public List<Protocol> listAllProtocols() throws DaoException
listAllProtocols
in interface ProtocolDao
DaoException
public void addProtocol(Protocol protocol) throws ProtocolAlreadyExistsException, DaoException
addProtocol
in interface ProtocolDao
ProtocolAlreadyExistsException
DaoException
public void deleteProtocol(String protocolId) throws ProtocolNotFoundException, DaoException
deleteProtocol
in interface ProtocolDao
ProtocolNotFoundException
DaoException
public Protocol getProtocol(String protocolId) throws ProtocolNotFoundException, DaoException
getProtocol
in interface ProtocolDao
ProtocolNotFoundException
DaoException
public boolean isProtocolExist(String protocolId) throws DaoException
isProtocolExist
in interface ProtocolDao
DaoException
public List<Protocol> listAllProtocols(String gridId) throws DaoException
listAllProtocols
in interface ProtocolDao
DaoException