public class IlrCommitableObject
extends java.lang.Object
implements java.io.Serializable, ilog.rules.teamserver.model.IlrCompositeObject
This allows you to commit a complete root element, that is, its details and its contained elements (elements in
relationship with the root element through a containment reference EReference.isContainment()).
| Constructor and Description |
|---|
IlrCommitableObject(IlrElementHandle rootElement)
Creates a commitable object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDeletedElement(org.eclipse.emf.ecore.EReference reference,
IlrElementDetails containedDetails)
Adds a contained element to delete upon commit.
|
void |
addModifiedElement(org.eclipse.emf.ecore.EReference reference,
IlrElementDetails containedDetails)
Adds a contained element to commit together with the root element.
|
boolean |
equals(java.lang.Object o)
Indicates whether some other committable object is "equal to" this one.
|
java.lang.String |
getComment()
Gets the comment that will be associated with the commit.
|
java.lang.Object |
getDeletedElement(org.eclipse.emf.ecore.EReference reference)
Deprecated.
: use getMonoValuedDeletedElement or getMultiValuedDeletedElement instead.
Gets the contained element or the set of contained elements to delete.
|
IlrElementDetails |
getDetails() |
java.lang.Object |
getFromReference(org.eclipse.emf.ecore.EReference reference) |
java.lang.Object |
getModifiedElement(org.eclipse.emf.ecore.EReference reference)
Deprecated.
: use getMonoValuedModifiedElement or getMultiValuedModifiedElement instead.
Gets the contained element or the set of contained elements to commit together with the root element.
|
IlrElementDetails |
getMonoValuedDeletedElement(org.eclipse.emf.ecore.EReference reference)
Gets the contained element for given reference to delete.
|
IlrElementDetails |
getMonoValuedFromReference(org.eclipse.emf.ecore.EReference reference) |
IlrElementDetails |
getMonoValuedModifiedElement(org.eclipse.emf.ecore.EReference reference)
Gets the contained element for given reference to commit together with the root element.
|
java.util.Set<IlrElementDetails> |
getMultiValuedDeletedElement(org.eclipse.emf.ecore.EReference reference)
Gets the set of contained element for given reference to delete.
|
java.util.List<IlrElementDetails> |
getMultiValuedFromReference(org.eclipse.emf.ecore.EReference reference) |
java.util.Set<IlrElementDetails> |
getMultiValuedModifiedElement(org.eclipse.emf.ecore.EReference reference)
Gets the set of contained elements for given reference to commit together with the root element.
|
IlrElementDetails |
getRootDetails()
Gets the details to commit for the root element
|
IlrElementHandle |
getRootElementHandle()
Gets the handle on the root element to commit.
|
int |
hashCode() |
boolean |
isUpdateMajorVersion()
Indicates whether the commit must update the major version of the element or not.
|
void |
setComment(java.lang.String comment)
Sets the comment that will be associated with the commit.
|
void |
setRootDetails(IlrElementDetails rootDetails)
Sets the details to commit for the root element.
|
void |
setUpdateMajorVersion(boolean updateMajorVersion)
Deprecated.
should customize IlrSessionController.getNextVersion().
Indicates whether the commit must update the major version of the element or not.
|
public IlrCommitableObject(IlrElementHandle rootElement)
rootElement - Handle on the root element that is going to be committed.public IlrElementHandle getRootElementHandle()
public java.lang.String getComment()
public void setComment(java.lang.String comment)
comment - Any string.public boolean isUpdateMajorVersion()
public void setUpdateMajorVersion(boolean updateMajorVersion)
updateMajorVersion - True if the major version needs to be updated; false to update the minor version.public void setRootDetails(IlrElementDetails rootDetails)
rootDetails - The IlrElementDetails to commit.public IlrElementDetails getRootDetails()
IlrElementDetails to commit.public java.lang.Object getDeletedElement(org.eclipse.emf.ecore.EReference reference)
reference - A containment reference (EReference.isContainment()).IlrElementDetails if the reference is unary or a set of IlrElementDetails
otherwise (ETypedElement.isMany()).public IlrElementDetails getMonoValuedDeletedElement(org.eclipse.emf.ecore.EReference reference)
reference - An unary containment reference (EReference.isContainment()).IlrElementDetails if the reference is unary or a set of IlrElementDetails
otherwise (ETypedElement.isMany()).public java.util.Set<IlrElementDetails> getMultiValuedDeletedElement(org.eclipse.emf.ecore.EReference reference)
reference - A multi-valued containment reference (EReference.isContainment()).IlrElementDetails if the reference is unary or a set of IlrElementDetails
otherwise (ETypedElement.isMany()).public java.lang.Object getModifiedElement(org.eclipse.emf.ecore.EReference reference)
reference - A containment reference (EReference.isContainment()).IlrElementDetails if the reference is unary or a set of IlrElementDetails
otherwise (ETypedElement.isMany()).public IlrElementDetails getMonoValuedModifiedElement(org.eclipse.emf.ecore.EReference reference)
reference - An unary containment reference (EReference.isContainment()).IlrElementDetails if the reference is unary or a set of IlrElementDetails
otherwise (ETypedElement.isMany()).public java.util.Set<IlrElementDetails> getMultiValuedModifiedElement(org.eclipse.emf.ecore.EReference reference)
reference - A multi-valued containment reference (EReference.isContainment()).IlrElementDetails
otherwise (ETypedElement.isMany()).public void addModifiedElement(org.eclipse.emf.ecore.EReference reference,
IlrElementDetails containedDetails)
reference - A containment reference (EReference.isContainment()).containedDetails - Details of the contained element to commit.public void addDeletedElement(org.eclipse.emf.ecore.EReference reference,
IlrElementDetails containedDetails)
reference - A containment reference (EReference.isContainment()).containedDetails - Details of the contained element to delete upon commit.public boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - The object to compare with this.public int hashCode()
hashCode in class java.lang.Objectpublic IlrElementDetails getDetails()
getDetails in interface ilog.rules.teamserver.model.IlrCompositeObjectpublic java.lang.Object getFromReference(org.eclipse.emf.ecore.EReference reference)
getFromReference in interface ilog.rules.teamserver.model.IlrCompositeObjectpublic IlrElementDetails getMonoValuedFromReference(org.eclipse.emf.ecore.EReference reference)
public java.util.List<IlrElementDetails> getMultiValuedFromReference(org.eclipse.emf.ecore.EReference reference)
© Copyright IBM Corp. 1987, 2024