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).voiddelete(AttributeDefNameSet attributeDefNameSet) delete an attribute def name setvoiddeleteByIfHasAttributeDefName(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 keyvoidsaveOrUpdate(AttributeDefNameSet attributeDefNameSet) insert or update an attribute def name setvoidsaveUpdateProperties(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:
findByIdin interfaceAttributeDefNameSetDAO- Returns:
- the attribute def name set or null if not there
- Throws:
AttributeDefNameSetNotFoundException- See Also:
-
saveOrUpdate
Description copied from interface:AttributeDefNameSetDAOinsert or update an attribute def name set- Specified by:
saveOrUpdatein interfaceAttributeDefNameSetDAO- See Also:
-
findByIfHasAttributeDefNameId
Description copied from interface:AttributeDefNameSetDAOfind by set owner- Specified by:
findByIfHasAttributeDefNameIdin interfaceAttributeDefNameSetDAO- Returns:
- the attribute def name set or null if not there
- See Also:
-
findByThenHasAttributeDefNameId
Description copied from interface:AttributeDefNameSetDAOfind by member- Specified by:
findByThenHasAttributeDefNameIdin 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:AttributeDefNameSetDAOthis 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:
findByIfThenHasAttributeDefNameIdin interfaceAttributeDefNameSetDAO- Returns:
- the attribute def name set or null if not there
- See Also:
-
delete
Description copied from interface:AttributeDefNameSetDAOdelete an attribute def name set- Specified by:
deletein interfaceAttributeDefNameSetDAO- See Also:
-
findByIfThenImmediate
public AttributeDefNameSet findByIfThenImmediate(String attributeDefNameIdIf, String attributeDefNameIdThen, boolean exceptionIfNotFound) throws AttributeDefNameSetNotFoundException Description copied from interface:AttributeDefNameSetDAOfind by if and then (not same) with depth of 1 (immediate)- Specified by:
findByIfThenImmediatein interfaceAttributeDefNameSetDAO- Returns:
- the attributeDefNameSet
- Throws:
AttributeDefNameSetNotFoundException- See Also:
-
deleteByIfHasAttributeDefName
Description copied from interface:AttributeDefNameSetDAOdelete attributeDefName sets by owner, so the attributeDefName can be deleted -
attributeDefNamesImpliedByThis
Description copied from interface:AttributeDefNameSetDAOget 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:
attributeDefNamesImpliedByThisin interfaceAttributeDefNameSetDAO- Returns:
- the AttributeDefName
- See Also:
-
attributeDefNamesImpliedByThisImmediate
Description copied from interface:AttributeDefNameSetDAOget 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:
attributeDefNamesImpliedByThisImmediatein interfaceAttributeDefNameSetDAO- Returns:
- the AttributeDefName
- See Also:
-
attributeDefNamesThatImplyThis
Description copied from interface:AttributeDefNameSetDAOget 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:
attributeDefNamesThatImplyThisin interfaceAttributeDefNameSetDAO- Returns:
- the AttributeDefName
- See Also:
-
attributeDefNamesThatImplyThisImmediate
Description copied from interface:AttributeDefNameSetDAOget 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:
attributeDefNamesThatImplyThisImmediatein 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:AttributeDefNameSetDAOfind a record by uuid or key- Specified by:
findByUuidOrKeyin interfaceAttributeDefNameSetDAO- Returns:
- the AttributeDefNameSet or null
- See Also:
-
saveUpdateProperties
Description copied from interface:AttributeDefNameSetDAOsave the update properties which are auto saved when business method is called- Specified by:
saveUpdatePropertiesin interfaceAttributeDefNameSetDAO- See Also:
-
findByDepthOneForAttributeDef
Description copied from interface:AttributeDefNameSetDAOfind by depth one for attribute def- Specified by:
findByDepthOneForAttributeDefin interfaceAttributeDefNameSetDAO- Returns:
- the attribute def name set or null if not there
- See Also:
-