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

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

public class Hib3GroupTypeTupleDAO
extends Hib3DAO
implements GroupTypeTupleDAO

Basic Hibernate Group and GroupType tuple DAO interface.

Since:
@HEAD@
Version:
$Id: Hib3GroupTypeTupleDAO.java,v 1.6 2009-03-24 17:12:08 mchyzer Exp $
Author:
blair christensen.

Field Summary
 
Fields inherited from class edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
hibernateInitted
 
Constructor Summary
Hib3GroupTypeTupleDAO()
           
 
Method Summary
 void delete(GroupTypeTuple groupTypeTuple)
          delete in db
static GroupTypeTuple findByGroupAndType(Group g, GroupType type)
           
static GroupTypeTuple findByGroupAndType(Group g, GroupType type, boolean exceptionIfNotExist)
           
 GroupTypeTuple findByUuidOrKey(java.lang.String uuid, java.lang.String groupUuid, java.lang.String typeUuid, boolean exceptionIfNull)
           
 void save(GroupTypeTuple groupTypeTuple)
          save in db
 void saveUpdateProperties(GroupTypeTuple groupTypeTuple)
          save the update properties which are auto saved when business method is called
 void update(GroupTypeTuple groupTypeTuple)
          update in db
 
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

Hib3GroupTypeTupleDAO

public Hib3GroupTypeTupleDAO()
Method Detail

findByGroupAndType

public static GroupTypeTuple findByGroupAndType(Group g,
                                                GroupType type)
                                         throws GrouperDAOException
Parameters:
g -
type -
Returns:
the group type tuple
Throws:
GrouperDAOException

findByGroupAndType

public static GroupTypeTuple findByGroupAndType(Group g,
                                                GroupType type,
                                                boolean exceptionIfNotExist)
                                         throws GrouperDAOException
Parameters:
g -
type -
exceptionIfNotExist - should this throw an exception if not exist?
Returns:
the group type tuple
Throws:
GrouperDAOException

findByUuidOrKey

public GroupTypeTuple findByUuidOrKey(java.lang.String uuid,
                                      java.lang.String groupUuid,
                                      java.lang.String typeUuid,
                                      boolean exceptionIfNull)
                               throws GrouperDAOException
Specified by:
findByUuidOrKey in interface GroupTypeTupleDAO
Returns:
the stem or null
Throws:
GrouperDAOException
See Also:
GroupTypeTupleDAO.findByUuidOrKey(java.lang.String, java.lang.String, java.lang.String, boolean)

saveUpdateProperties

public void saveUpdateProperties(GroupTypeTuple groupTypeTuple)
Description copied from interface: GroupTypeTupleDAO
save the update properties which are auto saved when business method is called

Specified by:
saveUpdateProperties in interface GroupTypeTupleDAO
See Also:
GroupTypeTupleDAO.saveUpdateProperties(edu.internet2.middleware.grouper.GroupTypeTuple)

update

public void update(GroupTypeTuple groupTypeTuple)
            throws GrouperDAOException
Description copied from interface: GroupTypeTupleDAO
update in db

Specified by:
update in interface GroupTypeTupleDAO
Throws:
GrouperDAOException
See Also:
GroupTypeTupleDAO.update(edu.internet2.middleware.grouper.GroupTypeTuple)

save

public void save(GroupTypeTuple groupTypeTuple)
          throws GrouperDAOException
Description copied from interface: GroupTypeTupleDAO
save in db

Specified by:
save in interface GroupTypeTupleDAO
Throws:
GrouperDAOException
See Also:
GroupTypeTupleDAO.save(edu.internet2.middleware.grouper.GroupTypeTuple)

delete

public void delete(GroupTypeTuple groupTypeTuple)
            throws GrouperDAOException
Description copied from interface: GroupTypeTupleDAO
delete in db

Specified by:
delete in interface GroupTypeTupleDAO
Throws:
GrouperDAOException
See Also:
GroupTypeTupleDAO.delete(edu.internet2.middleware.grouper.GroupTypeTuple)