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

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

public class Hib3AttributeDefNameDAO
extends Hib3DAO
implements AttributeDefNameDAO

Data Access Object for attribute def name

Version:
$Id: Hib3AttributeDefNameDAO.java,v 1.6 2009-11-17 02:52:29 mchyzer Exp $
Author:
mchyzer

Field Summary
 
Fields inherited from class edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
hibernateInitted
 
Constructor Summary
Hib3AttributeDefNameDAO()
           
 
Method Summary
 void delete(AttributeDefName attributeDefName)
          delete this attribute def name
 Set<AttributeDefName> findAllSecure(String searchField, Set<String> searchInAttributeDefIds, QueryOptions queryOptions)
          search for attributeDefName by name, display name, or description.
 Set<AttributeDefName> findByAttributeDef(String id)
          Find all that have the given attribute def id.
 Set<AttributeDefName> findByAttributeDefLike(String attributeDefId, String likeString)
          search for all by attribute def id, and like string
 AttributeDefName findByIdSecure(String id, boolean exceptionIfNotFound)
           
 AttributeDefName findByNameSecure(String name, boolean exceptionIfNotFound)
          find an attribute def name by name
 Set<AttributeDefName> findByStem(String id)
          Find all that have the given stem id.
 AttributeDefName findByUuidOrName(String id, String name, boolean exceptionIfNotFound)
          find a record by uuid or name
 void saveOrUpdate(AttributeDefName attributeDefName)
          insert or update an attribute def name object
 void saveUpdateProperties(AttributeDefName attributeDefName)
          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, initHibernateIfNotInitted, resourceNameFromClassName, session
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Hib3AttributeDefNameDAO

public Hib3AttributeDefNameDAO()
Method Detail

findByIdSecure

public AttributeDefName findByIdSecure(String id,
                                       boolean exceptionIfNotFound)
Specified by:
findByIdSecure in interface AttributeDefNameDAO
Returns:
the attribute def name or null if not there
See Also:
AttributeDefNameDAO.findByIdSecure(java.lang.String, boolean)

saveOrUpdate

public void saveOrUpdate(AttributeDefName attributeDefName)
Description copied from interface: AttributeDefNameDAO
insert or update an attribute def name object

Specified by:
saveOrUpdate in interface AttributeDefNameDAO
See Also:
AttributeDefNameDAO.saveOrUpdate(edu.internet2.middleware.grouper.attr.AttributeDefName)

findByNameSecure

public AttributeDefName findByNameSecure(String name,
                                         boolean exceptionIfNotFound)
                                  throws GrouperDAOException,
                                         AttributeDefNameNotFoundException
Description copied from interface: AttributeDefNameDAO
find an attribute def name by name

Specified by:
findByNameSecure in interface AttributeDefNameDAO
Returns:
name
Throws:
GrouperDAOException
AttributeDefNameNotFoundException
See Also:
AttributeDefNameDAO.findByNameSecure(java.lang.String, boolean)

delete

public void delete(AttributeDefName attributeDefName)
Description copied from interface: AttributeDefNameDAO
delete this attribute def name

Specified by:
delete in interface AttributeDefNameDAO
See Also:
AttributeDefNameDAO.delete(AttributeDefName)

findByStem

public Set<AttributeDefName> findByStem(String id)
Description copied from interface: AttributeDefNameDAO
Find all that have the given stem id.

Specified by:
findByStem in interface AttributeDefNameDAO
Returns:
set of attribute def names
See Also:
AttributeDefNameDAO.findByStem(java.lang.String)

findByUuidOrName

public AttributeDefName findByUuidOrName(String id,
                                         String name,
                                         boolean exceptionIfNotFound)
Description copied from interface: AttributeDefNameDAO
find a record by uuid or name

Specified by:
findByUuidOrName in interface AttributeDefNameDAO
Returns:
the attribute def name
See Also:
AttributeDefNameDAO.findByUuidOrName(java.lang.String, java.lang.String, boolean)

saveUpdateProperties

public void saveUpdateProperties(AttributeDefName attributeDefName)
Description copied from interface: AttributeDefNameDAO
save the update properties which are auto saved when business method is called

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

findByAttributeDef

public Set<AttributeDefName> findByAttributeDef(String id)
Description copied from interface: AttributeDefNameDAO
Find all that have the given attribute def id.

Specified by:
findByAttributeDef in interface AttributeDefNameDAO
Returns:
set of attribute def names
See Also:
AttributeDefNameDAO.findByAttributeDef(java.lang.String)

findAllSecure

public Set<AttributeDefName> findAllSecure(String searchField,
                                           Set<String> searchInAttributeDefIds,
                                           QueryOptions queryOptions)
Description copied from interface: AttributeDefNameDAO
search for attributeDefName by name, display name, or description. This is a secure method, a GrouperSession must be open. Note, you should add the % signs before calling this method

Specified by:
findAllSecure in interface AttributeDefNameDAO
Parameters:
searchField - substring to search for
searchInAttributeDefIds - ids to search in or null for all
Returns:
the attribute def names or empty set
See Also:
AttributeDefNameDAO.findAllSecure(java.lang.String, java.util.Set, QueryOptions)

findByAttributeDefLike

public Set<AttributeDefName> findByAttributeDefLike(String attributeDefId,
                                                    String likeString)
Description copied from interface: AttributeDefNameDAO
search for all by attribute def id, and like string

Specified by:
findByAttributeDefLike in interface AttributeDefNameDAO
Returns:
the attribute def names or empty set
See Also:
AttributeDefNameDAO.findByAttributeDefLike(String, String)