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

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

public class Hib3PITGroupDAO
extends Hib3DAO
implements PITGroupDAO

Author:
shilen $Id: Hib3PITGroupDAO.java 7166 2011-01-29 23:11:49Z shilen $

Field Summary
 
Fields inherited from class edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
hibernateInitted
 
Constructor Summary
Hib3PITGroupDAO()
           
 
Method Summary
 void delete(PITGroup pitGroup)
          delete
 void deleteInactiveRecords(java.sql.Timestamp time)
          Delete records that ended before the given date.
 PITGroup findById(java.lang.String pitGroupId)
           
 java.util.Set<PITGroup> findByName(java.lang.String groupName, boolean orderByStartTime)
           
 java.util.Set<PITGroup> getAllGroupsMembershipSecure(java.lang.String pitMemberId, java.lang.String pitFieldId, java.lang.String scope, java.sql.Timestamp pointInTimeFrom, java.sql.Timestamp pointInTimeTo, QueryOptions queryOptions)
          Get all the groups that a member is a member of.
static void reset(HibernateSession hibernateSession)
          reset
 void saveBatch(java.util.Set<PITGroup> pitGroups)
          insert in batch
 void saveOrUpdate(PITGroup pitGroup)
          insert or update
 
Methods inherited from class edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
evict, evictEntity, evictQueries, getConfiguration, initHibernateIfNotInitted, resourceNameFromClassName, session
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Hib3PITGroupDAO

public Hib3PITGroupDAO()
Method Detail

saveOrUpdate

public void saveOrUpdate(PITGroup pitGroup)
Description copied from interface: PITGroupDAO
insert or update

Specified by:
saveOrUpdate in interface PITGroupDAO
See Also:
PITGroupDAO.saveOrUpdate(edu.internet2.middleware.grouper.pit.PITGroup)

delete

public void delete(PITGroup pitGroup)
Description copied from interface: PITGroupDAO
delete

Specified by:
delete in interface PITGroupDAO
See Also:
PITGroupDAO.delete(edu.internet2.middleware.grouper.pit.PITGroup)

saveBatch

public void saveBatch(java.util.Set<PITGroup> pitGroups)
Description copied from interface: PITGroupDAO
insert in batch

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

reset

public static void reset(HibernateSession hibernateSession)
reset

Parameters:
hibernateSession -

findById

public PITGroup findById(java.lang.String pitGroupId)
Specified by:
findById in interface PITGroupDAO
Returns:
pit group
See Also:
PITGroupDAO.findById(java.lang.String)

findByName

public java.util.Set<PITGroup> findByName(java.lang.String groupName,
                                          boolean orderByStartTime)
Specified by:
findByName in interface PITGroupDAO
Returns:
set of pit groups
See Also:
edu.internet2.middleware.grouper.internal.dao.PITGroupDAO#findByName(java.lang.String)

deleteInactiveRecords

public void deleteInactiveRecords(java.sql.Timestamp time)
Description copied from interface: PITGroupDAO
Delete records that ended before the given date.

Specified by:
deleteInactiveRecords in interface PITGroupDAO
See Also:
PITGroupDAO.deleteInactiveRecords(java.sql.Timestamp)

getAllGroupsMembershipSecure

public java.util.Set<PITGroup> getAllGroupsMembershipSecure(java.lang.String pitMemberId,
                                                            java.lang.String pitFieldId,
                                                            java.lang.String scope,
                                                            java.sql.Timestamp pointInTimeFrom,
                                                            java.sql.Timestamp pointInTimeTo,
                                                            QueryOptions queryOptions)
Description copied from interface: PITGroupDAO
Get all the groups that a member is a member of.

Specified by:
getAllGroupsMembershipSecure in interface PITGroupDAO
Returns:
set of pit groups
See Also:
PITGroupDAO.getAllGroupsMembershipSecure(java.lang.String, java.lang.String, java.lang.String, java.sql.Timestamp, java.sql.Timestamp, edu.internet2.middleware.grouper.internal.dao.QueryOptions)