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

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

public class Hib3FieldDAO
extends Hib3DAO
implements FieldDAO

Basic Hibernate Field DAO interface.

Since:
@HEAD@
Version:
$Id: Hib3FieldDAO.java,v 1.16 2009-11-17 02:52:29 mchyzer Exp $
Author:
blair christensen.

Field Summary
 
Fields inherited from class edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
hibernateInitted
 
Constructor Summary
Hib3FieldDAO()
           
 
Method Summary
 void createOrUpdate(Field field)
           
 void delete(Field field)
          Delete field
 void delete(Set<Field> fields)
          Delete fields
 boolean existsByName(String name)
           
 Set<Field> findAll()
           
 Set<Field> findAllByType(FieldType type)
          Deprecated. use the FieldFinder instead
 Field findByUuidOrName(String uuid, String name, boolean exceptionIfNull)
           
 Field findByUuidOrName(String uuid, String name, boolean exceptionIfNull, QueryOptions queryOptions)
           
 boolean isInUse(Field f)
           
 void saveUpdateProperties(Field field)
          save the update properties which are auto saved when business method is called
 void update(Field field)
          update in 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

Hib3FieldDAO

public Hib3FieldDAO()
Method Detail

existsByName

public boolean existsByName(String name)
                     throws GrouperDAOException
Specified by:
existsByName in interface FieldDAO
Parameters:
name -
Returns:
if exists
Throws:
GrouperDAOException
Since:
@HEAD@

findAll

public Set<Field> findAll()
                   throws GrouperException
Specified by:
findAll in interface FieldDAO
Returns:
set of fields
Throws:
GrouperException
Since:
@HEAD@

findAllByType

@Deprecated
public Set<Field> findAllByType(FieldType type)
                         throws GrouperDAOException
Deprecated. use the FieldFinder instead

Specified by:
findAllByType in interface FieldDAO
Parameters:
type -
Returns:
set of fields
Throws:
GrouperDAOException
Since:
@HEAD@

isInUse

public boolean isInUse(Field f)
                throws GrouperDAOException,
                       SchemaException
Specified by:
isInUse in interface FieldDAO
Parameters:
f -
Returns:
if in use
Throws:
GrouperDAOException
SchemaException
Since:
@HEAD@

createOrUpdate

public void createOrUpdate(Field field)
Specified by:
createOrUpdate in interface FieldDAO
See Also:
FieldDAO.createOrUpdate(edu.internet2.middleware.grouper.Field)

findByUuidOrName

public Field findByUuidOrName(String uuid,
                              String name,
                              boolean exceptionIfNull)
                       throws GrouperDAOException
Specified by:
findByUuidOrName in interface FieldDAO
Returns:
the field or null
Throws:
GrouperDAOException
See Also:
FieldDAO.findByUuidOrName(java.lang.String, java.lang.String, boolean)

findByUuidOrName

public Field findByUuidOrName(String uuid,
                              String name,
                              boolean exceptionIfNull,
                              QueryOptions queryOptions)
                       throws GrouperDAOException
Specified by:
findByUuidOrName in interface FieldDAO
Returns:
the field or null
Throws:
GrouperDAOException
See Also:
FieldDAO.findByUuidOrName(java.lang.String, java.lang.String, boolean, QueryOptions)

saveUpdateProperties

public void saveUpdateProperties(Field field)
Description copied from interface: FieldDAO
save the update properties which are auto saved when business method is called

Specified by:
saveUpdateProperties in interface FieldDAO
See Also:
FieldDAO.saveUpdateProperties(edu.internet2.middleware.grouper.Field)

update

public void update(Field field)
            throws GrouperDAOException
Description copied from interface: FieldDAO
update in db

Specified by:
update in interface FieldDAO
Throws:
GrouperDAOException
See Also:
FieldDAO.update(edu.internet2.middleware.grouper.Field)

delete

public void delete(Field field)
Description copied from interface: FieldDAO
Delete field

Specified by:
delete in interface FieldDAO
See Also:
FieldDAO.delete(edu.internet2.middleware.grouper.Field)

delete

public void delete(Set<Field> fields)
Description copied from interface: FieldDAO
Delete fields

Specified by:
delete in interface FieldDAO
See Also:
FieldDAO.delete(java.util.Set)