You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by se...@apache.org on 2009/01/16 00:43:18 UTC
svn commit: r734854 -
/ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/
Author: seanahn
Date: Thu Jan 15 15:43:17 2009
New Revision: 734854
URL: http://svn.apache.org/viewvc?rev=734854&view=rev
Log:
Indentation(and only indentation) fixed to 4 spaces
Modified:
ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HActivityRecovery.java
ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HBpelEvent.java
ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HCorrelationProperty.java
ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HCorrelationSet.java
ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HCorrelatorMessageKey.java
ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HFaultData.java
ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HLargeData.java
ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HScope.java
ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HVariableProperty.java
ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HXmlData.java
Modified: ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HActivityRecovery.java
URL: http://svn.apache.org/viewvc/ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HActivityRecovery.java?rev=734854&r1=734853&r2=734854&view=diff
==============================================================================
--- ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HActivityRecovery.java (original)
+++ ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HActivityRecovery.java Thu Jan 15 15:43:17 2009
@@ -23,109 +23,109 @@
/**
* Persistent representation of activity recovery information.
+ *
* @hibernate.class table="BPEL_ACTIVITY_RECOVERY"
*/
public class HActivityRecovery extends HObject {
- /** Process instance to which this scope belongs. */
- private HProcessInstance _instance;
- private long _activityId;
- private String _channel;
- private String _reason;
- private Date _dateTime;
- private HLargeData _details;
- private String _actions;
- private int _retries;
-
- /**
- * Get the {@link HProcessInstance} to which this scope object belongs.
- * @hibernate.many-to-one
- * column="PIID"
- */
- public HProcessInstance getInstance() {
- return _instance;
- }
-
- /** @see #getInstance() */
- public void setInstance(HProcessInstance instance) {
- _instance = instance;
- }
-
- /**
- * @hibernate.property column="AID"
- */
- public long getActivityId() {
- return _activityId;
- }
-
- public void setActivityId(long activityId) {
- _activityId = activityId;
- }
-
- /**
- * @hibernate.property column="CHANNEL"
- */
- public String getChannel() {
- return _channel;
- }
-
- public void setChannel(String channel) {
- _channel = channel;
- }
-
- /**
- * @hibernate.property column="REASON"
- */
- public String getReason() {
- return _reason;
- }
-
- public void setReason(String reason) {
- _reason = reason;
- }
-
- /**
- * @hibernate.property column="DATE_TIME"
- */
- public Date getDateTime() {
- return _dateTime;
- }
-
- public void setDateTime(Date dateTime) {
- _dateTime = dateTime;
- }
-
- /**
- * @hibernate.many-to-one column="LDATA_ID" cascade="delete"
- */
- public HLargeData getDetails() {
- return _details;
- }
-
- public void setDetails(HLargeData details) {
- _details = details;
- }
-
- /**
- * @hibernate.property column="ACTIONS"
- */
- public String getActions() {
- return _actions;
- }
-
- public void setActions(String actions) {
- _actions = actions;
- }
-
- /**
- * @hibernate.property column="RETRIES"
- */
- public int getRetries() {
- return _retries;
- }
-
- public void setRetries(int retries) {
- _retries = retries;
- }
-
+ /** Process instance to which this scope belongs. */
+ private HProcessInstance _instance;
+ private long _activityId;
+ private String _channel;
+ private String _reason;
+ private Date _dateTime;
+ private HLargeData _details;
+ private String _actions;
+ private int _retries;
+
+ /**
+ * Get the {@link HProcessInstance} to which this scope object belongs.
+ *
+ * @hibernate.many-to-one column="PIID"
+ */
+ public HProcessInstance getInstance() {
+ return _instance;
+ }
+
+ /** @see #getInstance() */
+ public void setInstance(HProcessInstance instance) {
+ _instance = instance;
+ }
+
+ /**
+ * @hibernate.property column="AID"
+ */
+ public long getActivityId() {
+ return _activityId;
+ }
+
+ public void setActivityId(long activityId) {
+ _activityId = activityId;
+ }
+
+ /**
+ * @hibernate.property column="CHANNEL"
+ */
+ public String getChannel() {
+ return _channel;
+ }
+
+ public void setChannel(String channel) {
+ _channel = channel;
+ }
+
+ /**
+ * @hibernate.property column="REASON"
+ */
+ public String getReason() {
+ return _reason;
+ }
+
+ public void setReason(String reason) {
+ _reason = reason;
+ }
+
+ /**
+ * @hibernate.property column="DATE_TIME"
+ */
+ public Date getDateTime() {
+ return _dateTime;
+ }
+
+ public void setDateTime(Date dateTime) {
+ _dateTime = dateTime;
+ }
+
+ /**
+ * @hibernate.many-to-one column="LDATA_ID" cascade="delete"
+ */
+ public HLargeData getDetails() {
+ return _details;
+ }
+
+ public void setDetails(HLargeData details) {
+ _details = details;
+ }
+
+ /**
+ * @hibernate.property column="ACTIONS"
+ */
+ public String getActions() {
+ return _actions;
+ }
+
+ public void setActions(String actions) {
+ _actions = actions;
+ }
+
+ /**
+ * @hibernate.property column="RETRIES"
+ */
+ public int getRetries() {
+ return _retries;
+ }
+
+ public void setRetries(int retries) {
+ _retries = retries;
+ }
}
Modified: ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HBpelEvent.java
URL: http://svn.apache.org/viewvc/ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HBpelEvent.java?rev=734854&r1=734853&r2=734854&view=diff
==============================================================================
--- ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HBpelEvent.java (original)
+++ ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HBpelEvent.java Thu Jan 15 15:43:17 2009
@@ -1,4 +1,3 @@
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -22,115 +21,105 @@
import java.sql.Timestamp;
-
/**
- * Row representation of a BPEL event.
- *
+ * Row representation of a BPEL event.
+ *
* @hibernate.class table="BPEL_EVENT"
*/
public class HBpelEvent extends HObject {
- private Timestamp _tstamp;
- private String _type;
- private String _detail;
-
- private HProcess _process;
- private HProcessInstance _instance;
- private HLargeData _data;
-
- /** Scope identifier, possibly null. */
- private Long _scopeId;
-
- /**
- * @hibernate.many-to-one
- * column="IID"
- */
- public HProcessInstance getInstance() {
- return _instance;
- }
-
- public void setInstance(HProcessInstance instance) {
- _instance = instance;
- }
-
- /**
- * @hibernate.many-to-one
- * column="PID"
- */
- public HProcess getProcess() {
- return _process;
- }
-
- public void setProcess(HProcess process) {
- _process = process;
- }
-
- /**
- * @hibernate.property
- * column="TSTAMP"
- */
- public Timestamp getTstamp() {
- return _tstamp;
- }
-
- public void setTstamp(Timestamp tstamp) {
- _tstamp = tstamp;
- }
-
- /**
- * @hibernate.property
- * column="TYPE"
- */
- public String getType() {
- return _type;
- }
-
- public void setType(String type) {
- _type = type;
- }
-
- /**
- * TODO Check 32000 is enough for details
- */
- /**
- * @hibernate.property
- * column="DETAIL"
- * type="text"
- * length="32000"
- */
- public String getDetail() {
- return _detail;
- }
-
- public void setDetail(String detail) {
- _detail = detail;
- }
-
-
- /**
- * @hibernate.many-to-one column="LDATA_ID" cascade="delete"
- */
- public HLargeData getData() {
- return _data;
- }
-
- public void setData(HLargeData data) {
- _data = data;
- }
-
- /**
- * Get the scope identifier of the scope associated with this event.
- * Note, that this is not implemented as a many-to-one relationship
- * because when scopes are deleted from the database we do not want
- * their events to suffer the same fate.
- * @hibernate.property
- * column="SID"
- */
- public Long getScopeId() {
- return _scopeId;
- }
-
- public void setScopeId(Long scopeId) {
- _scopeId = scopeId;
- }
-
+ private Timestamp _tstamp;
+ private String _type;
+ private String _detail;
+
+ private HProcess _process;
+ private HProcessInstance _instance;
+ private HLargeData _data;
+
+ /** Scope identifier, possibly null. */
+ private Long _scopeId;
+
+ /**
+ * @hibernate.many-to-one column="IID"
+ */
+ public HProcessInstance getInstance() {
+ return _instance;
+ }
+
+ public void setInstance(HProcessInstance instance) {
+ _instance = instance;
+ }
+
+ /**
+ * @hibernate.many-to-one column="PID"
+ */
+ public HProcess getProcess() {
+ return _process;
+ }
+
+ public void setProcess(HProcess process) {
+ _process = process;
+ }
+
+ /**
+ * @hibernate.property column="TSTAMP"
+ */
+ public Timestamp getTstamp() {
+ return _tstamp;
+ }
+
+ public void setTstamp(Timestamp tstamp) {
+ _tstamp = tstamp;
+ }
+
+ /**
+ * @hibernate.property column="TYPE"
+ */
+ public String getType() {
+ return _type;
+ }
+
+ public void setType(String type) {
+ _type = type;
+ }
+
+ /**
+ * TODO Check 32000 is enough for details
+ */
+ /**
+ * @hibernate.property column="DETAIL" type="text" length="32000"
+ */
+ public String getDetail() {
+ return _detail;
+ }
+
+ public void setDetail(String detail) {
+ _detail = detail;
+ }
+
+ /**
+ * @hibernate.many-to-one column="LDATA_ID" cascade="delete"
+ */
+ public HLargeData getData() {
+ return _data;
+ }
+
+ public void setData(HLargeData data) {
+ _data = data;
+ }
+
+ /**
+ * Get the scope identifier of the scope associated with this event. Note,
+ * that this is not implemented as a many-to-one relationship because when
+ * scopes are deleted from the database we do not want their events to
+ * suffer the same fate.
+ *
+ * @hibernate.property column="SID"
+ */
+ public Long getScopeId() {
+ return _scopeId;
+ }
+
+ public void setScopeId(Long scopeId) {
+ _scopeId = scopeId;
+ }
}
Modified: ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HCorrelationProperty.java
URL: http://svn.apache.org/viewvc/ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HCorrelationProperty.java?rev=734854&r1=734853&r2=734854&view=diff
==============================================================================
--- ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HCorrelationProperty.java (original)
+++ ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HCorrelationProperty.java Thu Jan 15 15:43:17 2009
@@ -19,85 +19,87 @@
package org.apache.ode.daohib.bpel.hobj;
-
import javax.xml.namespace.QName;
/**
- * Hibernate table-mapped class representing one valued property in
- * a correlation set.
+ * Hibernate table-mapped class representing one valued property in a
+ * correlation set.
+ *
* @hibernate.class table="BPEL_CORRELATION_PROP"
*/
public class HCorrelationProperty extends HObject {
- private String _name;
- private String _namespace;
- private String _value;
- private HCorrelationSet _correlationSet;
-
- public HCorrelationProperty() {
- super();
- }
-
- public HCorrelationProperty(String name, String namespace, String value, HCorrelationSet correlationSet) {
- super();
- _name = name;
- _namespace = namespace;
- _value = value;
- _correlationSet = correlationSet;
- }
-
- public HCorrelationProperty(QName qname, String value, HCorrelationSet correlationSet) {
- super();
- _name = qname.getLocalPart();
- _namespace = qname.getNamespaceURI();
- _value = value;
- _correlationSet = correlationSet;
- }
-
- /**
- * @hibernate.property column="NAME"
- */
- public String getName() {
- return _name;
- }
-
- public void setName(String name) {
- _name = name;
- }
-
- /**
- * @hibernate.property column="NAMESPACE"
- */
- public String getNamespace() {
- return _namespace;
- }
-
- public void setNamespace(String namespace) {
- _namespace = namespace;
- }
-
- /**
- * @hibernate.property column="VALUE"
- */
- public String getValue() {
- return _value;
- }
-
- public void setValue(String value) {
- _value = value;
- }
-
- /**
- * @hibernate.many-to-one column="CORR_SET_ID"
- */
- public HCorrelationSet getCorrelationSet() {
- return _correlationSet;
- }
-
- public void setCorrelationSet(HCorrelationSet correlationSet) {
- _correlationSet = correlationSet;
- }
-
- public QName getQName() {
- return new QName(getNamespace(), getName());
- }
+ private String _name;
+ private String _namespace;
+ private String _value;
+ private HCorrelationSet _correlationSet;
+
+ public HCorrelationProperty() {
+ super();
+ }
+
+ public HCorrelationProperty(String name, String namespace, String value,
+ HCorrelationSet correlationSet) {
+ super();
+ _name = name;
+ _namespace = namespace;
+ _value = value;
+ _correlationSet = correlationSet;
+ }
+
+ public HCorrelationProperty(QName qname, String value,
+ HCorrelationSet correlationSet) {
+ super();
+ _name = qname.getLocalPart();
+ _namespace = qname.getNamespaceURI();
+ _value = value;
+ _correlationSet = correlationSet;
+ }
+
+ /**
+ * @hibernate.property column="NAME"
+ */
+ public String getName() {
+ return _name;
+ }
+
+ public void setName(String name) {
+ _name = name;
+ }
+
+ /**
+ * @hibernate.property column="NAMESPACE"
+ */
+ public String getNamespace() {
+ return _namespace;
+ }
+
+ public void setNamespace(String namespace) {
+ _namespace = namespace;
+ }
+
+ /**
+ * @hibernate.property column="VALUE"
+ */
+ public String getValue() {
+ return _value;
+ }
+
+ public void setValue(String value) {
+ _value = value;
+ }
+
+ /**
+ * @hibernate.many-to-one column="CORR_SET_ID"
+ */
+ public HCorrelationSet getCorrelationSet() {
+ return _correlationSet;
+ }
+
+ public void setCorrelationSet(HCorrelationSet correlationSet) {
+ _correlationSet = correlationSet;
+ }
+
+ public QName getQName() {
+ return new QName(getNamespace(), getName());
+ }
}
Modified: ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HCorrelationSet.java
URL: http://svn.apache.org/viewvc/ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HCorrelationSet.java?rev=734854&r1=734853&r2=734854&view=diff
==============================================================================
--- ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HCorrelationSet.java (original)
+++ ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HCorrelationSet.java Thu Jan 15 15:43:17 2009
@@ -18,110 +18,100 @@
*/
package org.apache.ode.daohib.bpel.hobj;
-
import java.util.HashSet;
import java.util.Collection;
/**
* Hibernate table representing correlation set values.
+ *
* @hibernate.class table="BPEL_CORRELATION_SET"
*/
-public class HCorrelationSet extends HObject{
- private HProcess _process;
- private HProcessInstance _instance;
- private Collection<HCorrelationProperty> _properties = new HashSet<HCorrelationProperty>();
- private HScope _scope;
- private String _name;
- private String _value;
-
- public HCorrelationSet() {
- super();
- }
-
- public HCorrelationSet(HScope scope, String name) {
- super();
- _scope = scope;
- _instance = scope.getInstance();
- _process = _instance.getProcess();
- _name = name;
- }
-
- /**
- * @hibernate.property
- * column="VALUE"
- */
- public String getValue() {
- return _value;
- }
-
- public void setName(String name) {
- _name = name;
- }
-
- public void setScope(HScope scope) {
- _scope = scope;
- }
-
- public void setValue(String value) {
- _value = value;
- }
-
- /**
- * @hibernate.property
- * column="CORR_SET_NAME"
- * length="255"
- */
- public String getName() {
- return _name;
- }
-
- /**
- * @hibernate.many-to-one
- * column="SCOPE_ID"
- */
- public HScope getScope() {
- return _scope;
- }
-
- /**
- * @hibernate.many-to-one
- * column="PIID"
- */
- public HProcessInstance getInstance() {
- return _instance;
- }
-
- public void setInstance(HProcessInstance instance) {
- _instance = instance;
- }
-
- /**
- * @hibernate.many-to-one
- * column="PROCESS_ID"
- */
- public HProcess getProcess() {
- return _process;
- }
-
- public void setProcess(HProcess process) {
- _process = process;
- }
-
- /**
- * @hibernate.set
- * lazy="true"
- * inverse="true"
- * cascade="delete"
- * @hibernate.collection-key
- * column="CORR_SET_ID"
- * @hibernate.collection-one-to-many
- * class="org.apache.ode.daohib.bpel.hobj.HCorrelationProperty"
- */
- public Collection<HCorrelationProperty> getProperties() {
- return _properties;
- }
-
- public void setProperties(Collection<HCorrelationProperty> properties) {
- _properties = properties;
- }
+public class HCorrelationSet extends HObject {
+ private HProcess _process;
+ private HProcessInstance _instance;
+ private Collection<HCorrelationProperty> _properties = new HashSet<HCorrelationProperty>();
+ private HScope _scope;
+ private String _name;
+ private String _value;
+
+ public HCorrelationSet() {
+ super();
+ }
+
+ public HCorrelationSet(HScope scope, String name) {
+ super();
+ _scope = scope;
+ _instance = scope.getInstance();
+ _process = _instance.getProcess();
+ _name = name;
+ }
+
+ /**
+ * @hibernate.property column="VALUE"
+ */
+ public String getValue() {
+ return _value;
+ }
+
+ public void setName(String name) {
+ _name = name;
+ }
+
+ public void setScope(HScope scope) {
+ _scope = scope;
+ }
+
+ public void setValue(String value) {
+ _value = value;
+ }
+
+ /**
+ * @hibernate.property column="CORR_SET_NAME" length="255"
+ */
+ public String getName() {
+ return _name;
+ }
+
+ /**
+ * @hibernate.many-to-one column="SCOPE_ID"
+ */
+ public HScope getScope() {
+ return _scope;
+ }
+
+ /**
+ * @hibernate.many-to-one column="PIID"
+ */
+ public HProcessInstance getInstance() {
+ return _instance;
+ }
+
+ public void setInstance(HProcessInstance instance) {
+ _instance = instance;
+ }
+
+ /**
+ * @hibernate.many-to-one column="PROCESS_ID"
+ */
+ public HProcess getProcess() {
+ return _process;
+ }
+
+ public void setProcess(HProcess process) {
+ _process = process;
+ }
+
+ /**
+ * @hibernate.set lazy="true" inverse="true" cascade="delete"
+ * @hibernate.collection-key column="CORR_SET_ID"
+ * @hibernate.collection-one-to-many
+ * class="org.apache.ode.daohib.bpel.hobj.HCorrelationProperty"
+ */
+ public Collection<HCorrelationProperty> getProperties() {
+ return _properties;
+ }
+
+ public void setProperties(Collection<HCorrelationProperty> properties) {
+ _properties = properties;
+ }
}
Modified: ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HCorrelatorMessageKey.java
URL: http://svn.apache.org/viewvc/ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HCorrelatorMessageKey.java?rev=734854&r1=734853&r2=734854&view=diff
==============================================================================
--- ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HCorrelatorMessageKey.java (original)
+++ ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HCorrelatorMessageKey.java Thu Jan 15 15:43:17 2009
@@ -18,56 +18,50 @@
*/
package org.apache.ode.daohib.bpel.hobj;
-
/**
* Hibernate table for representing the pre-computed keys for a message
* targetted at the BPEL process with no matching instance at the time of
* receipt (and createInstance is not possible).
- *
- * @hibernate.class
- * table="BPEL_CORRELATOR_MESSAGE_CKEY"
+ *
+ * @hibernate.class table="BPEL_CORRELATOR_MESSAGE_CKEY"
*/
public class HCorrelatorMessageKey extends HObject {
- /** Correlation Key canonical string representation. */
- private String _keyCanonical;
+ /** Correlation Key canonical string representation. */
+ private String _keyCanonical;
- private HCorrelatorMessage _owner;
+ private HCorrelatorMessage _owner;
- /** Constructor. */
- public HCorrelatorMessageKey() {
- super();
- }
-
- /**
- * Canonical string representation of the correlation key.
- *
- * @hibernate.property
- * column="CKEY"
- * not-null="true"
- * @hibernate.column
- * name="CKEY"
- * index="IDX_BPEL_CORRELATOR_MESSAGE_CKEY"
- */
- public String getCanonical() {
- return _keyCanonical;
- }
-
- /** @see #getCanonical() */
- public void setCanonical(String canonical) {
- _keyCanonical = canonical;
- }
-
- /**
- * The message with which this correlation key value is associated.
- * @hibernate.many-to-one
- * column="CORRELATOR_MESSAGE_ID"
- */
- public HCorrelatorMessage getOwner() {
- return _owner;
- }
-
- public void setOwner(HCorrelatorMessage owner) {
- _owner = owner;
- }
+ /** Constructor. */
+ public HCorrelatorMessageKey() {
+ super();
+ }
+
+ /**
+ * Canonical string representation of the correlation key.
+ *
+ * @hibernate.property column="CKEY" not-null="true"
+ * @hibernate.column name="CKEY" index="IDX_BPEL_CORRELATOR_MESSAGE_CKEY"
+ */
+ public String getCanonical() {
+ return _keyCanonical;
+ }
+
+ /** @see #getCanonical() */
+ public void setCanonical(String canonical) {
+ _keyCanonical = canonical;
+ }
+
+ /**
+ * The message with which this correlation key value is associated.
+ *
+ * @hibernate.many-to-one column="CORRELATOR_MESSAGE_ID"
+ */
+ public HCorrelatorMessage getOwner() {
+ return _owner;
+ }
+
+ public void setOwner(HCorrelatorMessage owner) {
+ _owner = owner;
+ }
}
Modified: ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HFaultData.java
URL: http://svn.apache.org/viewvc/ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HFaultData.java?rev=734854&r1=734853&r2=734854&view=diff
==============================================================================
--- ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HFaultData.java (original)
+++ ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HFaultData.java Thu Jan 15 15:43:17 2009
@@ -19,75 +19,74 @@
package org.apache.ode.daohib.bpel.hobj;
-
/**
* Persistent representation of a fault.
+ *
* @hibernate.class table="BPEL_FAULT"
*/
public class HFaultData extends HObject {
- private String _name;
- private String _explanation;
- private HLargeData _data;
- private int _lineNo;
- private int _activityId;
-
- /**
- * @hibernate.property column="FAULTNAME"
- */
- public String getName() {
- return _name;
- }
-
- public void setName(String name) {
- _name = name;
- }
-
- /**
- * @hibernate.many-to-one column="LDATA_ID" cascade="delete"
- */
- public HLargeData getData() {
- return _data;
- }
-
- public void setData(HLargeData data) {
- _data = data;
- }
-
-
- /**
- * @hibernate.property column="EXPLANATION" length="4000"
- */
- public String getExplanation() {
- return _explanation;
- }
-
- public void setExplanation(String explanation) {
- // Don't want to make this a blob, truncating to avoid errors
- if (explanation != null && explanation.length() > 4000)
- explanation = explanation.substring(0, 3999);
- _explanation = explanation;
- }
-
- /**
- * @hibernate.property column="LINE_NUM"
- */
- public int getLineNo() {
- return _lineNo;
- }
-
- public void setLineNo(int lineNo) {
- _lineNo = lineNo;
- }
-
- /**
- * @hibernate.property column="AID"
- */
- public int getActivityId() {
- return _activityId;
- }
-
- public void setActivityId(int activityId) {
- _activityId = activityId;
- }
+ private String _name;
+ private String _explanation;
+ private HLargeData _data;
+ private int _lineNo;
+ private int _activityId;
+
+ /**
+ * @hibernate.property column="FAULTNAME"
+ */
+ public String getName() {
+ return _name;
+ }
+
+ public void setName(String name) {
+ _name = name;
+ }
+
+ /**
+ * @hibernate.many-to-one column="LDATA_ID" cascade="delete"
+ */
+ public HLargeData getData() {
+ return _data;
+ }
+
+ public void setData(HLargeData data) {
+ _data = data;
+ }
+
+ /**
+ * @hibernate.property column="EXPLANATION" length="4000"
+ */
+ public String getExplanation() {
+ return _explanation;
+ }
+
+ public void setExplanation(String explanation) {
+ // Don't want to make this a blob, truncating to avoid errors
+ if (explanation != null && explanation.length() > 4000)
+ explanation = explanation.substring(0, 3999);
+ _explanation = explanation;
+ }
+
+ /**
+ * @hibernate.property column="LINE_NUM"
+ */
+ public int getLineNo() {
+ return _lineNo;
+ }
+
+ public void setLineNo(int lineNo) {
+ _lineNo = lineNo;
+ }
+
+ /**
+ * @hibernate.property column="AID"
+ */
+ public int getActivityId() {
+ return _activityId;
+ }
+
+ public void setActivityId(int activityId) {
+ _activityId = activityId;
+ }
}
Modified: ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HLargeData.java
URL: http://svn.apache.org/viewvc/ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HLargeData.java?rev=734854&r1=734853&r2=734854&view=diff
==============================================================================
--- ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HLargeData.java (original)
+++ ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HLargeData.java Thu Jan 15 15:43:17 2009
@@ -20,47 +20,44 @@
package org.apache.ode.daohib.bpel.hobj;
/**
- * Used to store large data sets into a single table. When an HObject
- * instance needs to store as part of its state large binary or text
- * data, a reference to an instance of this class must be created.
+ * Used to store large data sets into a single table. When an HObject instance
+ * needs to store as part of its state large binary or text data, a reference to
+ * an instance of this class must be created.
+ *
* @hibernate.class table="LARGE_DATA"
*/
public class HLargeData extends HObject {
- private byte[] binary = null;
+ private byte[] binary = null;
- public HLargeData() {
- super();
- }
-
- public HLargeData(byte[] binary) {
- super();
- this.binary = binary;
- }
-
- public HLargeData(String text) {
- super();
- this.binary = text.getBytes();
- }
-
- /**
- * @hibernate.property
- * type="binary"
- * length="2G"
- *
- * @hibernate.column
- * name="BIN_DATA"
- * sql-type="blob(2G)"
- */
- public byte[] getBinary() {
- return binary;
- }
-
- public void setBinary(byte[] binary) {
- this.binary = binary;
- }
-
- public String getText() {
- return new String(binary);
- }
+ public HLargeData() {
+ super();
+ }
+
+ public HLargeData(byte[] binary) {
+ super();
+ this.binary = binary;
+ }
+
+ public HLargeData(String text) {
+ super();
+ this.binary = text.getBytes();
+ }
+
+ /**
+ * @hibernate.property type="binary" length="2G"
+ *
+ * @hibernate.column name="BIN_DATA" sql-type="blob(2G)"
+ */
+ public byte[] getBinary() {
+ return binary;
+ }
+
+ public void setBinary(byte[] binary) {
+ this.binary = binary;
+ }
+
+ public String getText() {
+ return new String(binary);
+ }
}
Modified: ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HScope.java
URL: http://svn.apache.org/viewvc/ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HScope.java?rev=734854&r1=734853&r2=734854&view=diff
==============================================================================
--- ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HScope.java (original)
+++ ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HScope.java Thu Jan 15 15:43:17 2009
@@ -18,155 +18,156 @@
*/
package org.apache.ode.daohib.bpel.hobj;
-
import java.util.HashSet;
import java.util.Set;
/**
- * Hibernate table representing a BPEL scope instance.
+ * Hibernate table representing a BPEL scope instance.
+ *
* @hibernate.class table="BPEL_SCOPE"
*/
-public class HScope extends HObject{
- /** Process instance to which this scope belongs. */
- private HProcessInstance _instance;
-
- /** Correlation set values for csets declared in this scope. */
- private Set<HCorrelationSet> _correlationSets = new HashSet<HCorrelationSet>();
-
- /** Variable values for variables declared in this scope. */
- private Set<HXmlData> _variables = new HashSet<HXmlData>();
-
- /** Enpoint References for partner links declared in this scope */
- private Set<HPartnerLink> _partnerLinks = new HashSet<HPartnerLink>();
-
- /** Parent scope for this scope. */
- private HScope _parentScope;
-
- /** State of the scope. */
- private String _state;
-
- /** Scope type / name. */
- private String _name;
-
- private int _scopeModelId;
-
- public HScope() {}
-
- /**
- * @hibernate.set
- * lazy="true"
- * inverse="true"
- * cascade="delete"
- * @hibernate.collection-key
- * column="SCOPE_ID"
- * @hibernate.collection-one-to-many
- * class="org.apache.ode.daohib.bpel.hobj.HCorrelationSet"
- */
- public Set<HCorrelationSet> getCorrelationSets() {
- return _correlationSets;
- }
-
- public void setCorrelationSets(Set<HCorrelationSet> correlationSets) {
- _correlationSets = correlationSets;
- }
-
- /**
- * Get the {@link HProcessInstance} to which this scope object belongs.
- * @hibernate.many-to-one
- * column="PIID"
- */
- public HProcessInstance getInstance() {
- return _instance;
- }
-
- /** @see #getInstance() */
- public void setInstance(HProcessInstance instance) {
- _instance = instance;
- }
-
- /**
- * Get the "parent" {@link HScope} of this scope.
- * @hibernate.many-to-one column="PARENT_SCOPE_ID"
- */
- public HScope getParentScope() {
- return _parentScope;
- }
-
- /** @see #getParentScope() */
- public void setParentScope(HScope parentScope) {
- _parentScope = parentScope;
- }
-
- /**
- * @hibernate.property column="STATE" not-null="true"
- */
- public String getState() {
- return _state;
- }
-
- /** @see #getState() */
- public void setState(String state) {
- _state = state;
- }
-
- /**
- * Get the type (i.e. the name) of the scope.
- * @hibernate.property column="NAME" not-null="true"
- */
- public String getName() {
- return _name;
- }
-
- /** @see #getName() */
- public void setName(String name) {
- _name = name;
- }
-
-
- /**
- * Get the variable values associated with this scope.
- *
- * @return {@link Set}<{@link HXmlData}> with variable values
- * @hibernate.set lazy="true" inverse="true" cascade="delete"
- * @hibernate.collection-key column="SCOPE_ID"
- * @hibernate.collection-one-to-many class="org.apache.ode.daohib.bpel.hobj.HXmlData"
- */
- public Set<HXmlData> getVariables() {
- return _variables;
- }
-
- public void setVariables(Set<HXmlData> variables){
- _variables = variables;
- }
-
- /**
- * Get the endpoint references for partner links roles associated with this scope.
- *
- * @return {@link Set}<{@link HPartnerLink}> with variable values
- * @hibernate.set lazy="true" inverse="true" cascade="delete"
- * @hibernate.collection-key column="SCOPE"
- * @hibernate.collection-one-to-many class="org.apache.ode.daohib.bpel.hobj.HPartnerLink"
- */
- public Set<HPartnerLink> getPartnerLinks() {
- return _partnerLinks;
- }
-
- public void setPartnerLinks(Set<HPartnerLink> eprs) {
- _partnerLinks = eprs;
- }
-
- /**
- * @hibernate.property column="MODELID"
- */
- public int getScopeModelId() {
- return _scopeModelId;
- }
-
- public void setScopeModelId(int scopeModelId) {
- _scopeModelId = scopeModelId;
- }
+public class HScope extends HObject {
+ /** Process instance to which this scope belongs. */
+ private HProcessInstance _instance;
+
+ /** Correlation set values for csets declared in this scope. */
+ private Set<HCorrelationSet> _correlationSets = new HashSet<HCorrelationSet>();
+
+ /** Variable values for variables declared in this scope. */
+ private Set<HXmlData> _variables = new HashSet<HXmlData>();
+
+ /** Enpoint References for partner links declared in this scope */
+ private Set<HPartnerLink> _partnerLinks = new HashSet<HPartnerLink>();
+
+ /** Parent scope for this scope. */
+ private HScope _parentScope;
+
+ /** State of the scope. */
+ private String _state;
+
+ /** Scope type / name. */
+ private String _name;
+
+ private int _scopeModelId;
+
+ public HScope() {
+ }
+
+ /**
+ * @hibernate.set lazy="true" inverse="true" cascade="delete"
+ * @hibernate.collection-key column="SCOPE_ID"
+ * @hibernate.collection-one-to-many
+ * class="org.apache.ode.daohib.bpel.hobj.HCorrelationSet"
+ */
+ public Set<HCorrelationSet> getCorrelationSets() {
+ return _correlationSets;
+ }
+
+ public void setCorrelationSets(Set<HCorrelationSet> correlationSets) {
+ _correlationSets = correlationSets;
+ }
+
+ /**
+ * Get the {@link HProcessInstance} to which this scope object belongs.
+ *
+ * @hibernate.many-to-one column="PIID"
+ */
+ public HProcessInstance getInstance() {
+ return _instance;
+ }
+
+ /** @see #getInstance() */
+ public void setInstance(HProcessInstance instance) {
+ _instance = instance;
+ }
+
+ /**
+ * Get the "parent" {@link HScope} of this scope.
+ *
+ * @hibernate.many-to-one column="PARENT_SCOPE_ID"
+ */
+ public HScope getParentScope() {
+ return _parentScope;
+ }
+
+ /** @see #getParentScope() */
+ public void setParentScope(HScope parentScope) {
+ _parentScope = parentScope;
+ }
+
+ /**
+ * @hibernate.property column="STATE" not-null="true"
+ */
+ public String getState() {
+ return _state;
+ }
+
+ /** @see #getState() */
+ public void setState(String state) {
+ _state = state;
+ }
+
+ /**
+ * Get the type (i.e. the name) of the scope.
+ *
+ * @hibernate.property column="NAME" not-null="true"
+ */
+ public String getName() {
+ return _name;
+ }
+
+ /** @see #getName() */
+ public void setName(String name) {
+ _name = name;
+ }
+
+ /**
+ * Get the variable values associated with this scope.
+ *
+ * @return {@link Set}<{@link HXmlData}> with variable values
+ * @hibernate.set lazy="true" inverse="true" cascade="delete"
+ * @hibernate.collection-key column="SCOPE_ID"
+ * @hibernate.collection-one-to-many
+ * class="org.apache.ode.daohib.bpel.hobj.HXmlData"
+ */
+ public Set<HXmlData> getVariables() {
+ return _variables;
+ }
+
+ public void setVariables(Set<HXmlData> variables) {
+ _variables = variables;
+ }
+
+ /**
+ * Get the endpoint references for partner links roles associated with this
+ * scope.
+ *
+ * @return {@link Set}<{@link HPartnerLink}> with variable values
+ * @hibernate.set lazy="true" inverse="true" cascade="delete"
+ * @hibernate.collection-key column="SCOPE"
+ * @hibernate.collection-one-to-many
+ * class="org.apache.ode.daohib.bpel.hobj.HPartnerLink"
+ */
+ public Set<HPartnerLink> getPartnerLinks() {
+ return _partnerLinks;
+ }
+
+ public void setPartnerLinks(Set<HPartnerLink> eprs) {
+ _partnerLinks = eprs;
+ }
+
+ /**
+ * @hibernate.property column="MODELID"
+ */
+ public int getScopeModelId() {
+ return _scopeModelId;
+ }
+
+ public void setScopeModelId(int scopeModelId) {
+ _scopeModelId = scopeModelId;
+ }
public String toString() {
- return "HScope{id="+getId()+",name="+_name+"}";
+ return "HScope{id=" + getId() + ",name=" + _name + "}";
}
}
Modified: ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HVariableProperty.java
URL: http://svn.apache.org/viewvc/ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HVariableProperty.java?rev=734854&r1=734853&r2=734854&view=diff
==============================================================================
--- ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HVariableProperty.java (original)
+++ ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HVariableProperty.java Thu Jan 15 15:43:17 2009
@@ -18,69 +18,63 @@
*/
package org.apache.ode.daohib.bpel.hobj;
-
/**
- * Efficient storage of properties (bpel properties).
- * Useful for identification of process instances based
- * on indexed lookup of property values.
+ * Efficient storage of properties (bpel properties). Useful for identification
+ * of process instances based on indexed lookup of property values.
*
- * @hibernate.class
- * table="VAR_PROPERTY"
+ * @hibernate.class table="VAR_PROPERTY"
*/
-public class HVariableProperty extends HObject{
-
- private String _propertyValue;
- private String _propertyName;
- private HXmlData _variable;
-
- /**
+public class HVariableProperty extends HObject {
+
+ private String _propertyValue;
+ private String _propertyName;
+ private HXmlData _variable;
+
+ /**
*
*/
- public HVariableProperty() {
- super();
- }
-
- public HVariableProperty(HXmlData var, String name, String value){
- _variable = var;
- _propertyName = name;
- _propertyValue = value;
- }
- /**
- * @hibernate.many-to-one
- * column="XML_DATA_ID"
- */
- public HXmlData getXmlData(){
- return _variable;
- }
-
- public void setXmlData(HXmlData xmldata){
- _variable = xmldata;
- }
-
- /**
- * @hibernate.property
- * column="PROP_VALUE"
- * index="PROP_VALUE_IDX"
- */
- public String getValue() {
- return _propertyValue;
- }
- public void setValue(String value) {
- _propertyValue = value;
- }
- /**
- * @hibernate.property
- * column="PROP_NAME"
- * type="string"
- * length="255"
- * not-null="true"
- * index="PROP_NAME_IDX"
- */
- public String getName() {
- return _propertyName;
- }
- public void setName(String name) {
- _propertyName = name;
- }
-
+ public HVariableProperty() {
+ super();
+ }
+
+ public HVariableProperty(HXmlData var, String name, String value) {
+ _variable = var;
+ _propertyName = name;
+ _propertyValue = value;
+ }
+
+ /**
+ * @hibernate.many-to-one column="XML_DATA_ID"
+ */
+ public HXmlData getXmlData() {
+ return _variable;
+ }
+
+ public void setXmlData(HXmlData xmldata) {
+ _variable = xmldata;
+ }
+
+ /**
+ * @hibernate.property column="PROP_VALUE" index="PROP_VALUE_IDX"
+ */
+ public String getValue() {
+ return _propertyValue;
+ }
+
+ public void setValue(String value) {
+ _propertyValue = value;
+ }
+
+ /**
+ * @hibernate.property column="PROP_NAME" type="string" length="255"
+ * not-null="true" index="PROP_NAME_IDX"
+ */
+ public String getName() {
+ return _propertyName;
+ }
+
+ public void setName(String name) {
+ _propertyName = name;
+ }
+
}
Modified: ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HXmlData.java
URL: http://svn.apache.org/viewvc/ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HXmlData.java?rev=734854&r1=734853&r2=734854&view=diff
==============================================================================
--- ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HXmlData.java (original)
+++ ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HXmlData.java Thu Jan 15 15:43:17 2009
@@ -18,110 +18,98 @@
*/
package org.apache.ode.daohib.bpel.hobj;
-
import java.util.Collection;
import java.util.HashSet;
/**
- * @hibernate.class
- * table="BPEL_XML_DATA"
+ * @hibernate.class table="BPEL_XML_DATA"
*/
-public class HXmlData extends HObject{
-
- private boolean _simpleType;
- private HLargeData _data;
- private Collection<HVariableProperty> _properties = new HashSet<HVariableProperty>();
- private String _name;
- private HScope _scope;
- private HProcessInstance _instance;
-
- /** Constructor. */
- public HXmlData() {
- super();
- }
-
- /**
- * @hibernate.many-to-one column="LDATA_ID" cascade="delete"
- */
- public HLargeData getData() {
- return _data;
- }
-
- public void setData(HLargeData data) {
- _data = data;
- }
-
- /**
- * @hibernate.property
- * column="NAME"
- * type="string"
- * length="255"
- * not-null="true"
- */
- public String getName() {
- return _name;
- }
-
- public void setName(String name) {
- _name = name;
- }
-
- /**
- * @hibernate.bag
- * lazy="true"
- * inverse="true"
- * cascade="delete"
- * @hibernate.collection-key
- * column="XML_DATA_ID"
- * @hibernate.collection-one-to-many
- * class="org.apache.ode.daohib.bpel.hobj.HVariableProperty"
- */
- public Collection<HVariableProperty> getProperties() {
- return _properties;
- }
-
- public void setProperties(Collection<HVariableProperty> properties) {
- _properties = properties;
- }
-
- /**
- * @hibernate.many-to-one
- * column="SCOPE_ID"
- */
- public HScope getScope() {
- return _scope;
- }
-
- public void setScope(HScope scope) {
- _scope = scope;
-
- if(scope != null) {
- setInstance(scope.getInstance());
- }
- }
-
- /**
- * @hibernate.many-to-one
- * column="PIID"
- */
- public HProcessInstance getInstance() {
- return _instance;
- }
-
- public void setInstance(HProcessInstance instance) {
- _instance = instance;
- }
-
- /**
- * @hibernate.property
- * column="IS_SIMPLE_TYPE"
- */
- public boolean isSimpleType() {
- return _simpleType;
- }
-
- public void setSimpleType(boolean simpleType) {
- _simpleType = simpleType;
- }
+public class HXmlData extends HObject {
+
+ private boolean _simpleType;
+ private HLargeData _data;
+ private Collection<HVariableProperty> _properties = new HashSet<HVariableProperty>();
+ private String _name;
+ private HScope _scope;
+ private HProcessInstance _instance;
+
+ /** Constructor. */
+ public HXmlData() {
+ super();
+ }
+
+ /**
+ * @hibernate.many-to-one column="LDATA_ID" cascade="delete"
+ */
+ public HLargeData getData() {
+ return _data;
+ }
+
+ public void setData(HLargeData data) {
+ _data = data;
+ }
+
+ /**
+ * @hibernate.property column="NAME" type="string" length="255"
+ * not-null="true"
+ */
+ public String getName() {
+ return _name;
+ }
+
+ public void setName(String name) {
+ _name = name;
+ }
+
+ /**
+ * @hibernate.bag lazy="true" inverse="true" cascade="delete"
+ * @hibernate.collection-key column="XML_DATA_ID"
+ * @hibernate.collection-one-to-many
+ * class="org.apache.ode.daohib.bpel.hobj.HVariableProperty"
+ */
+ public Collection<HVariableProperty> getProperties() {
+ return _properties;
+ }
+
+ public void setProperties(Collection<HVariableProperty> properties) {
+ _properties = properties;
+ }
+
+ /**
+ * @hibernate.many-to-one column="SCOPE_ID"
+ */
+ public HScope getScope() {
+ return _scope;
+ }
+
+ public void setScope(HScope scope) {
+ _scope = scope;
+
+ if (scope != null) {
+ setInstance(scope.getInstance());
+ }
+ }
+
+ /**
+ * @hibernate.many-to-one column="PIID"
+ */
+ public HProcessInstance getInstance() {
+ return _instance;
+ }
+
+ public void setInstance(HProcessInstance instance) {
+ _instance = instance;
+ }
+
+ /**
+ * @hibernate.property column="IS_SIMPLE_TYPE"
+ */
+ public boolean isSimpleType() {
+ return _simpleType;
+ }
+
+ public void setSimpleType(boolean simpleType) {
+ _simpleType = simpleType;
+ }
}