|
Decision Center API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ilog.rules.teamserver.model.IlrCommitableObject
public class IlrCommitableObject
Holds an element to commit in the database along with its details and/or a list of its contained elements to add or delete during the commit.
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()
).
IlrSession.commit(IlrCommitableObject)
,
Serialized Form
Constructor Summary | |
---|---|
IlrCommitableObject(IlrElementHandle rootElement)
Creates a commitable object. |
Method Summary | |
---|---|
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(Object o)
Indicates whether some other committable object is "equal to" this one. |
String |
getComment()
Gets the comment that will be associated with the commit. |
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()
|
Object |
getFromReference(org.eclipse.emf.ecore.EReference reference)
|
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. |
Set<IlrElementDetails> |
getMultiValuedDeletedElement(org.eclipse.emf.ecore.EReference reference)
Gets the set of contained element for given reference to delete. |
List<IlrElementDetails> |
getMultiValuedFromReference(org.eclipse.emf.ecore.EReference reference)
|
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(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. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IlrCommitableObject(IlrElementHandle rootElement)
rootElement
- Handle on the root element that is going to be committed.Method Detail |
---|
public IlrElementHandle getRootElementHandle()
public String getComment()
public void setComment(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 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 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 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 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(Object o)
equals
in class Object
o
- The object to compare with this.
public int hashCode()
hashCode
in class Object
public IlrElementDetails getDetails()
getDetails
in interface ilog.rules.teamserver.model.IlrCompositeObject
public Object getFromReference(org.eclipse.emf.ecore.EReference reference)
getFromReference
in interface ilog.rules.teamserver.model.IlrCompositeObject
public IlrElementDetails getMonoValuedFromReference(org.eclipse.emf.ecore.EReference reference)
public List<IlrElementDetails> getMultiValuedFromReference(org.eclipse.emf.ecore.EReference reference)
|
Decision Center API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |