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

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

public class Hib3FlatGroupDAO
extends Hib3DAO
implements FlatGroupDAO

Author:
shilen $Id: Hib3FlatGroupDAO.java 6521 2010-04-09 14:48:40Z shilen $

Field Summary
 
Fields inherited from class edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
hibernateInitted
 
Constructor Summary
Hib3FlatGroupDAO()
           
 
Method Summary
 void delete(FlatGroup flatGroup)
          delete a flat group object
 Set<FlatGroup> findBadFlatGroups()
          remove bad flat groups
 FlatGroup findById(String flatGroupId)
           
 Set<Group> findMissingFlatGroups(int page, int batchSize)
          find missing flat groups
 long findMissingFlatGroupsCount()
          find missing flat groups count
 void removeGroupForeignKey(String flatGroupId)
           
static void reset(HibernateSession hibernateSession)
          reset flat group
 void saveBatch(Set<FlatGroup> flatGroups)
          insert a batch of flat group objects
 void saveOrUpdate(FlatGroup flatGroup)
          insert or update a flat group object
 
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

Hib3FlatGroupDAO

public Hib3FlatGroupDAO()
Method Detail

saveOrUpdate

public void saveOrUpdate(FlatGroup flatGroup)
Description copied from interface: FlatGroupDAO
insert or update a flat group object

Specified by:
saveOrUpdate in interface FlatGroupDAO
See Also:
FlatGroupDAO.saveOrUpdate(edu.internet2.middleware.grouper.flat.FlatGroup)

delete

public void delete(FlatGroup flatGroup)
Description copied from interface: FlatGroupDAO
delete a flat group object

Specified by:
delete in interface FlatGroupDAO
See Also:
FlatGroupDAO.delete(edu.internet2.middleware.grouper.flat.FlatGroup)

saveBatch

public void saveBatch(Set<FlatGroup> flatGroups)
Description copied from interface: FlatGroupDAO
insert a batch of flat group objects

Specified by:
saveBatch in interface FlatGroupDAO
See Also:
FlatGroupDAO.saveBatch(java.util.Set)

reset

public static void reset(HibernateSession hibernateSession)
reset flat group

Parameters:
hibernateSession -

findById

public FlatGroup findById(String flatGroupId)
Specified by:
findById in interface FlatGroupDAO
Returns:
flat group
See Also:
FlatGroupDAO.findById(java.lang.String)

removeGroupForeignKey

public void removeGroupForeignKey(String flatGroupId)
Specified by:
removeGroupForeignKey in interface FlatGroupDAO
See Also:
FlatGroupDAO.removeGroupForeignKey(java.lang.String)

findMissingFlatGroups

public Set<Group> findMissingFlatGroups(int page,
                                        int batchSize)
Description copied from interface: FlatGroupDAO
find missing flat groups

Specified by:
findMissingFlatGroups in interface FlatGroupDAO
Returns:
set of groups that need flat groups

findMissingFlatGroupsCount

public long findMissingFlatGroupsCount()
Description copied from interface: FlatGroupDAO
find missing flat groups count

Specified by:
findMissingFlatGroupsCount in interface FlatGroupDAO
Returns:
long

findBadFlatGroups

public Set<FlatGroup> findBadFlatGroups()
Description copied from interface: FlatGroupDAO
remove bad flat groups

Specified by:
findBadFlatGroups in interface FlatGroupDAO
Returns:
set of flat groups that should be removed