edu.internet2.middleware.grouper.internal.dao.hib3
Class Hib3CompositeDAO

java.lang.Object
  extended by edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
      extended by edu.internet2.middleware.grouper.internal.dao.hib3.Hib3CompositeDAO
All Implemented Interfaces:
CompositeDAO, GrouperDAO

public class Hib3CompositeDAO
extends Hib3DAO
implements CompositeDAO

Basic Hibernate Composite DAO interface.

Version:
$Id: Hib3CompositeDAO.java,v 1.15 2009-11-17 02:52:29 mchyzer Exp $
Author:
blair christensen.

Field Summary
 
Fields inherited from class edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
hibernateInitted
 
Constructor Summary
Hib3CompositeDAO()
           
 
Method Summary
 void delete(Composite c)
          Delete a composite
 Set<Composite> findAsFactor(Group _g)
           
 Set<Composite> findAsFactor(String groupId)
           
 Set<Composite> findAsFactorOrHasMemberOfFactor(String groupId)
           
 Composite findAsOwner(Group _g, boolean throwExceptionIfNotFound)
           
 Set<Composite> findByCreator(Member member)
          find all composites by creator
 Composite findByUuid(String uuid, boolean throwExceptionIfNotFound)
           
 Composite findByUuidOrName(String uuid, String factorOwnerUUID, String leftFactorUUID, String rightFactorUUID, String type, boolean exceptionIfNull)
          find a composite by name or uuid
 Set<Composite> getAllComposites()
           
 void save(Composite c)
          Save a composite
 void saveUpdateProperties(Composite composite)
          save the update properties which are auto saved when business method is called
 void update(Composite c)
          update a composite
 void update(Set toAdd, Set toDelete, Set modGroups, Set modStems)
           
 
Methods inherited from class edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
getConfiguration, initHibernateIfNotInitted, resourceNameFromClassName, session
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Hib3CompositeDAO

public Hib3CompositeDAO()
Method Detail

findAsFactorOrHasMemberOfFactor

public Set<Composite> findAsFactorOrHasMemberOfFactor(String groupId)
Specified by:
findAsFactorOrHasMemberOfFactor in interface CompositeDAO
Returns:
Set of composites
See Also:
CompositeDAO.findAsFactorOrHasMemberOfFactor(java.lang.String)

findAsFactor

public Set<Composite> findAsFactor(Group _g)
                            throws GrouperDAOException
Specified by:
findAsFactor in interface CompositeDAO
Throws:
GrouperDAOException
Since:
@HEAD@

findAsFactor

public Set<Composite> findAsFactor(String groupId)
                            throws GrouperDAOException
Specified by:
findAsFactor in interface CompositeDAO
Returns:
set of composites
Throws:
GrouperDAOException

findAsOwner

public Composite findAsOwner(Group _g,
                             boolean throwExceptionIfNotFound)
                      throws CompositeNotFoundException,
                             GrouperDAOException
Specified by:
findAsOwner in interface CompositeDAO
Throws:
CompositeNotFoundException
GrouperDAOException

findByUuid

public Composite findByUuid(String uuid,
                            boolean throwExceptionIfNotFound)
                     throws CompositeNotFoundException,
                            GrouperDAOException
Specified by:
findByUuid in interface CompositeDAO
Parameters:
uuid -
Returns:
the composite
Throws:
CompositeNotFoundException
GrouperDAOException
Since:
@HEAD@

getAllComposites

public Set<Composite> getAllComposites()
                                throws GrouperDAOException
Specified by:
getAllComposites in interface CompositeDAO
Throws:
GrouperDAOException
Since:
@HEAD@

update

public void update(Set toAdd,
                   Set toDelete,
                   Set modGroups,
                   Set modStems)
            throws GrouperDAOException
Specified by:
update in interface CompositeDAO
Throws:
GrouperDAOException
Since:
@HEAD@

save

public void save(Composite c)
Description copied from interface: CompositeDAO
Save a composite

Specified by:
save in interface CompositeDAO
Parameters:
c - The composite to save.
See Also:
CompositeDAO.save(edu.internet2.middleware.grouper.Composite)

update

public void update(Composite c)
Description copied from interface: CompositeDAO
update a composite

Specified by:
update in interface CompositeDAO
Parameters:
c - The composite to update.
See Also:
CompositeDAO.update(edu.internet2.middleware.grouper.Composite)

delete

public void delete(Composite c)
Description copied from interface: CompositeDAO
Delete a composite

Specified by:
delete in interface CompositeDAO
Parameters:
c - The composite to delete.
See Also:
CompositeDAO.delete(edu.internet2.middleware.grouper.Composite)

findByCreator

public Set<Composite> findByCreator(Member member)
find all composites by creator

Specified by:
findByCreator in interface CompositeDAO
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 interface CompositeDAO
Returns:
the composite or null
See Also:
CompositeDAO.findByUuidOrName(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean)

saveUpdateProperties

public void saveUpdateProperties(Composite composite)
Description copied from interface: CompositeDAO
save the update properties which are auto saved when business method is called

Specified by:
saveUpdateProperties in interface CompositeDAO
See Also:
CompositeDAO.saveUpdateProperties(edu.internet2.middleware.grouper.Composite)