public class HibernateFederationDao extends HibernateCRUDDao<Federation> implements FederationDao
HibernateDao.DaoBlock, HibernateDao.DaoBlockR<R>| Constructor and Description |
|---|
HibernateFederationDao(HibernateDaoContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFederation(Federation federation) |
void |
addFederation(String sourceGridId,
String targetGridId) |
void |
clear() |
void |
deleteFederation(String sourceGridId,
String targetGridId) |
void |
deleteFederationsOf(String gridId) |
Federation |
getFederation(String sourceGridId,
String targetGridId) |
boolean |
isFederationExist(String sourceGridId,
String targetGridId) |
List<Federation> |
list() |
List<Federation> |
listFederationsFrom(String sourceGridId) |
List<Federation> |
listFederationsToward(String targetGridId) |
List<String> |
listSourceGridIds(String targetGridId) |
List<String> |
listTargetGridIds(String sourceGridId) |
void |
setConnected(String sourceGridId,
String targetGridId,
boolean isConnected) |
void |
setRequesting(String sourceGridId,
String targetGridId,
boolean isRequesting) |
add, add, clearEach, createCriteria, createDeleteQuery, delete, delete, exists, get, getOrNull, updatecreateDeleteQuery, createDeleteQuery, deleteEntities, getContext, getSession, logAdditionalInfo, logWhenRollbacking, transact, transactpublic HibernateFederationDao(HibernateDaoContext context)
public void clear()
throws DaoException
clear in interface FederationDaoclear in class HibernateCRUDDao<Federation>DaoExceptionpublic List<Federation> list() throws DaoException
list in interface FederationDaolist in class HibernateCRUDDao<Federation>DaoExceptionpublic void deleteFederationsOf(String gridId) throws DaoException
deleteFederationsOf in interface FederationDaoDaoExceptionpublic List<String> listSourceGridIds(String targetGridId) throws DaoException
listSourceGridIds in interface FederationDaoDaoExceptionpublic List<String> listTargetGridIds(String sourceGridId) throws DaoException
listTargetGridIds in interface FederationDaoDaoExceptionpublic List<Federation> listFederationsFrom(String sourceGridId) throws DaoException
listFederationsFrom in interface FederationDaoDaoExceptionpublic List<Federation> listFederationsToward(String targetGridId) throws DaoException
listFederationsToward in interface FederationDaoDaoExceptionpublic boolean isFederationExist(String sourceGridId, String targetGridId) throws DaoException
isFederationExist in interface FederationDaoDaoExceptionpublic Federation getFederation(String sourceGridId, String targetGridId) throws FederationNotFoundException, DaoException
getFederation in interface FederationDaoFederationNotFoundExceptionDaoExceptionpublic void addFederation(String sourceGridId, String targetGridId) throws FederationAlreadyExistsException, DaoException
addFederation in interface FederationDaoFederationAlreadyExistsExceptionDaoExceptionpublic void addFederation(Federation federation) throws FederationAlreadyExistsException, DaoException
addFederation in interface FederationDaoFederationAlreadyExistsExceptionDaoExceptionpublic void deleteFederation(String sourceGridId, String targetGridId) throws FederationNotFoundException, DaoException
deleteFederation in interface FederationDaoFederationNotFoundExceptionDaoExceptionpublic void setRequesting(String sourceGridId, String targetGridId, boolean isRequesting) throws DaoException
setRequesting in interface FederationDaoDaoExceptionpublic void setConnected(String sourceGridId, String targetGridId, boolean isConnected) throws DaoException
setConnected in interface FederationDaoDaoException