|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.eng.spagobi.commons.dao.AbstractHibernateDAO
it.eng.spagobi.kpi.goal.dao.GoalDAOImpl
public class GoalDAOImpl
Constructor Summary | |
---|---|
GoalDAOImpl()
|
Method Summary | |
---|---|
void |
eraseGoal(java.lang.Integer grantId)
Remove a goal |
void |
ereseGoalKpis(java.lang.Integer goalNodeId)
Remove the list of kpi model instances linked to a goalNode |
void |
ereseGoalNode(java.lang.Integer goalNodeId)
Remove a goal node |
java.util.List<GoalNode> |
getChildrenNodes(java.lang.Integer nodeId)
Get the children of a goal node |
java.util.List<GoalKpi> |
getGoalKpi(java.lang.Integer goalNodeId)
get the list of kpi model instances linked to a goalNode |
java.util.List<Goal> |
getGoalsList()
Loading the list of the goals |
GoalNode |
getRootNode(java.lang.Integer goalId,
java.lang.Integer ouId)
Get the root node of a goal hierarchy linked to an ou and a grant |
void |
insertGoal(Goal goal)
Insert a goal |
void |
insertGoalKpis(java.util.List<GoalKpi> goalKpis,
java.lang.Integer goalNodeId)
Insert a list of goal kpi model instances |
void |
insertGoalNode(GoalNode goalNode,
java.lang.Integer fatherId)
Insert a goal node |
Goal |
toGoal(SbiGoal hibernateGoal)
|
GoalKpi |
toGoalKpi(SbiGoalKpi hibernateGoalKpi)
|
GoalNode |
toGoalNode(SbiGoalHierarchy hibernateGoalNode)
|
void |
updateGoalName(java.lang.Integer goalId,
java.lang.String newName)
Update a goal node |
void |
updateGoalNode(GoalNode goalNode)
Update a goal node |
Methods inherited from class it.eng.spagobi.commons.dao.AbstractHibernateDAO |
---|
commitIfActiveAndClose, getSession, getUserProfile, logException, rollbackIfActiveAndClose, setUserID, setUserProfile, updateSbiCommonInfo4Insert, updateSbiCommonInfo4Update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface it.eng.spagobi.commons.dao.ISpagoBIDao |
---|
getUserProfile, setUserID, setUserProfile |
Constructor Detail |
---|
public GoalDAOImpl()
Method Detail |
---|
public java.util.List<Goal> getGoalsList()
IGoalDAO
getGoalsList
in interface IGoalDAO
public void insertGoal(Goal goal)
IGoalDAO
insertGoal
in interface IGoalDAO
goal
- the goal to insertpublic void eraseGoal(java.lang.Integer grantId)
IGoalDAO
eraseGoal
in interface IGoalDAO
grantId
- the id of the goal to removepublic GoalNode getRootNode(java.lang.Integer goalId, java.lang.Integer ouId)
IGoalDAO
getRootNode
in interface IGoalDAO
goalId
- the goal idouId
- the id of the ou node
public java.util.List<GoalNode> getChildrenNodes(java.lang.Integer nodeId)
IGoalDAO
getChildrenNodes
in interface IGoalDAO
nodeId
- the id of the node
public void insertGoalNode(GoalNode goalNode, java.lang.Integer fatherId)
IGoalDAO
insertGoalNode
in interface IGoalDAO
goalNode
- the goal nodefatherId
- the id of the father node (can be null)public void ereseGoalNode(java.lang.Integer goalNodeId)
IGoalDAO
ereseGoalNode
in interface IGoalDAO
goalNodeId
- the id of the goal node to removepublic void updateGoalName(java.lang.Integer goalId, java.lang.String newName)
IGoalDAO
updateGoalName
in interface IGoalDAO
goalId
- the id of the goalnewName
- the new name of the goalpublic void updateGoalNode(GoalNode goalNode)
IGoalDAO
updateGoalNode
in interface IGoalDAO
goalNode
- the goal node to updatepublic void insertGoalKpis(java.util.List<GoalKpi> goalKpis, java.lang.Integer goalNodeId)
IGoalDAO
insertGoalKpis
in interface IGoalDAO
goalKpis
- the list to addgoalNodeId
- the id of the goal node linked to the kpi model instancespublic void ereseGoalKpis(java.lang.Integer goalNodeId)
IGoalDAO
ereseGoalKpis
in interface IGoalDAO
goalNodeId
- the id of the goal nodepublic java.util.List<GoalKpi> getGoalKpi(java.lang.Integer goalNodeId)
IGoalDAO
getGoalKpi
in interface IGoalDAO
goalNodeId
- the id of the goal node
public GoalKpi toGoalKpi(SbiGoalKpi hibernateGoalKpi)
public Goal toGoal(SbiGoal hibernateGoal)
public GoalNode toGoalNode(SbiGoalHierarchy hibernateGoalNode)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |