List of usage examples for javax.xml.namespace QName toString
public String toString()
From source file:org.apache.ode.dao.jpa.bpel.MessageExchangeDAOImpl.java
public void setFault(QName faultType) { _fault = faultType == null ? null : faultType.toString(); }
From source file:org.apache.ode.dao.jpa.bpel.MessageExchangeDAOImpl.java
public void setPortType(QName porttype) { _portType = porttype.toString(); }
From source file:org.apache.ode.dao.jpa.bpel.ProcessDAOImpl.java
public ProcessDAOImpl(QName pid, QName type, String guid, long version) { _processId = pid.toString(); _processType = type.toString();// w w w . ja v a 2 s . c o m _guid = guid; _version = version; }
From source file:org.apache.ode.dao.jpa.BPELDAOConnectionImpl.java
@SuppressWarnings("unchecked") public ProcessDAO getProcess(QName processId) { List l = _em.createQuery("select x from ProcessDAOImpl x where x._processId = ?1") .setParameter(1, processId.toString()).getResultList(); if (l.size() == 0) return null; ProcessDAOImpl p = (ProcessDAOImpl) l.get(0); return p;/* w ww. j av a 2 s .c o m*/ }
From source file:org.apache.ode.dao.jpa.MessageDAOImpl.java
public MessageDAOImpl(QName type, MessageExchangeDAOImpl me) { _type = (type != null) ? type.toString() : null; _messageExchange = me; }
From source file:org.apache.ode.dao.jpa.MessageDAOImpl.java
public void setType(QName type) { _type = (type != null) ? type.toString() : null; }
From source file:org.apache.ode.daohib.bpel.BpelDAOConnectionImpl.java
public ProcessDAO createProcess(QName pid, QName type, String guid, long version) { HProcess process = new HProcess(); process.setProcessId(pid.toString()); process.setTypeName(type.getLocalPart()); process.setTypeNamespace(type.getNamespaceURI()); process.setDeployDate(new Date()); process.setGuid(guid);/*from ww w.j a v a 2 s . co m*/ process.setVersion(version); getSession().save(process); return new ProcessDaoImpl(_sm, process); }
From source file:org.apache.ode.daohib.bpel.BpelDAOConnectionImpl.java
public ProcessDAO getProcess(QName processId) { try {// w w w . ja v a 2 s .co m Criteria criteria = getSession().createCriteria(HProcess.class); criteria.add(Expression.eq("processId", processId.toString())); // For the moment we are expecting only one result. HProcess hprocess = (HProcess) criteria.uniqueResult(); return hprocess == null ? null : new ProcessDaoImpl(_sm, hprocess); } catch (HibernateException e) { __log.error("DbError", e); throw e; } }
From source file:org.apache.ode.daohib.bpel.MessageExchangeDaoImpl.java
public void setPortType(QName porttype) { entering("MessageExchangeDaoImpl.setPortType"); _hself.setPortType(porttype == null ? null : porttype.toString()); update();//from ww w . j av a 2 s . co m }
From source file:org.apache.ode.daohib.bpel.MessageExchangeDaoImpl.java
public MessageDAO createMessage(QName type) { entering("MessageExchangeDaoImpl.createMessage"); HMessage message = new HMessage(); message.setType(type == null ? null : type.toString()); message.setCreated(new Date()); message.setMessageExchange(_hself);/*from www. j a va 2s.c o m*/ getSession().save(message); return new MessageDaoImpl(_sm, message); }