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

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


       " and son.execReq = ?";
      Query query = aSession.createQuery(hql);
      query.setInteger(0, biobjId.intValue());
      query.setString(1, execIdentif);
     
      SbiObjNotes hibObjNote = null;
      List l = query.list();
      if(l!=null && !l.isEmpty()){
        hibObjNote = (SbiObjNotes)l.get(0);
      }
      if(hibObjNote!=null) {
View Full Code Here


      Query query = aSession.createQuery(hql);
      query.setInteger(0, biobjId.intValue());
      query.setString(1, execIdentif);
      query.setString(2, owner);
     
      SbiObjNotes hibObjNote = (SbiObjNotes)query.uniqueResult();
      if(hibObjNote!=null) {
        objNote = toObjNote(hibObjNote);
      }
      tx.commit();
    } catch (HibernateException he) {
View Full Code Here

      hibBinContent.setContent(objNote.getContent());
      Integer idBin = (Integer)aSession.save(hibBinContent);
      // recover the saved binary hibernate object
      hibBinContent = (SbiBinContents) aSession.load(SbiBinContents.class, idBin);
      // store the object note
      SbiObjNotes hibObjNote = new SbiObjNotes();
      hibObjNote.setExecReq(execReq);
      hibObjNote.setSbiBinContents(hibBinContent);
      hibObjNote.setSbiObject(hibBIObject);
      hibObjNote.setOwner(objNote.getOwner());
      hibObjNote.setIsPublic(objNote.getIsPublic());
      hibObjNote.setCreationDate(now);
      hibObjNote.setLastChangeDate(now);
      updateSbiCommonInfo4Insert(hibObjNote);
      aSession.save(hibObjNote);
      tx.commit();
    } catch (HibernateException he) {
      logException(he);
View Full Code Here

      aSession = getSession();
      tx = aSession.beginTransaction();
     
      Date now = new Date();
     
      SbiObjNotes hibObjNote = (SbiObjNotes)aSession.load(SbiObjNotes.class, objNote.getId());
      SbiBinContents hibBinCont = hibObjNote.getSbiBinContents();
      hibBinCont.setContent(objNote.getContent());
      hibObjNote.setExecReq(objNote.getExecReq());
      hibObjNote.setIsPublic(objNote.getIsPublic());
      hibObjNote.setLastChangeDate(now);
      updateSbiCommonInfo4Update(hibObjNote);
      tx.commit();
    } catch (HibernateException he) {
      logException(he);
      if (tx != null)
View Full Code Here

      Query query = aSession.createQuery(hql);
      query.setInteger(0, biobjId.intValue());
      List notes = query.list();
      Iterator notesIt = notes.iterator();
      while (notesIt.hasNext()) {
        SbiObjNotes note = (SbiObjNotes) notesIt.next();
        SbiBinContents noteBinContent = note.getSbiBinContents();
        aSession.delete(note);
        aSession.delete(noteBinContent);
      }
      tx.commit();
    } catch (HibernateException he) {
View Full Code Here

      query.setString(2, owner);
     
      List notes = query.list();
      Iterator notesIt = notes.iterator();
      while (notesIt.hasNext()) {
        SbiObjNotes note = (SbiObjNotes) notesIt.next();
        SbiBinContents noteBinContent = note.getSbiBinContents();
        aSession.delete(note);
        aSession.delete(noteBinContent);
      }
      tx.commit();
    } catch (HibernateException he) {
View Full Code Here

TOP

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

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.