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 TypeMethodDescriptionvoidDelete 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 voidreset(HibernateSession hibernateSession) voidSave a compositevoidsaveUpdateProperties(Composite composite) save the update properties which are auto saved when business method is calledvoidupdate a compositevoidMethods 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:
findAsFactorOrHasMemberOfFactorin interfaceCompositeDAO- Returns:
- Set of composites
- See Also:
-
findAsFactor
- Specified by:
findAsFactorin interfaceCompositeDAO- Throws:
GrouperDAOException- Since:
-
findAsFactor
- Specified by:
findAsFactorin interfaceCompositeDAO- Returns:
- set of composites
- Throws:
GrouperDAOException
-
findAsOwner
public Composite findAsOwner(Group _g, boolean throwExceptionIfNotFound) throws CompositeNotFoundException, GrouperDAOException - Specified by:
findAsOwnerin interfaceCompositeDAO- Throws:
CompositeNotFoundExceptionGrouperDAOException
-
findByUuid
public Composite findByUuid(String uuid, boolean throwExceptionIfNotFound) throws CompositeNotFoundException, GrouperDAOException - Specified by:
findByUuidin interfaceCompositeDAO- Parameters:
uuid-- Returns:
- the composite
- Throws:
CompositeNotFoundExceptionGrouperDAOException- Since:
-
getAllComposites
- Specified by:
getAllCompositesin interfaceCompositeDAO- Throws:
GrouperDAOException- Since:
-
update
- Specified by:
updatein interfaceCompositeDAO- Throws:
GrouperDAOException- Since:
-
save
Description copied from interface:CompositeDAOSave a composite- Specified by:
savein interfaceCompositeDAO- Parameters:
c- The composite to save.- See Also:
-
update
Description copied from interface:CompositeDAOupdate a composite- Specified by:
updatein interfaceCompositeDAO- Parameters:
c- The composite to update.- See Also:
-
delete
Description copied from interface:CompositeDAODelete a composite- Specified by:
deletein 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:
findByCreatorin 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:CompositeDAOfind a composite by name or uuid- Specified by:
findByUuidOrNamein 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:CompositeDAOfind a composite by name or uuid- Specified by:
findByUuidOrNamein interfaceCompositeDAO- Returns:
- the composite or null
- See Also:
-
saveUpdateProperties
Description copied from interface:CompositeDAOsave the update properties which are auto saved when business method is called- Specified by:
saveUpdatePropertiesin interfaceCompositeDAO- See Also:
-
find
public Set<Composite> find(GrouperSession grouperSession, String parentStemId, Stem.Scope stemScope, Subject subject, Set<Privilege> privileges) Description copied from interface:CompositeDAOfind composites secure- Specified by:
findin interfaceCompositeDAO- Returns:
- composites
-