| java.lang.Object | |
| ↳ | org.odata4j.core.OEntityKey |
An immutable entity-key, made up of either a single unnamed-value or multiple named-values.
Every entity must have an entity-key. The entity-key must be unique within the entity-set, and thus defines an entity's identity. (see OEntityId)
An entity-key made up a a single unnamed-value is called a single key. An entity-key made up of multiple named-values is called a complex key.
The string representation of an entity-key is wrapped with parentheses, such as (2), ('foo') or (a=1,foo='bar').
Entity-keys are equal if their string representations are equal.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| OEntityKey.KeyType | SINGLE or COMPLEX | ||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| EDM_SIMPLE_JAVA_TYPES | |||||||||||
| isGuid | |||||||||||
| keyString | |||||||||||
| values | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Gets the values of complex entity-key.
| |||||||||||
Gets the values of a complex entity-key.
| |||||||||||
Gets a the value of a single-valued entity-key.
| |||||||||||
Creates an entity-key.
| |||||||||||
Creates an entity-key from a map of names and values.
| |||||||||||
Gets the entity-key type: SINGLE or COMPLEX.
| |||||||||||
Creates an entity-key using key information from the given entity-set and values from the given property list.
| |||||||||||
Creates an entity-key from its standard string representation.
| |||||||||||
Gets the standard string representation of this entity-key, including parentheses.
| |||||||||||
Gets the standard string representation of this entity-key, excluding parentheses.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Gets the values of complex entity-key.
Gets the values of a complex entity-key.
Gets a the value of a single-valued entity-key.
Creates an entity-key.
OEntityKey.create(2)OEntityKey.create("foo")OEntityKey.create("a",1,"foo","bar")OEntityKey.create(NamedValues.create("a",1),NamedValues.create("foo","bar"))| values | The key values |
|---|
Creates an entity-key from a map of names and values.
| values | The map of names and values |
|---|
| obj |
|---|
Gets the entity-key type: SINGLE or COMPLEX.
Creates an entity-key using key information from the given entity-set and values from the given property list.
| entitySet | An entity-set to provide key information |
|---|---|
| props | A list of properties to provide key values |
Creates an entity-key from its standard string representation.
| keyString | A standard key-string |
|---|
| isGuid |
|---|
Gets the standard string representation of this entity-key, including parentheses.
Gets the standard string representation of this entity-key, excluding parentheses.