public class ChangedLink
extends java.lang.Object
Encapsulates an OData changed link.
ChangeSet.createLink
, ChangeSet.updateLink
, ChangeSet.deleteLink
.
Constructor and Description |
---|
ChangedLink() |
Modifier and Type | Method and Description |
---|---|
GlobalDateTime |
getDeltaTime()
Return (nullable) Can be used to hold the "last modified time" for a changed link.
|
EntityValue |
getSource()
Return source entity which contains the changed link.
|
Property |
getSourceProperty()
Return source navigation property for the changed link.
|
EntityValue |
getTarget()
Return target entity referred to by the changed link.
|
boolean |
isCreated()
Return is this a created link?
Created links are applicable to one-to-one and one-to-many navigation properties.
|
boolean |
isDeleted()
Return is this an deleted link?
Deleted links are applicable to one-to-one and one-to-many navigation properties.
|
boolean |
isUpdated()
Return is this an updated link?
Updated links are only applicable to one-to-one navigation properties.
|
void |
setCreated(boolean value)
Set is this a created link?
Created links are applicable to one-to-one and one-to-many navigation properties.
|
void |
setDeleted(boolean value)
Set is this an deleted link?
Deleted links are applicable to one-to-one and one-to-many navigation properties.
|
void |
setDeltaTime(GlobalDateTime value)
Set can be used to hold the "last modified time" for a changed link.
|
void |
setSource(EntityValue value)
Set source entity which contains the changed link.
|
void |
setSourceProperty(Property value)
Set source navigation property for the changed link.
|
void |
setTarget(EntityValue value)
Set target entity referred to by the changed link.
|
void |
setUpdated(boolean value)
Set is this an updated link?
Updated links are only applicable to one-to-one navigation properties.
|
java.lang.String |
toString() |
public GlobalDateTime getDeltaTime()
Return (nullable) Can be used to hold the "last modified time" for a changed link.
public EntityValue getSource()
Return source entity which contains the changed link.
public Property getSourceProperty()
Return source navigation property for the changed link.
public EntityValue getTarget()
Return target entity referred to by the changed link.
public boolean isCreated()
Return is this a created link? Created links are applicable to one-to-one and one-to-many navigation properties.
public boolean isDeleted()
Return is this an deleted link? Deleted links are applicable to one-to-one and one-to-many navigation properties.
public boolean isUpdated()
Return is this an updated link? Updated links are only applicable to one-to-one navigation properties.
public void setCreated(boolean value)
Set is this a created link? Created links are applicable to one-to-one and one-to-many navigation properties.
value
- Is this a created link?public void setDeleted(boolean value)
Set is this an deleted link? Deleted links are applicable to one-to-one and one-to-many navigation properties.
value
- Is this an deleted link?public void setDeltaTime(GlobalDateTime value)
Set can be used to hold the "last modified time" for a changed link.
value
- Can be used to hold the "last modified time" for a changed link.public void setSource(EntityValue value)
Set source entity which contains the changed link.
value
- Source entity which contains the changed link.public void setSourceProperty(Property value)
Set source navigation property for the changed link.
value
- Source navigation property for the changed link.public void setTarget(EntityValue value)
Set target entity referred to by the changed link.
value
- Target entity referred to by the changed link.public void setUpdated(boolean value)
Set is this an updated link? Updated links are only applicable to one-to-one navigation properties.
value
- Is this an updated link?public java.lang.String toString()
toString
in class java.lang.Object