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

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

public class Hib3AttributeDefScopeDAO
extends Hib3DAO
implements AttributeDefScopeDAO

Data Access Object for attribute def scope

Version:
$Id: Hib3AttributeDefScopeDAO.java,v 1.1 2009-06-29 15:58:24 mchyzer Exp $
Author:
mchyzer

Field Summary
 
Fields inherited from class edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
hibernateInitted
 
Constructor Summary
Hib3AttributeDefScopeDAO()
           
 
Method Summary
 void delete(AttributeDefScope attributeDefScope)
          delete an attribute def scope object
 Set<AttributeDefScope> findByAttributeDefId(String attributeDefId, QueryOptions queryOptions)
          find all the scopes for a def
 AttributeDefScope findById(String id, boolean exceptionIfNotFound)
          retrieve by id
 AttributeDefScope findByUuidOrKey(Collection<String> idsToIgnore, String id, String attributeDefId, String attributeDefScopeType, boolean exceptionIfNull, String scopeString)
           
 void saveOrUpdate(AttributeDefScope attributeDefScope)
          save or update
 void saveUpdateProperties(AttributeDefScope attributeDefScope)
          save the update properties which are auto saved when business method is called
 
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

Hib3AttributeDefScopeDAO

public Hib3AttributeDefScopeDAO()
Method Detail

findById

public AttributeDefScope findById(String id,
                                  boolean exceptionIfNotFound)
retrieve by id

Specified by:
findById in interface AttributeDefScopeDAO
Parameters:
id -
exceptionIfNotFound -
Returns:
attribute def scope

saveOrUpdate

public void saveOrUpdate(AttributeDefScope attributeDefScope)
save or update

Specified by:
saveOrUpdate in interface AttributeDefScopeDAO
Parameters:
attributeDefScope -

findByUuidOrKey

public AttributeDefScope findByUuidOrKey(Collection<String> idsToIgnore,
                                         String id,
                                         String attributeDefId,
                                         String attributeDefScopeType,
                                         boolean exceptionIfNull,
                                         String scopeString)
                                  throws GrouperDAOException
Specified by:
findByUuidOrKey in interface AttributeDefScopeDAO
scopeString - is for matching (if id doesnt match)
Returns:
the attribute def scope or null
Throws:
GrouperDAOException
See Also:
AttributeDefScopeDAO.findByUuidOrKey(java.util.Collection, java.lang.String, java.lang.String, java.lang.String, boolean, String)

saveUpdateProperties

public void saveUpdateProperties(AttributeDefScope attributeDefScope)
Description copied from interface: AttributeDefScopeDAO
save the update properties which are auto saved when business method is called

Specified by:
saveUpdateProperties in interface AttributeDefScopeDAO
See Also:
AttributeDefScopeDAO.saveUpdateProperties(edu.internet2.middleware.grouper.attr.AttributeDefScope)

findByAttributeDefId

public Set<AttributeDefScope> findByAttributeDefId(String attributeDefId,
                                                   QueryOptions queryOptions)
Description copied from interface: AttributeDefScopeDAO
find all the scopes for a def

Specified by:
findByAttributeDefId in interface AttributeDefScopeDAO
Returns:
the attribute def scopes
See Also:
AttributeDefScopeDAO.findByAttributeDefId(java.lang.String, QueryOptions)

delete

public void delete(AttributeDefScope attributeDefScope)
Description copied from interface: AttributeDefScopeDAO
delete an attribute def scope object

Specified by:
delete in interface AttributeDefScopeDAO
See Also:
AttributeDefScopeDAO.delete(edu.internet2.middleware.grouper.attr.AttributeDefScope)