Class Hib3AttributeAssignActionSetDAO
java.lang.Object
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3AttributeAssignActionSetDAO
- All Implemented Interfaces:
AttributeAssignActionSetDAO
,GrouperDAO
Data Access Object for attribute assign action set
- Version:
- $Id: Hib3AttributeAssignActionSetDAO.java,v 1.4 2009-11-17 02:52:29 mchyzer Exp $
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattributeAssignActionsImpliedByThis
(String attributeAssignActionId) get all the THEN rows from attributeDefNameSet about this id.attributeAssignActionsImpliedByThisImmediate
(String attributeAssignActionId) get all the THEN rows from attributeDefNameSet about this id (immediate).attributeAssignActionsThatImplyThis
(String attributeAssignActionId) get all the IF rows from attributeAssignActionSet about this id.attributeAssignActionsThatImplyThisImmediate
(String attributeAssignActionId) get all the IF rows from attributeDefNameSet about this id (immediate only).void
delete
(AttributeAssignActionSet attributeAssignActionSet) delete an attribute assign action setvoid
deleteByIfHasAttributeAssignAction
(AttributeAssignAction attributeAssignAction) delete attributeAssignAction sets by owner, so the attributeAssignAction can be deletedfindByDepthOneForAttributeDef
(String attributeDefId) find by depth one for attribute deffind by set ownerfindByIfThenHasAttributeAssignActionId
(String attributeAssignActionSetForThens, String attributeAssignActionSetForIfs) this will help with deletes.findByIfThenImmediate
(String attributeAssignActionIdIf, String attributeAssignActionIdThen, boolean exceptionIfNotFound) find by if and then (not same) with depth of 1 (immediate)find by memberfindByUuidOrKey
(String id, String ifHasAttributeAssignActionId, String thenHasAttributeAssignActionId, String parentAttributeAssignActionSetId, int depth, boolean exceptionIfNull) find a record by uuid or keyvoid
saveOrUpdate
(AttributeAssignActionSet attributeAssignActionSet) insert or update an attributeAssignActionSetvoid
saveUpdateProperties
(AttributeAssignActionSet attributeAssignActionSet) 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
-
Hib3AttributeAssignActionSetDAO
public Hib3AttributeAssignActionSetDAO()
-
-
Method Details
-
findById
public AttributeAssignActionSet findById(String id, boolean exceptionIfNotFound) throws AttributeAssignActionSetNotFoundException - Specified by:
findById
in interfaceAttributeAssignActionSetDAO
- Returns:
- the attribute def name set or null if not there
- Throws:
AttributeAssignActionSetNotFoundException
- See Also:
-
saveOrUpdate
Description copied from interface:AttributeAssignActionSetDAO
insert or update an attributeAssignActionSet- Specified by:
saveOrUpdate
in interfaceAttributeAssignActionSetDAO
- See Also:
-
findByIfHasAttributeAssignActionId
Description copied from interface:AttributeAssignActionSetDAO
find by set owner- Specified by:
findByIfHasAttributeAssignActionId
in interfaceAttributeAssignActionSetDAO
- Returns:
- the attribute assign action set or null if not there
- See Also:
-
findByThenHasAttributeAssignActionId
Description copied from interface:AttributeAssignActionSetDAO
find by member- Specified by:
findByThenHasAttributeAssignActionId
in interfaceAttributeAssignActionSetDAO
- Returns:
- the attribute assign action set or null if not there
- See Also:
-
findByIfThenHasAttributeAssignActionId
public Set<AttributeAssignActionSet> findByIfThenHasAttributeAssignActionId(String attributeAssignActionSetForThens, String attributeAssignActionSetForIfs) Description copied from interface:AttributeAssignActionSetDAO
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:
findByIfThenHasAttributeAssignActionId
in interfaceAttributeAssignActionSetDAO
- Returns:
- the attribute assign action set or null if not there
- See Also:
-
delete
Description copied from interface:AttributeAssignActionSetDAO
delete an attribute assign action set- Specified by:
delete
in interfaceAttributeAssignActionSetDAO
- See Also:
-
findByIfThenImmediate
public AttributeAssignActionSet findByIfThenImmediate(String attributeAssignActionIdIf, String attributeAssignActionIdThen, boolean exceptionIfNotFound) throws AttributeAssignActionSetNotFoundException Description copied from interface:AttributeAssignActionSetDAO
find by if and then (not same) with depth of 1 (immediate)- Specified by:
findByIfThenImmediate
in interfaceAttributeAssignActionSetDAO
- Returns:
- the attributeAssignActionSet
- Throws:
AttributeAssignActionSetNotFoundException
- See Also:
-
deleteByIfHasAttributeAssignAction
Description copied from interface:AttributeAssignActionSetDAO
delete attributeAssignAction sets by owner, so the attributeAssignAction can be deleted -
attributeAssignActionsImpliedByThis
public Set<AttributeAssignAction> attributeAssignActionsImpliedByThis(String attributeAssignActionId) Description copied from interface:AttributeAssignActionSetDAO
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:
attributeAssignActionsImpliedByThis
in interfaceAttributeAssignActionSetDAO
- Returns:
- the AttributeAssignAction
- See Also:
-
attributeAssignActionsImpliedByThisImmediate
public Set<AttributeAssignAction> attributeAssignActionsImpliedByThisImmediate(String attributeAssignActionId) Description copied from interface:AttributeAssignActionSetDAO
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:
attributeAssignActionsImpliedByThisImmediate
in interfaceAttributeAssignActionSetDAO
- Returns:
- the AttributeDefName
- See Also:
-
attributeAssignActionsThatImplyThis
public Set<AttributeAssignAction> attributeAssignActionsThatImplyThis(String attributeAssignActionId) Description copied from interface:AttributeAssignActionSetDAO
get all the IF rows from attributeAssignActionSet about this id. The ones returned imply that this is also assigned. Those are the parents, this is the child.- Specified by:
attributeAssignActionsThatImplyThis
in interfaceAttributeAssignActionSetDAO
- Returns:
- the AttributeAssignAction
- See Also:
-
attributeAssignActionsThatImplyThisImmediate
public Set<AttributeAssignAction> attributeAssignActionsThatImplyThisImmediate(String attributeAssignActionId) Description copied from interface:AttributeAssignActionSetDAO
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:
attributeAssignActionsThatImplyThisImmediate
in interfaceAttributeAssignActionSetDAO
- Returns:
- the attributeAssignActionId
- See Also:
-
findByUuidOrKey
public AttributeAssignActionSet findByUuidOrKey(String id, String ifHasAttributeAssignActionId, String thenHasAttributeAssignActionId, String parentAttributeAssignActionSetId, int depth, boolean exceptionIfNull) Description copied from interface:AttributeAssignActionSetDAO
find a record by uuid or key- Specified by:
findByUuidOrKey
in interfaceAttributeAssignActionSetDAO
- Returns:
- the roleset or null
- See Also:
-
saveUpdateProperties
Description copied from interface:AttributeAssignActionSetDAO
save the update properties which are auto saved when business method is called -
findByDepthOneForAttributeDef
Description copied from interface:AttributeAssignActionSetDAO
find by depth one for attribute def- Specified by:
findByDepthOneForAttributeDef
in interfaceAttributeAssignActionSetDAO
- Returns:
- the attribute assign action set or null if not there
- See Also:
-