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

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

public class Hib3GroupTypeDAO
extends Hib3DAO
implements GroupTypeDAO

Basic Hibernate GroupType DAO interface.

Version:
$Id: Hib3GroupTypeDAO.java,v 1.16 2009-09-21 06:14:26 mchyzer Exp $
Author:
blair christensen.

Field Summary
 
Fields inherited from class edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
hibernateInitted
 
Constructor Summary
Hib3GroupTypeDAO()
           
 
Method Summary
 void createField(Field _f)
           
 void createOrUpdate(GroupType groupType)
          insert or update
 void delete(GroupType _gt, Set fields)
           
 void deleteField(Field field)
           
 boolean existsByName(String name)
           
 Set<GroupType> findAll()
           
 Set<GroupType> findAllByCreator(Member member)
          find all group types by creator
 GroupType findByUuid(String uuid)
          Deprecated. 
 GroupType findByUuid(String uuid, boolean exceptionIfNull)
           
 GroupType findByUuidOrName(String uuid, String name, boolean exceptionIfNull)
           
 void saveUpdateProperties(GroupType groupType)
          save the update properties which are auto saved when business method is called
 void update(GroupType groupType)
          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

Hib3GroupTypeDAO

public Hib3GroupTypeDAO()
Method Detail

createOrUpdate

public void createOrUpdate(GroupType groupType)
                    throws GrouperDAOException
insert or update

Specified by:
createOrUpdate in interface GroupTypeDAO
Parameters:
groupType -
Throws:
GrouperDAOException

createField

public void createField(Field _f)
                 throws GrouperDAOException
Specified by:
createField in interface GroupTypeDAO
Parameters:
_f -
Throws:
GrouperDAOException
Since:
@HEAD@

delete

public void delete(GroupType _gt,
                   Set fields)
            throws GrouperDAOException
Specified by:
delete in interface GroupTypeDAO
Parameters:
_gt -
fields -
Throws:
GrouperDAOException
Since:
@HEAD@

deleteField

public void deleteField(Field field)
                 throws GrouperDAOException
Specified by:
deleteField in interface GroupTypeDAO
Parameters:
field -
Throws:
GrouperDAOException

existsByName

public boolean existsByName(String name)
                     throws GrouperDAOException
Specified by:
existsByName in interface GroupTypeDAO
Parameters:
name -
Returns:
boolean
Throws:
GrouperDAOException
Since:
@HEAD@

findAll

public Set<GroupType> findAll()
                       throws GrouperDAOException
Specified by:
findAll in interface GroupTypeDAO
Returns:
set of types
Throws:
GrouperDAOException
Since:
@HEAD@

findByUuid

@Deprecated
public GroupType findByUuid(String uuid)
                     throws GrouperDAOException,
                            SchemaException
Deprecated. 

Specified by:
findByUuid in interface GroupTypeDAO
Parameters:
uuid -
Returns:
type
Throws:
GrouperDAOException
SchemaException

findByUuid

public GroupType findByUuid(String uuid,
                            boolean exceptionIfNull)
                     throws GrouperDAOException,
                            SchemaException
Specified by:
findByUuid in interface GroupTypeDAO
Parameters:
uuid -
exceptionIfNull -
Returns:
type
Throws:
GrouperDAOException
SchemaException

findAllByCreator

public Set<GroupType> findAllByCreator(Member member)
find all group types by creator

Specified by:
findAllByCreator in interface GroupTypeDAO
Parameters:
member -
Returns:
the group types

findByUuidOrName

public GroupType findByUuidOrName(String uuid,
                                  String name,
                                  boolean exceptionIfNull)
                           throws GrouperDAOException
Specified by:
findByUuidOrName in interface GroupTypeDAO
Returns:
the stem or null
Throws:
GrouperDAOException
See Also:
GroupTypeDAO.findByUuidOrName(java.lang.String, java.lang.String, boolean)

update

public void update(GroupType groupType)
            throws GrouperDAOException
Description copied from interface: GroupTypeDAO
update in db

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

saveUpdateProperties

public void saveUpdateProperties(GroupType groupType)
Description copied from interface: GroupTypeDAO
save the update properties which are auto saved when business method is called

Specified by:
saveUpdateProperties in interface GroupTypeDAO
See Also:
GroupTypeDAO.saveUpdateProperties(edu.internet2.middleware.grouper.GroupType)