Package it.eng.spagobi.analiticalmodel.document.metadata

Examples of it.eng.spagobi.analiticalmodel.document.metadata.SbiViewpoints


   
    try {
      aSession = getSession();
      tx = aSession.beginTransaction();
   
      SbiViewpoints hibViewpoint = (SbiViewpoints)aSession.load(SbiViewpoints.class,  id);
     
      toReturn = toViewpoint(hibViewpoint);
      tx.commit();
     
    } catch (HibernateException he) {
View Full Code Here


      String hql = "from SbiViewpoints vp where vp.sbiObject.biobjId = ? and vp.vpName = ?" ;
      Query hqlQuery = aSession.createQuery(hql);
      hqlQuery.setInteger(0, biobjectId.intValue());
      hqlQuery.setString(1, name);
     
      SbiViewpoints hibViewpoint = (SbiViewpoints)hqlQuery.uniqueResult();
      if (hibViewpoint == null) return null;
      toReturn = toViewpoint(hibViewpoint);
      tx.commit();
     
    } catch (HibernateException he) {
View Full Code Here

    Transaction tx = null;
    try {
      aSession = getSession();
      tx = aSession.beginTransaction();
     
      SbiViewpoints hibViewpoint = (SbiViewpoints) aSession.load(SbiViewpoints.class, id);

      aSession.delete(hibViewpoint);
      tx.commit();
    } catch (HibernateException he) {
      logException(he);
View Full Code Here

    Session aSession = null;
    Transaction tx = null;
    try {
      aSession = getSession();
      tx = aSession.beginTransaction();
      SbiViewpoints hibViewpoint = new SbiViewpoints();

      //hibViewpoint.setVpId(vpId);
      SbiObjects aSbiObject = (SbiObjects) aSession.load(SbiObjects.class, viewpoint.getBiobjId());
      hibViewpoint.setSbiObject(aSbiObject);
      hibViewpoint.setVpDesc(viewpoint.getVpDesc());
      hibViewpoint.setVpOwner(viewpoint.getVpOwner());
      hibViewpoint.setVpName(viewpoint.getVpName());
      hibViewpoint.setVpScope(viewpoint.getVpScope());
      hibViewpoint.setVpValueParams(viewpoint.getVpValueParams());
      hibViewpoint.setVpCreationDate(viewpoint.getVpCreationDate());
      updateSbiCommonInfo4Insert(hibViewpoint);
      aSession.save(hibViewpoint);
      tx.commit();
    } catch (HibernateException he) {
      logException(he);
View Full Code Here

TOP

Related Classes of it.eng.spagobi.analiticalmodel.document.metadata.SbiViewpoints

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.