Package it.eng.spagobi.kpi.goal.metadata

Examples of it.eng.spagobi.kpi.goal.metadata.SbiGoal


    Transaction tx = null;
    try {
      aSession = getSession();
      tx = aSession.beginTransaction();
     
      SbiGoal hibGoal = new SbiGoal();
      hibGoal.setName(goal.getName());
      hibGoal.setLabel(goal.getLabel());
      hibGoal.setDescription(goal.getDescription());
      hibGoal.setStartDate(goal.getStartDate());
      hibGoal.setEndDate(goal.getEndDate());
      hibGoal.setGrantId(goal.getGrantId());
      updateSbiCommonInfo4Insert(hibGoal);
      if(goal.getId()!=null){
        hibGoal.setGoalId(goal.getId());
        aSession.update(hibGoal);         
        tx.commit();
      }else{
        aSession.save(hibGoal)
        tx.commit();
        goal.setId(hibGoal.getGoalId());
      }
    } finally {
      rollbackIfActiveAndClose(tx, aSession);
    }
    logger.debug("OUT: OrganizationalUnit inserted successfully with id " + goal.getId());
View Full Code Here


    Transaction tx = null;
    try {
      aSession = getSession();
      tx = aSession.beginTransaction();
     
      SbiGoal hibGrant = (SbiGoal) aSession.load(SbiGoal.class, grantId);
      aSession.delete(hibGrant);
     
      tx.commit();
    } finally {
      rollbackIfActiveAndClose(tx, aSession);
View Full Code Here

TOP

Related Classes of it.eng.spagobi.kpi.goal.metadata.SbiGoal

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.