|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OEntity
An immutable OData entity instance, consisting of an identity (an entity-set and a unique entity-key within that set), properties (typed, named values), and links (references to other entities).
The OEntities
static factory class can be used to create OEntity
instances.
OEntities
Method Summary | ||
---|---|---|
OEntityKey |
getEntityKey()
Gets the entity-key for this instance. |
|
EdmEntitySet |
getEntitySet()
Gets the entity-set for this instance. |
|
|
getLink(String title,
Class<T> linkClass)
Get a link with a given name and link-type. |
|
List<OLink> |
getLinks()
Get all links of this instance. |
|
List<OProperty<?>> |
getProperties()
Get all properties of this instance. |
|
OProperty<?> |
getProperty(String propName)
Get a property by name. |
|
|
getProperty(String propName,
Class<T> propClass)
Get a property by name as a strongly-typed OProperty. |
Method Detail |
---|
OEntityKey getEntityKey()
EdmEntitySet getEntitySet()
<T extends OLink> T getLink(String title, Class<T> linkClass)
T
- the link-type as a java-typetitle
- the link titlelinkClass
- the link-type as a java-type
List<OLink> getLinks()
List<OProperty<?>> getProperties()
OProperty<?> getProperty(String propName)
propName
- the property name
<T> OProperty<T> getProperty(String propName, Class<T> propClass)
T
- the java-type of the propertypropName
- the property namepropClass
- the java-type of the property
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |