All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nz.co.senanque.workflow.instances.ProcessInstance Maven / Gradle / Ivy

There is a newer version: 2.4.0
Show newest version
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2016.04.01 at 11:03:38 AM NZDT 
//


package nz.co.senanque.workflow.instances;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;
import javax.persistence.Version;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlTransient;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import nz.co.senanque.validationengine.ListeningArray;
import nz.co.senanque.validationengine.ObjectMetadata;
import nz.co.senanque.validationengine.ValidationObject;
import nz.co.senanque.validationengine.ValidationSession;
import nz.co.senanque.validationengine.ValidationUtils;
import nz.co.senanque.validationengine.annotations.Ignore;
import nz.co.senanque.validationengine.annotations.WritePermission;
import org.jvnet.jaxb2_commons.lang.Equals;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy;
import org.jvnet.jaxb2_commons.lang.HashCode;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
import org.jvnet.jaxb2_commons.lang.ToString;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
import org.w3._2001.xmlschema.Adapter1;


/**
 * 

Java class for ProcessInstance complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="ProcessInstance">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="id" type="{http://www.w3.org/2001/XMLSchema}long"/>
 *         <element name="version" type="{http://www.w3.org/2001/XMLSchema}long"/>
 *         <element name="processDefinitionName">
 *           <simpleType>
 *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *               <maxLength value="50"/>
 *             </restriction>
 *           </simpleType>
 *         </element>
 *         <element name="queueName">
 *           <simpleType>
 *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *               <maxLength value="50"/>
 *             </restriction>
 *           </simpleType>
 *         </element>
 *         <element name="permission">
 *           <simpleType>
 *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *               <maxLength value="50"/>
 *             </restriction>
 *           </simpleType>
 *         </element>
 *         <element name="readPermission">
 *           <simpleType>
 *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *               <maxLength value="50"/>
 *             </restriction>
 *           </simpleType>
 *         </element>
 *         <element name="bundleName">
 *           <simpleType>
 *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *               <maxLength value="50"/>
 *             </restriction>
 *           </simpleType>
 *         </element>
 *         <element name="comment">
 *           <simpleType>
 *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *               <maxLength value="200"/>
 *             </restriction>
 *           </simpleType>
 *         </element>
 *         <element name="reference">
 *           <simpleType>
 *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *               <maxLength value="200"/>
 *             </restriction>
 *           </simpleType>
 *         </element>
 *         <element name="objectInstance">
 *           <simpleType>
 *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *               <maxLength value="200"/>
 *             </restriction>
 *           </simpleType>
 *         </element>
 *         <element name="status" type="{http://www.senanque.co.nz/workflow}TaskStatus"/>
 *         <element name="lockedBy">
 *           <simpleType>
 *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *               <maxLength value="50"/>
 *             </restriction>
 *           </simpleType>
 *         </element>
 *         <element name="taskId" type="{http://www.w3.org/2001/XMLSchema}long"/>
 *         <element name="waitCount" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *         <element name="cyclic" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
 *         <element name="audits" type="{http://www.senanque.co.nz/workflow}Audit" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="childProcesses" type="{http://www.senanque.co.nz/workflow}ProcessInstance" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="deferredEvent" type="{http://www.senanque.co.nz/workflow}DeferredEvent"/>
 *         <element name="deferredEvents" type="{http://www.senanque.co.nz/workflow}DeferredEvent" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="parentProcess" type="{http://www.senanque.co.nz/workflow}ProcessInstance"/>
 *         <element name="lastUpdated" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ProcessInstance", propOrder = { "id", "version", "processDefinitionName", "queueName", "permission", "readPermission", "bundleName", "comment", "reference", "objectInstance", "status", "lockedBy", "taskId", "waitCount", "cyclic", "audits", "childProcesses", "deferredEvent", "deferredEvents", "parentProcess", "lastUpdated" }) @Entity(name = "ProcessInstance") @Table(name = "PROCESSINSTANCE") @Inheritance(strategy = InheritanceType.JOINED) public class ProcessInstance implements Serializable, ValidationObject, Equals, HashCode, ToString { protected long id; protected long version; @XmlElement(required = true) protected String processDefinitionName; @XmlElement(required = true) protected String queueName; @XmlElement(required = true) protected String permission; @XmlElement(required = true) protected String readPermission; @XmlElement(required = true) protected String bundleName; @XmlElement(required = true) protected String comment; @XmlElement(required = true) protected String reference; @XmlElement(required = true, nillable = true) protected String objectInstance; @XmlElement(required = true, nillable = true) protected TaskStatus status; @XmlElement(required = true, nillable = true) protected String lockedBy; @XmlElement(required = true, type = Long.class, nillable = true) protected Long taskId; @XmlElement(required = true, type = Integer.class, defaultValue = "0", nillable = true) protected Integer waitCount; @XmlElement(required = true, type = Boolean.class, defaultValue = "false", nillable = true) protected Boolean cyclic; protected List audits; @XmlElement(nillable = true) protected List childProcesses; @XmlElement(required = true, nillable = true) protected DeferredEvent deferredEvent; @XmlElement(nillable = true) protected List deferredEvents; @XmlElement(required = true, nillable = true) protected ProcessInstance parentProcess; @XmlElement(required = true, type = String.class) @XmlJavaTypeAdapter(Adapter1 .class) @XmlSchemaType(name = "dateTime") protected Date lastUpdated; @XmlTransient protected ValidationSession m_validationSession; @XmlTransient protected ObjectMetadata m_metadata; @XmlTransient public final static String ID = "id"; @XmlTransient public final static String VERSION = "version"; @XmlTransient public final static String PROCESSDEFINITIONNAME = "processDefinitionName"; @XmlTransient public final static String QUEUENAME = "queueName"; @XmlTransient public final static String PERMISSION = "permission"; @XmlTransient public final static String READPERMISSION = "readPermission"; @XmlTransient public final static String BUNDLENAME = "bundleName"; @XmlTransient public final static String COMMENT = "comment"; @XmlTransient public final static String REFERENCE = "reference"; @XmlTransient public final static String OBJECTINSTANCE = "objectInstance"; @XmlTransient public final static String STATUS = "status"; @XmlTransient public final static String LOCKEDBY = "lockedBy"; @XmlTransient public final static String TASKID = "taskId"; @XmlTransient public final static String WAITCOUNT = "waitCount"; @XmlTransient public final static String CYCLIC = "cyclic"; @XmlTransient public final static String AUDITS = "audits"; @XmlTransient public final static String CHILDPROCESSES = "childProcesses"; @XmlTransient public final static String DEFERREDEVENT = "deferredEvent"; @XmlTransient public final static String DEFERREDEVENTS = "deferredEvents"; @XmlTransient public final static String PARENTPROCESS = "parentProcess"; @XmlTransient public final static String LASTUPDATED = "lastUpdated"; public ProcessInstance() { ValidationUtils.setDefaults(this); } /** * Gets the value of the id property. * */ @Id @Column(name = "ID", scale = 0) @GeneratedValue(strategy = GenerationType.AUTO) public long getId() { if (m_validationSession!= null) { m_validationSession.clean(this); } return id; } /** * Sets the value of the id property. * */ public void setId(long value) { getMetadata().removeUnknown("id"); if (m_validationSession!= null) { m_validationSession.set(this, "id", value, id); } this.id = value; if (m_validationSession!= null) { m_validationSession.invokeListeners(this, "id", value, id); } } /** * Gets the value of the version property. * */ @Version @Column(name = "VERSION_", scale = 0) public long getVersion() { if (m_validationSession!= null) { m_validationSession.clean(this); } return version; } /** * Sets the value of the version property. * */ public void setVersion(long value) { getMetadata().removeUnknown("version"); if (m_validationSession!= null) { m_validationSession.set(this, "version", value, version); } this.version = value; if (m_validationSession!= null) { m_validationSession.invokeListeners(this, "version", value, version); } } /** * Gets the value of the processDefinitionName property. * * @return * possible object is * {@link String } * */ @WritePermission(name = "TECHSUPPORT") @Basic @Column(name = "PROCESSDEFINITIONNAME", length = 50) public String getProcessDefinitionName() { if (m_validationSession!= null) { m_validationSession.clean(this); } return processDefinitionName; } /** * Sets the value of the processDefinitionName property. * * @param value * allowed object is * {@link String } * */ public void setProcessDefinitionName(String value) { getMetadata().removeUnknown("processDefinitionName"); if (m_validationSession!= null) { m_validationSession.set(this, "processDefinitionName", value, processDefinitionName); } this.processDefinitionName = value; if (m_validationSession!= null) { m_validationSession.invokeListeners(this, "processDefinitionName", value, processDefinitionName); } } /** * Gets the value of the queueName property. * * @return * possible object is * {@link String } * */ @WritePermission(name = "TECHSUPPORT") @Basic @Column(name = "QUEUENAME", length = 50) public String getQueueName() { if (m_validationSession!= null) { m_validationSession.clean(this); } return queueName; } /** * Sets the value of the queueName property. * * @param value * allowed object is * {@link String } * */ public void setQueueName(String value) { getMetadata().removeUnknown("queueName"); if (m_validationSession!= null) { m_validationSession.set(this, "queueName", value, queueName); } this.queueName = value; if (m_validationSession!= null) { m_validationSession.invokeListeners(this, "queueName", value, queueName); } } /** * Gets the value of the permission property. * * @return * possible object is * {@link String } * */ @WritePermission(name = "TECHSUPPORT") @Basic @Column(name = "PERMISSION", length = 50) public String getPermission() { if (m_validationSession!= null) { m_validationSession.clean(this); } return permission; } /** * Sets the value of the permission property. * * @param value * allowed object is * {@link String } * */ public void setPermission(String value) { getMetadata().removeUnknown("permission"); if (m_validationSession!= null) { m_validationSession.set(this, "permission", value, permission); } this.permission = value; if (m_validationSession!= null) { m_validationSession.invokeListeners(this, "permission", value, permission); } } /** * Gets the value of the readPermission property. * * @return * possible object is * {@link String } * */ @WritePermission(name = "TECHSUPPORT") @Basic @Column(name = "READPERMISSION", length = 50) public String getReadPermission() { if (m_validationSession!= null) { m_validationSession.clean(this); } return readPermission; } /** * Sets the value of the readPermission property. * * @param value * allowed object is * {@link String } * */ public void setReadPermission(String value) { getMetadata().removeUnknown("readPermission"); if (m_validationSession!= null) { m_validationSession.set(this, "readPermission", value, readPermission); } this.readPermission = value; if (m_validationSession!= null) { m_validationSession.invokeListeners(this, "readPermission", value, readPermission); } } /** * Gets the value of the bundleName property. * * @return * possible object is * {@link String } * */ @WritePermission(name = "TECHSUPPORT") @Basic @Column(name = "BUNDLENAME", length = 50) public String getBundleName() { if (m_validationSession!= null) { m_validationSession.clean(this); } return bundleName; } /** * Sets the value of the bundleName property. * * @param value * allowed object is * {@link String } * */ public void setBundleName(String value) { getMetadata().removeUnknown("bundleName"); if (m_validationSession!= null) { m_validationSession.set(this, "bundleName", value, bundleName); } this.bundleName = value; if (m_validationSession!= null) { m_validationSession.invokeListeners(this, "bundleName", value, bundleName); } } /** * Gets the value of the comment property. * * @return * possible object is * {@link String } * */ @WritePermission(name = "TECHSUPPORT") @Basic @Column(name = "COMMENT_", length = 200) public String getComment() { if (m_validationSession!= null) { m_validationSession.clean(this); } return comment; } /** * Sets the value of the comment property. * * @param value * allowed object is * {@link String } * */ public void setComment(String value) { getMetadata().removeUnknown("comment"); if (m_validationSession!= null) { m_validationSession.set(this, "comment", value, comment); } this.comment = value; if (m_validationSession!= null) { m_validationSession.invokeListeners(this, "comment", value, comment); } } /** * Gets the value of the reference property. * * @return * possible object is * {@link String } * */ @WritePermission(name = "TECHSUPPORT") @Basic @Column(name = "REFERENCE", length = 200) public String getReference() { if (m_validationSession!= null) { m_validationSession.clean(this); } return reference; } /** * Sets the value of the reference property. * * @param value * allowed object is * {@link String } * */ public void setReference(String value) { getMetadata().removeUnknown("reference"); if (m_validationSession!= null) { m_validationSession.set(this, "reference", value, reference); } this.reference = value; if (m_validationSession!= null) { m_validationSession.invokeListeners(this, "reference", value, reference); } } /** * Gets the value of the objectInstance property. * * @return * possible object is * {@link String } * */ @Ignore @Basic @Column(name = "OBJECTINSTANCE", length = 200) public String getObjectInstance() { if (m_validationSession!= null) { m_validationSession.clean(this); } return objectInstance; } /** * Sets the value of the objectInstance property. * * @param value * allowed object is * {@link String } * */ public void setObjectInstance(String value) { getMetadata().removeUnknown("objectInstance"); if (m_validationSession!= null) { m_validationSession.set(this, "objectInstance", value, objectInstance); } this.objectInstance = value; if (m_validationSession!= null) { m_validationSession.invokeListeners(this, "objectInstance", value, objectInstance); } } /** * Gets the value of the status property. * * @return * possible object is * {@link TaskStatus } * */ @WritePermission(name = "TECHSUPPORT") @Basic @Column(name = "STATUS", length = 255) @Enumerated(EnumType.STRING) public TaskStatus getStatus() { if (m_validationSession!= null) { m_validationSession.clean(this); } return status; } /** * Sets the value of the status property. * * @param value * allowed object is * {@link TaskStatus } * */ public void setStatus(TaskStatus value) { getMetadata().removeUnknown("status"); if (m_validationSession!= null) { m_validationSession.set(this, "status", value, status); } this.status = value; if (m_validationSession!= null) { m_validationSession.invokeListeners(this, "status", value, status); } } /** * Gets the value of the lockedBy property. * * @return * possible object is * {@link String } * */ @WritePermission(name = "TECHSUPPORT") @Basic @Column(name = "LOCKEDBY", length = 50) public String getLockedBy() { if (m_validationSession!= null) { m_validationSession.clean(this); } return lockedBy; } /** * Sets the value of the lockedBy property. * * @param value * allowed object is * {@link String } * */ public void setLockedBy(String value) { getMetadata().removeUnknown("lockedBy"); if (m_validationSession!= null) { m_validationSession.set(this, "lockedBy", value, lockedBy); } this.lockedBy = value; if (m_validationSession!= null) { m_validationSession.invokeListeners(this, "lockedBy", value, lockedBy); } } /** * Gets the value of the taskId property. * * @return * possible object is * {@link Long } * */ @Basic @Column(name = "TASKID", precision = 20, scale = 0) public Long getTaskId() { if (m_validationSession!= null) { m_validationSession.clean(this); } return taskId; } /** * Sets the value of the taskId property. * * @param value * allowed object is * {@link Long } * */ public void setTaskId(Long value) { getMetadata().removeUnknown("taskId"); if (m_validationSession!= null) { m_validationSession.set(this, "taskId", value, taskId); } this.taskId = value; if (m_validationSession!= null) { m_validationSession.invokeListeners(this, "taskId", value, taskId); } } /** * Gets the value of the waitCount property. * * @return * possible object is * {@link Integer } * */ @Basic @Column(name = "WAITCOUNT", precision = 10, scale = 0) public Integer getWaitCount() { if (m_validationSession!= null) { m_validationSession.clean(this); } return waitCount; } /** * Sets the value of the waitCount property. * * @param value * allowed object is * {@link Integer } * */ public void setWaitCount(Integer value) { getMetadata().removeUnknown("waitCount"); if (m_validationSession!= null) { m_validationSession.set(this, "waitCount", value, waitCount); } this.waitCount = value; if (m_validationSession!= null) { m_validationSession.invokeListeners(this, "waitCount", value, waitCount); } } /** * Gets the value of the cyclic property. * * @return * possible object is * {@link Boolean } * */ @Basic @Column(name = "CYCLIC") public Boolean isCyclic() { if (m_validationSession!= null) { m_validationSession.clean(this); } return cyclic; } /** * Sets the value of the cyclic property. * * @param value * allowed object is * {@link Boolean } * */ public void setCyclic(Boolean value) { getMetadata().removeUnknown("cyclic"); if (m_validationSession!= null) { m_validationSession.set(this, "cyclic", value, cyclic); } this.cyclic = value; if (m_validationSession!= null) { m_validationSession.invokeListeners(this, "cyclic", value, cyclic); } } /** * Gets the value of the audits property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the audits property. * *

* For example, to add a new item, do as follows: *

     *    getAudits().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Audit } * * */ @Ignore @OneToMany(targetEntity = Audit.class, cascade = { CascadeType.ALL }) @JoinColumn(name = "AUDITS_PROCESSINSTANCE_ID") public List getAudits() { if (m_validationSession!= null) { m_validationSession.clean(this); } if (audits == null) { audits = new ListeningArray(); } if (audits == null) { audits = new ArrayList(); } return this.audits; } /** * * */ public void setAudits(List audits) { getMetadata().removeUnknown("audits"); if (m_validationSession!= null) { m_validationSession.set(this, "audits", audits, audits); } this.audits = audits; if (m_validationSession!= null) { m_validationSession.invokeListeners(this, "audits", audits, audits); } } /** * Gets the value of the childProcesses property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the childProcesses property. * *

* For example, to add a new item, do as follows: *

     *    getChildProcesses().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link ProcessInstance } * * */ @Ignore @OneToMany(targetEntity = ProcessInstance.class, cascade = { CascadeType.ALL }) @JoinColumn(name = "CHILDPROCESSES_PROCESSINSTAN_0") public List getChildProcesses() { if (m_validationSession!= null) { m_validationSession.clean(this); } if (childProcesses == null) { childProcesses = new ListeningArray(); } if (childProcesses == null) { childProcesses = new ArrayList(); } return this.childProcesses; } /** * * */ public void setChildProcesses(List childProcesses) { getMetadata().removeUnknown("childProcesses"); if (m_validationSession!= null) { m_validationSession.set(this, "childProcesses", childProcesses, childProcesses); } this.childProcesses = childProcesses; if (m_validationSession!= null) { m_validationSession.invokeListeners(this, "childProcesses", childProcesses, childProcesses); } } /** * Gets the value of the deferredEvent property. * * @return * possible object is * {@link DeferredEvent } * */ @ManyToOne(targetEntity = DeferredEvent.class, cascade = { CascadeType.ALL }) @JoinColumn(name = "DEFERREDEVENT_PROCESSINSTANC_0") public DeferredEvent getDeferredEvent() { if (m_validationSession!= null) { m_validationSession.clean(this); } return deferredEvent; } /** * Sets the value of the deferredEvent property. * * @param value * allowed object is * {@link DeferredEvent } * */ public void setDeferredEvent(DeferredEvent value) { getMetadata().removeUnknown("deferredEvent"); if (m_validationSession!= null) { m_validationSession.set(this, "deferredEvent", value, deferredEvent); } this.deferredEvent = value; if (m_validationSession!= null) { m_validationSession.invokeListeners(this, "deferredEvent", value, deferredEvent); } } /** * Gets the value of the deferredEvents property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the deferredEvents property. * *

* For example, to add a new item, do as follows: *

     *    getDeferredEvents().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link DeferredEvent } * * */ @Ignore @OneToMany(targetEntity = DeferredEvent.class, cascade = { CascadeType.ALL }) @JoinColumn(name = "DEFERREDEVENTS_PROCESSINSTAN_0") public List getDeferredEvents() { if (m_validationSession!= null) { m_validationSession.clean(this); } if (deferredEvents == null) { deferredEvents = new ListeningArray(); } if (deferredEvents == null) { deferredEvents = new ArrayList(); } return this.deferredEvents; } /** * * */ public void setDeferredEvents(List deferredEvents) { getMetadata().removeUnknown("deferredEvents"); if (m_validationSession!= null) { m_validationSession.set(this, "deferredEvents", deferredEvents, deferredEvents); } this.deferredEvents = deferredEvents; if (m_validationSession!= null) { m_validationSession.invokeListeners(this, "deferredEvents", deferredEvents, deferredEvents); } } /** * Gets the value of the parentProcess property. * * @return * possible object is * {@link ProcessInstance } * */ @Ignore @ManyToOne(targetEntity = ProcessInstance.class, cascade = { CascadeType.ALL }) @JoinColumn(name = "PARENTPROCESS_PROCESSINSTANC_0") public ProcessInstance getParentProcess() { if (m_validationSession!= null) { m_validationSession.clean(this); } return parentProcess; } /** * Sets the value of the parentProcess property. * * @param value * allowed object is * {@link ProcessInstance } * */ public void setParentProcess(ProcessInstance value) { getMetadata().removeUnknown("parentProcess"); if (m_validationSession!= null) { m_validationSession.set(this, "parentProcess", value, parentProcess); } this.parentProcess = value; if (m_validationSession!= null) { m_validationSession.invokeListeners(this, "parentProcess", value, parentProcess); } } /** * Gets the value of the lastUpdated property. * * @return * possible object is * {@link String } * */ @WritePermission(name = "TECHSUPPORT") @Basic @Column(name = "LASTUPDATED") @Temporal(TemporalType.TIMESTAMP) public Date getLastUpdated() { if (m_validationSession!= null) { m_validationSession.clean(this); } return lastUpdated; } /** * Sets the value of the lastUpdated property. * * @param value * allowed object is * {@link String } * */ public void setLastUpdated(Date value) { getMetadata().removeUnknown("lastUpdated"); if (m_validationSession!= null) { m_validationSession.set(this, "lastUpdated", value, lastUpdated); } this.lastUpdated = value; if (m_validationSession!= null) { m_validationSession.invokeListeners(this, "lastUpdated", value, lastUpdated); } } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof ProcessInstance)) { return false; } if (this == object) { return true; } final ProcessInstance that = ((ProcessInstance) object); { long lhsId; lhsId = (true?this.getId(): 0L); long rhsId; rhsId = (true?that.getId(): 0L); if (!strategy.equals(LocatorUtils.property(thisLocator, "id", lhsId), LocatorUtils.property(thatLocator, "id", rhsId), lhsId, rhsId)) { return false; } } { long lhsVersion; lhsVersion = (true?this.getVersion(): 0L); long rhsVersion; rhsVersion = (true?that.getVersion(): 0L); if (!strategy.equals(LocatorUtils.property(thisLocator, "version", lhsVersion), LocatorUtils.property(thatLocator, "version", rhsVersion), lhsVersion, rhsVersion)) { return false; } } { String lhsProcessDefinitionName; lhsProcessDefinitionName = this.getProcessDefinitionName(); String rhsProcessDefinitionName; rhsProcessDefinitionName = that.getProcessDefinitionName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "processDefinitionName", lhsProcessDefinitionName), LocatorUtils.property(thatLocator, "processDefinitionName", rhsProcessDefinitionName), lhsProcessDefinitionName, rhsProcessDefinitionName)) { return false; } } { String lhsQueueName; lhsQueueName = this.getQueueName(); String rhsQueueName; rhsQueueName = that.getQueueName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "queueName", lhsQueueName), LocatorUtils.property(thatLocator, "queueName", rhsQueueName), lhsQueueName, rhsQueueName)) { return false; } } { String lhsPermission; lhsPermission = this.getPermission(); String rhsPermission; rhsPermission = that.getPermission(); if (!strategy.equals(LocatorUtils.property(thisLocator, "permission", lhsPermission), LocatorUtils.property(thatLocator, "permission", rhsPermission), lhsPermission, rhsPermission)) { return false; } } { String lhsReadPermission; lhsReadPermission = this.getReadPermission(); String rhsReadPermission; rhsReadPermission = that.getReadPermission(); if (!strategy.equals(LocatorUtils.property(thisLocator, "readPermission", lhsReadPermission), LocatorUtils.property(thatLocator, "readPermission", rhsReadPermission), lhsReadPermission, rhsReadPermission)) { return false; } } { String lhsBundleName; lhsBundleName = this.getBundleName(); String rhsBundleName; rhsBundleName = that.getBundleName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "bundleName", lhsBundleName), LocatorUtils.property(thatLocator, "bundleName", rhsBundleName), lhsBundleName, rhsBundleName)) { return false; } } { String lhsComment; lhsComment = this.getComment(); String rhsComment; rhsComment = that.getComment(); if (!strategy.equals(LocatorUtils.property(thisLocator, "comment", lhsComment), LocatorUtils.property(thatLocator, "comment", rhsComment), lhsComment, rhsComment)) { return false; } } { String lhsReference; lhsReference = this.getReference(); String rhsReference; rhsReference = that.getReference(); if (!strategy.equals(LocatorUtils.property(thisLocator, "reference", lhsReference), LocatorUtils.property(thatLocator, "reference", rhsReference), lhsReference, rhsReference)) { return false; } } { String lhsObjectInstance; lhsObjectInstance = this.getObjectInstance(); String rhsObjectInstance; rhsObjectInstance = that.getObjectInstance(); if (!strategy.equals(LocatorUtils.property(thisLocator, "objectInstance", lhsObjectInstance), LocatorUtils.property(thatLocator, "objectInstance", rhsObjectInstance), lhsObjectInstance, rhsObjectInstance)) { return false; } } { TaskStatus lhsStatus; lhsStatus = this.getStatus(); TaskStatus rhsStatus; rhsStatus = that.getStatus(); if (!strategy.equals(LocatorUtils.property(thisLocator, "status", lhsStatus), LocatorUtils.property(thatLocator, "status", rhsStatus), lhsStatus, rhsStatus)) { return false; } } { String lhsLockedBy; lhsLockedBy = this.getLockedBy(); String rhsLockedBy; rhsLockedBy = that.getLockedBy(); if (!strategy.equals(LocatorUtils.property(thisLocator, "lockedBy", lhsLockedBy), LocatorUtils.property(thatLocator, "lockedBy", rhsLockedBy), lhsLockedBy, rhsLockedBy)) { return false; } } { Long lhsTaskId; lhsTaskId = this.getTaskId(); Long rhsTaskId; rhsTaskId = that.getTaskId(); if (!strategy.equals(LocatorUtils.property(thisLocator, "taskId", lhsTaskId), LocatorUtils.property(thatLocator, "taskId", rhsTaskId), lhsTaskId, rhsTaskId)) { return false; } } { Integer lhsWaitCount; lhsWaitCount = this.getWaitCount(); Integer rhsWaitCount; rhsWaitCount = that.getWaitCount(); if (!strategy.equals(LocatorUtils.property(thisLocator, "waitCount", lhsWaitCount), LocatorUtils.property(thatLocator, "waitCount", rhsWaitCount), lhsWaitCount, rhsWaitCount)) { return false; } } { Boolean lhsCyclic; lhsCyclic = this.isCyclic(); Boolean rhsCyclic; rhsCyclic = that.isCyclic(); if (!strategy.equals(LocatorUtils.property(thisLocator, "cyclic", lhsCyclic), LocatorUtils.property(thatLocator, "cyclic", rhsCyclic), lhsCyclic, rhsCyclic)) { return false; } } { List lhsAudits; lhsAudits = (((this.audits!= null)&&(!this.audits.isEmpty()))?this.getAudits():null); List rhsAudits; rhsAudits = (((that.audits!= null)&&(!that.audits.isEmpty()))?that.getAudits():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "audits", lhsAudits), LocatorUtils.property(thatLocator, "audits", rhsAudits), lhsAudits, rhsAudits)) { return false; } } { List lhsChildProcesses; lhsChildProcesses = (((this.childProcesses!= null)&&(!this.childProcesses.isEmpty()))?this.getChildProcesses():null); List rhsChildProcesses; rhsChildProcesses = (((that.childProcesses!= null)&&(!that.childProcesses.isEmpty()))?that.getChildProcesses():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "childProcesses", lhsChildProcesses), LocatorUtils.property(thatLocator, "childProcesses", rhsChildProcesses), lhsChildProcesses, rhsChildProcesses)) { return false; } } { DeferredEvent lhsDeferredEvent; lhsDeferredEvent = this.getDeferredEvent(); DeferredEvent rhsDeferredEvent; rhsDeferredEvent = that.getDeferredEvent(); if (!strategy.equals(LocatorUtils.property(thisLocator, "deferredEvent", lhsDeferredEvent), LocatorUtils.property(thatLocator, "deferredEvent", rhsDeferredEvent), lhsDeferredEvent, rhsDeferredEvent)) { return false; } } { List lhsDeferredEvents; lhsDeferredEvents = (((this.deferredEvents!= null)&&(!this.deferredEvents.isEmpty()))?this.getDeferredEvents():null); List rhsDeferredEvents; rhsDeferredEvents = (((that.deferredEvents!= null)&&(!that.deferredEvents.isEmpty()))?that.getDeferredEvents():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "deferredEvents", lhsDeferredEvents), LocatorUtils.property(thatLocator, "deferredEvents", rhsDeferredEvents), lhsDeferredEvents, rhsDeferredEvents)) { return false; } } { ProcessInstance lhsParentProcess; lhsParentProcess = this.getParentProcess(); ProcessInstance rhsParentProcess; rhsParentProcess = that.getParentProcess(); if (!strategy.equals(LocatorUtils.property(thisLocator, "parentProcess", lhsParentProcess), LocatorUtils.property(thatLocator, "parentProcess", rhsParentProcess), lhsParentProcess, rhsParentProcess)) { return false; } } { Date lhsLastUpdated; lhsLastUpdated = this.getLastUpdated(); Date rhsLastUpdated; rhsLastUpdated = that.getLastUpdated(); if (!strategy.equals(LocatorUtils.property(thisLocator, "lastUpdated", lhsLastUpdated), LocatorUtils.property(thatLocator, "lastUpdated", rhsLastUpdated), lhsLastUpdated, rhsLastUpdated)) { return false; } } return true; } public boolean equals(Object object) { final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); } public String toString() { final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; } public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { { long theId; theId = (true?this.getId(): 0L); strategy.appendField(locator, this, "id", buffer, theId); } { long theVersion; theVersion = (true?this.getVersion(): 0L); strategy.appendField(locator, this, "version", buffer, theVersion); } { String theProcessDefinitionName; theProcessDefinitionName = this.getProcessDefinitionName(); strategy.appendField(locator, this, "processDefinitionName", buffer, theProcessDefinitionName); } { String theQueueName; theQueueName = this.getQueueName(); strategy.appendField(locator, this, "queueName", buffer, theQueueName); } { String thePermission; thePermission = this.getPermission(); strategy.appendField(locator, this, "permission", buffer, thePermission); } { String theReadPermission; theReadPermission = this.getReadPermission(); strategy.appendField(locator, this, "readPermission", buffer, theReadPermission); } { String theBundleName; theBundleName = this.getBundleName(); strategy.appendField(locator, this, "bundleName", buffer, theBundleName); } { String theComment; theComment = this.getComment(); strategy.appendField(locator, this, "comment", buffer, theComment); } { String theReference; theReference = this.getReference(); strategy.appendField(locator, this, "reference", buffer, theReference); } { String theObjectInstance; theObjectInstance = this.getObjectInstance(); strategy.appendField(locator, this, "objectInstance", buffer, theObjectInstance); } { TaskStatus theStatus; theStatus = this.getStatus(); strategy.appendField(locator, this, "status", buffer, theStatus); } { String theLockedBy; theLockedBy = this.getLockedBy(); strategy.appendField(locator, this, "lockedBy", buffer, theLockedBy); } { Long theTaskId; theTaskId = this.getTaskId(); strategy.appendField(locator, this, "taskId", buffer, theTaskId); } { Integer theWaitCount; theWaitCount = this.getWaitCount(); strategy.appendField(locator, this, "waitCount", buffer, theWaitCount); } { Boolean theCyclic; theCyclic = this.isCyclic(); strategy.appendField(locator, this, "cyclic", buffer, theCyclic); } { List theAudits; theAudits = (((this.audits!= null)&&(!this.audits.isEmpty()))?this.getAudits():null); strategy.appendField(locator, this, "audits", buffer, theAudits); } { List theChildProcesses; theChildProcesses = (((this.childProcesses!= null)&&(!this.childProcesses.isEmpty()))?this.getChildProcesses():null); strategy.appendField(locator, this, "childProcesses", buffer, theChildProcesses); } { DeferredEvent theDeferredEvent; theDeferredEvent = this.getDeferredEvent(); strategy.appendField(locator, this, "deferredEvent", buffer, theDeferredEvent); } { List theDeferredEvents; theDeferredEvents = (((this.deferredEvents!= null)&&(!this.deferredEvents.isEmpty()))?this.getDeferredEvents():null); strategy.appendField(locator, this, "deferredEvents", buffer, theDeferredEvents); } { ProcessInstance theParentProcess; theParentProcess = this.getParentProcess(); strategy.appendField(locator, this, "parentProcess", buffer, theParentProcess); } { Date theLastUpdated; theLastUpdated = this.getLastUpdated(); strategy.appendField(locator, this, "lastUpdated", buffer, theLastUpdated); } return buffer; } public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { long theId; theId = (true?this.getId(): 0L); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theId), currentHashCode, theId); } { long theVersion; theVersion = (true?this.getVersion(): 0L); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "version", theVersion), currentHashCode, theVersion); } { String theProcessDefinitionName; theProcessDefinitionName = this.getProcessDefinitionName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "processDefinitionName", theProcessDefinitionName), currentHashCode, theProcessDefinitionName); } { String theQueueName; theQueueName = this.getQueueName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "queueName", theQueueName), currentHashCode, theQueueName); } { String thePermission; thePermission = this.getPermission(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "permission", thePermission), currentHashCode, thePermission); } { String theReadPermission; theReadPermission = this.getReadPermission(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "readPermission", theReadPermission), currentHashCode, theReadPermission); } { String theBundleName; theBundleName = this.getBundleName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "bundleName", theBundleName), currentHashCode, theBundleName); } { String theComment; theComment = this.getComment(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "comment", theComment), currentHashCode, theComment); } { String theReference; theReference = this.getReference(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "reference", theReference), currentHashCode, theReference); } { String theObjectInstance; theObjectInstance = this.getObjectInstance(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "objectInstance", theObjectInstance), currentHashCode, theObjectInstance); } { TaskStatus theStatus; theStatus = this.getStatus(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "status", theStatus), currentHashCode, theStatus); } { String theLockedBy; theLockedBy = this.getLockedBy(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "lockedBy", theLockedBy), currentHashCode, theLockedBy); } { Long theTaskId; theTaskId = this.getTaskId(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "taskId", theTaskId), currentHashCode, theTaskId); } { Integer theWaitCount; theWaitCount = this.getWaitCount(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "waitCount", theWaitCount), currentHashCode, theWaitCount); } { Boolean theCyclic; theCyclic = this.isCyclic(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "cyclic", theCyclic), currentHashCode, theCyclic); } { List theAudits; theAudits = (((this.audits!= null)&&(!this.audits.isEmpty()))?this.getAudits():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "audits", theAudits), currentHashCode, theAudits); } { List theChildProcesses; theChildProcesses = (((this.childProcesses!= null)&&(!this.childProcesses.isEmpty()))?this.getChildProcesses():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "childProcesses", theChildProcesses), currentHashCode, theChildProcesses); } { DeferredEvent theDeferredEvent; theDeferredEvent = this.getDeferredEvent(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "deferredEvent", theDeferredEvent), currentHashCode, theDeferredEvent); } { List theDeferredEvents; theDeferredEvents = (((this.deferredEvents!= null)&&(!this.deferredEvents.isEmpty()))?this.getDeferredEvents():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "deferredEvents", theDeferredEvents), currentHashCode, theDeferredEvents); } { ProcessInstance theParentProcess; theParentProcess = this.getParentProcess(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "parentProcess", theParentProcess), currentHashCode, theParentProcess); } { Date theLastUpdated; theLastUpdated = this.getLastUpdated(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "lastUpdated", theLastUpdated), currentHashCode, theLastUpdated); } return currentHashCode; } public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } @Transient public ObjectMetadata getMetadata() { if (m_validationSession!= null) { m_validationSession.clean(this); } if (m_metadata == null) { m_metadata = new ObjectMetadata(); } return m_metadata; } @XmlTransient public void setValidationSession(ValidationSession validationSession) { m_validationSession = validationSession; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy