Class Hib3CompositeDAO
java.lang.Object
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3CompositeDAO
- All Implemented Interfaces:
CompositeDAO
,GrouperDAO
Basic Hibernate
Composite
DAO interface.- Version:
- $Id: Hib3CompositeDAO.java,v 1.15 2009-11-17 02:52:29 mchyzer Exp $
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Delete a compositefind
(GrouperSession grouperSession, String parentStemId, Stem.Scope stemScope, Subject subject, Set<Privilege> privileges) find composites securefindAsFactor
(Group _g) findAsFactor
(String groupId) findAsFactorOrHasMemberOfFactor
(String groupId) findAsOwner
(Group _g, boolean throwExceptionIfNotFound) findByCreator
(Member member) find all composites by creatorfindByUuid
(String uuid, boolean throwExceptionIfNotFound) findByUuidOrName
(String uuid, String factorOwnerUUID, String leftFactorUUID, String rightFactorUUID, String type, boolean exceptionIfNull) find a composite by name or uuidfindByUuidOrName
(String uuid, String factorOwnerUUID, String leftFactorUUID, String rightFactorUUID, String type, boolean exceptionIfNull, QueryOptions queryOptions) find a composite by name or uuidprotected static void
reset
(HibernateSession hibernateSession) void
Save a compositevoid
saveUpdateProperties
(Composite composite) save the update properties which are auto saved when business method is calledvoid
update a compositevoid
Methods inherited from class edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
evict, evictEntity, evictQueries, getConfiguration, getConfiguration, getSessionFactory, getSessionFactory, hibernateInitted, initHibernateIfNotInitted, initHibernateIfNotInitted, resourceNameFromClassName, session, session
-
Constructor Details
-
Hib3CompositeDAO
public Hib3CompositeDAO()
-
-
Method Details
-
findAsFactorOrHasMemberOfFactor
- Specified by:
findAsFactorOrHasMemberOfFactor
in interfaceCompositeDAO
- Returns:
- Set of composites
- See Also:
-
findAsFactor
- Specified by:
findAsFactor
in interfaceCompositeDAO
- Throws:
GrouperDAOException
- Since:
-
findAsFactor
- Specified by:
findAsFactor
in interfaceCompositeDAO
- Returns:
- set of composites
- Throws:
GrouperDAOException
-
findAsOwner
public Composite findAsOwner(Group _g, boolean throwExceptionIfNotFound) throws CompositeNotFoundException, GrouperDAOException - Specified by:
findAsOwner
in interfaceCompositeDAO
- Throws:
CompositeNotFoundException
GrouperDAOException
-
findByUuid
public Composite findByUuid(String uuid, boolean throwExceptionIfNotFound) throws CompositeNotFoundException, GrouperDAOException - Specified by:
findByUuid
in interfaceCompositeDAO
- Parameters:
uuid
-- Returns:
- the composite
- Throws:
CompositeNotFoundException
GrouperDAOException
- Since:
-
getAllComposites
- Specified by:
getAllComposites
in interfaceCompositeDAO
- Throws:
GrouperDAOException
- Since:
-
update
- Specified by:
update
in interfaceCompositeDAO
- Throws:
GrouperDAOException
- Since:
-
save
Description copied from interface:CompositeDAO
Save a composite- Specified by:
save
in interfaceCompositeDAO
- Parameters:
c
- The composite to save.- See Also:
-
update
Description copied from interface:CompositeDAO
update a composite- Specified by:
update
in interfaceCompositeDAO
- Parameters:
c
- The composite to update.- See Also:
-
delete
Description copied from interface:CompositeDAO
Delete a composite- Specified by:
delete
in interfaceCompositeDAO
- Parameters:
c
- The composite to delete.- See Also:
-
reset
protected static void reset(HibernateSession hibernateSession) throws org.hibernate.HibernateException - Throws:
org.hibernate.HibernateException
-
findByCreator
find all composites by creator- Specified by:
findByCreator
in interfaceCompositeDAO
- Parameters:
member
-- Returns:
- the composites
-
findByUuidOrName
public Composite findByUuidOrName(String uuid, String factorOwnerUUID, String leftFactorUUID, String rightFactorUUID, String type, boolean exceptionIfNull) Description copied from interface:CompositeDAO
find a composite by name or uuid- Specified by:
findByUuidOrName
in interfaceCompositeDAO
- Returns:
- the composite or null
- See Also:
-
findByUuidOrName
public Composite findByUuidOrName(String uuid, String factorOwnerUUID, String leftFactorUUID, String rightFactorUUID, String type, boolean exceptionIfNull, QueryOptions queryOptions) Description copied from interface:CompositeDAO
find a composite by name or uuid- Specified by:
findByUuidOrName
in interfaceCompositeDAO
- Returns:
- the composite or null
- See Also:
-
saveUpdateProperties
Description copied from interface:CompositeDAO
save the update properties which are auto saved when business method is called- Specified by:
saveUpdateProperties
in interfaceCompositeDAO
- See Also:
-
find
public Set<Composite> find(GrouperSession grouperSession, String parentStemId, Stem.Scope stemScope, Subject subject, Set<Privilege> privileges) Description copied from interface:CompositeDAO
find composites secure- Specified by:
find
in interfaceCompositeDAO
- Returns:
- composites
-