public class IGCUpdate extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
IGCUpdate.UpdateMode |
| Modifier and Type | Method and Description |
|---|---|
void |
addExclusiveRelationship(String propertyName,
String relatedRid)
Adds a relationship on a property that can only have one such relationship (so it will replace any existing
relationship on that property).
|
void |
addProperty(String propertyName,
String value)
Adds a new value for the provided property to be set on the update.
|
void |
addRelationship(String propertyName,
String relatedRid)
Adds a relationship on a property that can have many relationships.
|
String |
getRidToUpdate()
Retrieves the RID of the asset that is being updated.
|
com.fasterxml.jackson.databind.JsonNode |
getUpdate()
Retrieves the update string for this update object.
|
void |
setRelationshipUpdateMode(IGCUpdate.UpdateMode updateMode)
Sets the update mode that should be used for the non-exclusive relationship properties.
|
String |
toString()
Retrieves a printable version of the update object.
|
public IGCUpdate(String ridToUpdate)
public void addProperty(String propertyName, String value)
propertyName - the name of the property to be updatedvalue - the new value for the propertypublic void addExclusiveRelationship(String propertyName, String relatedRid)
propertyName - name of the IGC entity's exclusive relationship propertyrelatedRid - Repository ID (RID) of the related entitypublic void addRelationship(String propertyName, String relatedRid)
propertyName - name of the IGC entity's relationship propertyrelatedRid - Repository ID (RID) of the related entitysetRelationshipUpdateMode(UpdateMode)public void setRelationshipUpdateMode(IGCUpdate.UpdateMode updateMode)
updateMode - the mode of the updateIGCUpdate.UpdateMode,
addRelationship(String, String)public String getRidToUpdate()
public com.fasterxml.jackson.databind.JsonNode getUpdate()
Copyright © 2018–2021 ODPi. All rights reserved.