Class Hib3FieldDAO
java.lang.Object
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3FieldDAO
- All Implemented Interfaces:
FieldDAO
,GrouperDAO
Basic Hibernate
Field
DAO interface.- Since:
- Version:
- $Id: Hib3FieldDAO.java,v 1.16 2009-11-17 02:52:29 mchyzer Exp $
-
Constructor Summary
-
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
protected static void
reset
(HibernateSession hibernateSession) void
saveUpdateProperties
(Field field) save the update properties which are auto saved when business method is calledvoid
update in dbMethods inherited from class edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
evict, evictEntity, evictQueries, getConfiguration, getConfiguration, getSessionFactory, getSessionFactory, hibernateInitted, initHibernateIfNotInitted, initHibernateIfNotInitted, resourceNameFromClassName, session, session
-
Constructor Details
-
Hib3FieldDAO
public Hib3FieldDAO()
-
-
Method Details
-
existsByName
- Specified by:
existsByName
in interfaceFieldDAO
- Parameters:
name
-- Returns:
- if exists
- Throws:
GrouperDAOException
- Since:
-
findAll
- Specified by:
findAll
in interfaceFieldDAO
- Returns:
- set of fields
- Throws:
GrouperException
- Since:
-
findAllByType
Deprecated.use the FieldFinder instead- Specified by:
findAllByType
in interfaceFieldDAO
- Parameters:
type
-- Returns:
- set of fields
- Throws:
GrouperDAOException
- Since:
-
isInUse
- Specified by:
isInUse
in interfaceFieldDAO
- Parameters:
f
-- Returns:
- if in use
- Throws:
GrouperDAOException
SchemaException
- Since:
-
createOrUpdate
- Specified by:
createOrUpdate
in interfaceFieldDAO
- See Also:
-
findByUuidOrName
public Field findByUuidOrName(String uuid, String name, boolean exceptionIfNull) throws GrouperDAOException - Specified by:
findByUuidOrName
in interfaceFieldDAO
- Returns:
- the field or null
- Throws:
GrouperDAOException
- See Also:
-
findByUuidOrName
public Field findByUuidOrName(String uuid, String name, boolean exceptionIfNull, QueryOptions queryOptions) throws GrouperDAOException - Specified by:
findByUuidOrName
in interfaceFieldDAO
- Returns:
- the field or null
- Throws:
GrouperDAOException
- See Also:
-
saveUpdateProperties
Description copied from interface:FieldDAO
save the update properties which are auto saved when business method is called- Specified by:
saveUpdateProperties
in interfaceFieldDAO
- See Also:
-
update
Description copied from interface:FieldDAO
update in db- Specified by:
update
in interfaceFieldDAO
- Throws:
GrouperDAOException
- See Also:
-
delete
Description copied from interface:FieldDAO
Delete field -
delete
Description copied from interface:FieldDAO
Delete fields -
reset
protected static void reset(HibernateSession hibernateSession) throws org.hibernate.HibernateException - Parameters:
hibernateSession
-- Throws:
org.hibernate.HibernateException
-