Class Hib3AttributeDefNameSetDAO
java.lang.Object
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3AttributeDefNameSetDAO
- All Implemented Interfaces:
AttributeDefNameSetDAO
,GrouperDAO
Data Access Object for attribute def name set
- Version:
- $Id: Hib3AttributeDefNameSetDAO.java,v 1.11 2009-11-17 02:52:29 mchyzer Exp $
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattributeDefNamesImpliedByThis
(String attributeDefNameId) get all the THEN rows from attributeDefNameSet about this id.attributeDefNamesImpliedByThisImmediate
(String attributeDefNameId) get all the THEN rows from attributeDefNameSet about this id (immediate).attributeDefNamesThatImplyThis
(String attributeDefNameId) get all the IF rows from attributeDefNameSet about this id.attributeDefNamesThatImplyThisImmediate
(String attributeDefNameId) get all the IF rows from attributeDefNameSet about this id (immediate only).void
delete
(AttributeDefNameSet attributeDefNameSet) delete an attribute def name setvoid
deleteByIfHasAttributeDefName
(AttributeDefName attributeDefName) delete attributeDefName sets by owner, so the attributeDefName can be deletedfindByDepthOneForAttributeDef
(String attributeDefId) find by depth one for attribute deffind by set ownerfindByIfThenHasAttributeDefNameId
(String attributeDefNameSetForThens, String attributeDefNameSetForIfs) this will help with deletes.findByIfThenImmediate
(String attributeDefNameIdIf, String attributeDefNameIdThen, boolean exceptionIfNotFound) find by if and then (not same) with depth of 1 (immediate)find by memberfindByUuidOrKey
(String id, String ifHasAttributeDefNameId, String thenHasAttributeDefNameId, String parentAttributeDefNameSetId, int depth, boolean exceptionIfNull) find a record by uuid or keyvoid
saveOrUpdate
(AttributeDefNameSet attributeDefNameSet) insert or update an attribute def name setvoid
saveUpdateProperties
(AttributeDefNameSet attributeDefNameSet) save the update properties which are auto saved when business method is calledMethods 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
-
Hib3AttributeDefNameSetDAO
public Hib3AttributeDefNameSetDAO()
-
-
Method Details
-
findById
public AttributeDefNameSet findById(String id, boolean exceptionIfNotFound) throws AttributeDefNameSetNotFoundException - Specified by:
findById
in interfaceAttributeDefNameSetDAO
- Returns:
- the attribute def name set or null if not there
- Throws:
AttributeDefNameSetNotFoundException
- See Also:
-
saveOrUpdate
Description copied from interface:AttributeDefNameSetDAO
insert or update an attribute def name set- Specified by:
saveOrUpdate
in interfaceAttributeDefNameSetDAO
- See Also:
-
findByIfHasAttributeDefNameId
Description copied from interface:AttributeDefNameSetDAO
find by set owner- Specified by:
findByIfHasAttributeDefNameId
in interfaceAttributeDefNameSetDAO
- Returns:
- the attribute def name set or null if not there
- See Also:
-
findByThenHasAttributeDefNameId
Description copied from interface:AttributeDefNameSetDAO
find by member- Specified by:
findByThenHasAttributeDefNameId
in interfaceAttributeDefNameSetDAO
- Returns:
- the attribute def name set or null if not there
- See Also:
-
findByIfThenHasAttributeDefNameId
public Set<AttributeDefNameSet> findByIfThenHasAttributeDefNameId(String attributeDefNameSetForThens, String attributeDefNameSetForIfs) Description copied from interface:AttributeDefNameSetDAO
this will help with deletes. It will find sets who have if's which match thens provided, and thens which match ifs provided. So if there is this path: A -> B -> C -> D And the inputs here are B and C (removing that path) Then return A -> C, A -> D, B -> C, B -> D
- Specified by:
findByIfThenHasAttributeDefNameId
in interfaceAttributeDefNameSetDAO
- Returns:
- the attribute def name set or null if not there
- See Also:
-
delete
Description copied from interface:AttributeDefNameSetDAO
delete an attribute def name set- Specified by:
delete
in interfaceAttributeDefNameSetDAO
- See Also:
-
findByIfThenImmediate
public AttributeDefNameSet findByIfThenImmediate(String attributeDefNameIdIf, String attributeDefNameIdThen, boolean exceptionIfNotFound) throws AttributeDefNameSetNotFoundException Description copied from interface:AttributeDefNameSetDAO
find by if and then (not same) with depth of 1 (immediate)- Specified by:
findByIfThenImmediate
in interfaceAttributeDefNameSetDAO
- Returns:
- the attributeDefNameSet
- Throws:
AttributeDefNameSetNotFoundException
- See Also:
-
deleteByIfHasAttributeDefName
Description copied from interface:AttributeDefNameSetDAO
delete attributeDefName sets by owner, so the attributeDefName can be deleted -
attributeDefNamesImpliedByThis
Description copied from interface:AttributeDefNameSetDAO
get all the THEN rows from attributeDefNameSet about this id. The ones returned are implied if this one is assigned. Those are the children, this is the parent- Specified by:
attributeDefNamesImpliedByThis
in interfaceAttributeDefNameSetDAO
- Returns:
- the AttributeDefName
- See Also:
-
attributeDefNamesImpliedByThisImmediate
Description copied from interface:AttributeDefNameSetDAO
get all the THEN rows from attributeDefNameSet about this id (immediate). The ones returned are implied if this one is assigned. Those are the children, this is the parent- Specified by:
attributeDefNamesImpliedByThisImmediate
in interfaceAttributeDefNameSetDAO
- Returns:
- the AttributeDefName
- See Also:
-
attributeDefNamesThatImplyThis
Description copied from interface:AttributeDefNameSetDAO
get all the IF rows from attributeDefNameSet about this id. The ones returned imply that this is also assigned. Those are the parents, this is the child.- Specified by:
attributeDefNamesThatImplyThis
in interfaceAttributeDefNameSetDAO
- Returns:
- the AttributeDefName
- See Also:
-
attributeDefNamesThatImplyThisImmediate
Description copied from interface:AttributeDefNameSetDAO
get all the IF rows from attributeDefNameSet about this id (immediate only). The ones returned imply that this is also assigned. Those are the parents, this is the child.- Specified by:
attributeDefNamesThatImplyThisImmediate
in interfaceAttributeDefNameSetDAO
- Returns:
- the AttributeDefName
- See Also:
-
findByUuidOrKey
public AttributeDefNameSet findByUuidOrKey(String id, String ifHasAttributeDefNameId, String thenHasAttributeDefNameId, String parentAttributeDefNameSetId, int depth, boolean exceptionIfNull) Description copied from interface:AttributeDefNameSetDAO
find a record by uuid or key- Specified by:
findByUuidOrKey
in interfaceAttributeDefNameSetDAO
- Returns:
- the AttributeDefNameSet or null
- See Also:
-
saveUpdateProperties
Description copied from interface:AttributeDefNameSetDAO
save the update properties which are auto saved when business method is called- Specified by:
saveUpdateProperties
in interfaceAttributeDefNameSetDAO
- See Also:
-
findByDepthOneForAttributeDef
Description copied from interface:AttributeDefNameSetDAO
find by depth one for attribute def- Specified by:
findByDepthOneForAttributeDef
in interfaceAttributeDefNameSetDAO
- Returns:
- the attribute def name set or null if not there
- See Also:
-