Interface FieldDAO
- All Superinterfaces:
GrouperDAO
- All Known Implementing Classes:
Hib3FieldDAO
Basic
Field
DAO interface.- Since:
- 1.2.0
- Version:
- $Id: FieldDAO.java,v 1.9 2009-04-13 16:53:08 mchyzer Exp $
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createOrUpdate
(Field field) void
Delete fieldvoid
Delete fieldsboolean
existsByName
(String name) findAll()
findAllByType
(FieldType type) Deprecated.use the FieldFinder insteadfindByUuidOrName
(String uuid, String name, boolean exceptionIfNull) findByUuidOrName
(String uuid, String name, boolean exceptionIfNull, QueryOptions queryOptions) boolean
void
saveUpdateProperties
(Field field) save the update properties which are auto saved when business method is calledvoid
update in db
-
Method Details
-
createOrUpdate
- Parameters:
field
-
-
existsByName
- Parameters:
name
-- Returns:
- if exists
- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
findAll
- Returns:
- all fields
- Throws:
GrouperException
- Since:
- 1.2.0
-
findAllByType
Deprecated.use the FieldFinder instead- Parameters:
type
-- Returns:
- set of fields
- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
update
update in db- Parameters:
field
-- Throws:
GrouperDAOException
-
isInUse
- 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
save the update properties which are auto saved when business method is called- Parameters:
field
-
-
delete
Delete field- Parameters:
field
-
-
delete
Delete fields- Parameters:
fields
-
-