edu.internet2.middleware.grouper.internal.dao
Interface FieldDAO

All Superinterfaces:
GrouperDAO
All Known Implementing Classes:
Hib3FieldDAO

public interface FieldDAO
extends GrouperDAO

Basic Field DAO interface.

Since:
1.2.0
Version:
$Id: FieldDAO.java,v 1.9 2009-04-13 16:53:08 mchyzer Exp $
Author:
blair christensen.

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
 

Method Detail

createOrUpdate

void createOrUpdate(Field field)
Parameters:
field -

existsByName

boolean existsByName(String name)
                     throws GrouperDAOException
Parameters:
name -
Returns:
if exists
Throws:
GrouperDAOException
Since:
1.2.0

findAll

Set<Field> findAll()
                   throws GrouperException
Returns:
all fields
Throws:
GrouperException
Since:
1.2.0

findAllByType

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

Parameters:
type -
Returns:
set of fields
Throws:
GrouperDAOException
Since:
1.2.0

update

void update(Field field)
            throws GrouperDAOException
update in db

Parameters:
field -
Throws:
GrouperDAOException

isInUse

boolean isInUse(Field f)
                throws GrouperDAOException,
                       SchemaException
Parameters:
f -
Returns:
if in use
Throws:
GrouperDAOException
SchemaException
Since:
1.2.0

findByUuidOrName

Field findByUuidOrName(String uuid,
                       String name,
                       boolean exceptionIfNull)
                       throws GrouperDAOException
Parameters:
uuid -
name -
exceptionIfNull -
Returns:
the field or null
Throws:
GrouperDAOException
Since:
1.6.0

findByUuidOrName

Field findByUuidOrName(String uuid,
                       String name,
                       boolean exceptionIfNull,
                       QueryOptions queryOptions)
                       throws GrouperDAOException
Parameters:
uuid -
name -
exceptionIfNull -
queryOptions -
Returns:
the field or null
Throws:
GrouperDAOException
Since:
1.6.0

saveUpdateProperties

void saveUpdateProperties(Field field)
save the update properties which are auto saved when business method is called

Parameters:
field -

delete

void delete(Field field)
Delete field

Parameters:
field -

delete

void delete(Set<Field> fields)
Delete fields

Parameters:
fields -