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, update
createDeleteQuery, createDeleteQuery, deleteEntities, getContext, getSession, logAdditionalInfo, logWhenRollbacking, transact, transact
public HibernateFederationDao(HibernateDaoContext context)
public void clear() throws DaoException
clear
in interface FederationDao
clear
in class HibernateCRUDDao<Federation>
DaoException
public List<Federation> list() throws DaoException
list
in interface FederationDao
list
in class HibernateCRUDDao<Federation>
DaoException
public void deleteFederationsOf(String gridId) throws DaoException
deleteFederationsOf
in interface FederationDao
DaoException
public List<String> listSourceGridIds(String targetGridId) throws DaoException
listSourceGridIds
in interface FederationDao
DaoException
public List<String> listTargetGridIds(String sourceGridId) throws DaoException
listTargetGridIds
in interface FederationDao
DaoException
public List<Federation> listFederationsFrom(String sourceGridId) throws DaoException
listFederationsFrom
in interface FederationDao
DaoException
public List<Federation> listFederationsToward(String targetGridId) throws DaoException
listFederationsToward
in interface FederationDao
DaoException
public boolean isFederationExist(String sourceGridId, String targetGridId) throws DaoException
isFederationExist
in interface FederationDao
DaoException
public Federation getFederation(String sourceGridId, String targetGridId) throws FederationNotFoundException, DaoException
getFederation
in interface FederationDao
FederationNotFoundException
DaoException
public void addFederation(String sourceGridId, String targetGridId) throws FederationAlreadyExistsException, DaoException
addFederation
in interface FederationDao
FederationAlreadyExistsException
DaoException
public void addFederation(Federation federation) throws FederationAlreadyExistsException, DaoException
addFederation
in interface FederationDao
FederationAlreadyExistsException
DaoException
public void deleteFederation(String sourceGridId, String targetGridId) throws FederationNotFoundException, DaoException
deleteFederation
in interface FederationDao
FederationNotFoundException
DaoException
public void setRequesting(String sourceGridId, String targetGridId, boolean isRequesting) throws DaoException
setRequesting
in interface FederationDao
DaoException
public void setConnected(String sourceGridId, String targetGridId, boolean isConnected) throws DaoException
setConnected
in interface FederationDao
DaoException