Examples of HLargeData


Examples of org.apache.ode.daohib.bpel.hobj.HLargeData

    public void setData(Element value) {
        if (value == null) return;
        if (_hself.getMessageData() != null)
            _session.delete(_hself.getMessageData());
        HLargeData newdata = new HLargeData(DOMUtils.domToString(value));
        _session.save(newdata);
        _hself.setMessageData(newdata);
        update();
    }
View Full Code Here

Examples of org.apache.ode.daohib.bpel.hobj.HLargeData

  public void set(Node val) {
    _node = val;
    _data.setSimpleType(!(val instanceof Element));
    if (_data.getData() != null)
      _sm.getSession().delete(_data.getData());
    HLargeData ld = new HLargeData();
    if(_data.isSimpleType()) {
      ld.setBinary(_node.getNodeValue().getBytes());
      _data.setData(ld);
    } else {
      ld.setBinary(DOMUtils.domToString(_node).getBytes());
      _data.setData(ld);
    }
    getSession().save(ld);
    getSession().update(_data);
  }
View Full Code Here

Examples of org.apache.ode.daohib.bpel.hobj.HLargeData

        if (_self.getMyEPR() != null)
            _sm.getSession().delete(_self.getMyEPR());
        if (val == null) {
            _self.setMyEPR(null);
        } else {
            HLargeData ld = new HLargeData(DOMUtils.domToString(val));
            getSession().save(ld);
            _self.setMyEPR(ld);
        }
        getSession().update(_self);
    }
View Full Code Here

Examples of org.apache.ode.daohib.bpel.hobj.HLargeData

        if (_self.getPartnerEPR() != null)
            _sm.getSession().delete(_self.getPartnerEPR());
        if (val == null) {
            _self.setPartnerEPR(null);
        } else {
            HLargeData ld = new HLargeData(DOMUtils.domToString(val));
            getSession().save(ld);
            _self.setPartnerEPR(ld);
        }
        getSession().update(_self);
    }
View Full Code Here

Examples of org.apache.ode.daohib.bpel.hobj.HLargeData

    public void setData(Element value) {
        if (value == null) return;
        if (_hself.getMessageData() != null)
            _session.delete(_hself.getMessageData());
        HLargeData newdata = new HLargeData(DOMUtils.domToString(value));
        _session.save(newdata);
        _hself.setMessageData(newdata);
        update();
    }
View Full Code Here

Examples of org.apache.ode.daohib.bpel.hobj.HLargeData

    public void setHeader(Element value) {
        if (value == null) return;
        if (_hself.getHeader() != null)
            _session.delete(_hself.getHeader());
        HLargeData newdata = new HLargeData(DOMUtils.domToString(value));
        _session.save(newdata);
        _hself.setHeader(newdata);
        update();
    }
View Full Code Here

Examples of org.apache.ode.daohib.bpel.hobj.HLargeData

    public void set(Node val) {
        _node = val;
        _data.setSimpleType(!(val instanceof Element));
        if (_data.getData() != null) _sm.getSession().delete(_data.getData());
       
        HLargeData ld = new HLargeData();
        if(_data.isSimpleType()) {
            ld.setBinary(_node.getNodeValue().getBytes());
            _data.setData(ld);
        } else {
            ld.setBinary(DOMUtils.domToString(_node).getBytes());
            _data.setData(ld);
        }
        getSession().save(ld);
        getSession().saveOrUpdate(_data);
    }
View Full Code Here

Examples of org.apache.ode.daohib.bpel.hobj.HLargeData

    public void setEPR(Element source) {
        if (source == null)
            _hself.setEndpoint(null);
        else {
            HLargeData ld = new HLargeData(DOMUtils.domToString(source));
            getSession().save(ld);
            _hself.setEndpoint(ld);
        }

        getSession().saveOrUpdate(_hself);
View Full Code Here

Examples of org.apache.ode.daohib.bpel.hobj.HLargeData

        getSession().saveOrUpdate(_hself);

    }

    public Element getEPR() {
        HLargeData ld = _hself.getEndpoint();
        if (ld == null)
            return null;
        try {
            return DOMUtils.stringToDOM(ld.getText());
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
View Full Code Here

Examples of org.apache.ode.daohib.bpel.hobj.HLargeData

    public void setCallbackEPR(Element source) {
        if (source == null)
            _hself.setCallbackEndpoint(null);
        else {
            HLargeData ld = new HLargeData(DOMUtils.domToString(source));
            getSession().save(ld);
            _hself.setCallbackEndpoint(ld);
        }

        getSession().saveOrUpdate(_hself);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.