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

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

public class Hib3ExternalSubjectDAO
extends Hib3DAO
implements ExternalSubjectDAO

Basic Hibernate Group DAO interface.


Field Summary
 
Fields inherited from class edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
hibernateInitted
 
Constructor Summary
Hib3ExternalSubjectDAO()
           
 
Method Summary
 void delete(ExternalSubject externalSubject)
          delete an external subject and all its attributes
 Set<ExternalSubject> findAll()
          find all external subjects
 Set<ExternalSubject> findAllDisabledMismatch()
          find all external subjects which have a disabled date which are not disabled
 ExternalSubject findByIdentifier(String identifier, boolean exceptionIfNotFound, QueryOptions queryOptions)
          find an external subject by identifier
static void reset(HibernateSession hibernateSession)
           
 void saveOrUpdate(ExternalSubject externalSubject)
          insert or update an external subject to the DB
 
Methods inherited from class edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
evict, evictEntity, evictQueries, getConfiguration, getSessionFactory, initHibernateIfNotInitted, resourceNameFromClassName, session
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Hib3ExternalSubjectDAO

public Hib3ExternalSubjectDAO()
Method Detail

findAllDisabledMismatch

public Set<ExternalSubject> findAllDisabledMismatch()
Description copied from interface: ExternalSubjectDAO
find all external subjects which have a disabled date which are not disabled

Specified by:
findAllDisabledMismatch in interface ExternalSubjectDAO
Returns:
the set of subjects
See Also:
ExternalSubjectDAO.findAllDisabledMismatch()

reset

public static void reset(HibernateSession hibernateSession)
Parameters:
hibernateSession -

delete

public void delete(ExternalSubject externalSubject)
Description copied from interface: ExternalSubjectDAO
delete an external subject and all its attributes

Specified by:
delete in interface ExternalSubjectDAO
See Also:
ExternalSubjectDAO.delete(ExternalSubject)

saveOrUpdate

public void saveOrUpdate(ExternalSubject externalSubject)
Description copied from interface: ExternalSubjectDAO
insert or update an external subject to the DB

Specified by:
saveOrUpdate in interface ExternalSubjectDAO
See Also:
save or update this to the DB.

findByIdentifier

public ExternalSubject findByIdentifier(String identifier,
                                        boolean exceptionIfNotFound,
                                        QueryOptions queryOptions)
Description copied from interface: ExternalSubjectDAO
find an external subject by identifier

Specified by:
findByIdentifier in interface ExternalSubjectDAO
Returns:
the external subject or null or exception
See Also:
ExternalSubjectDAO.findByIdentifier(String, boolean, QueryOptions)

findAll

public Set<ExternalSubject> findAll()
Description copied from interface: ExternalSubjectDAO
find all external subjects

Specified by:
findAll in interface ExternalSubjectDAO
Returns:
the set of subjects
See Also:
ExternalSubjectDAO.findAll()