| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.odata4j.core.OEntityIds
public class OEntityIds
A static factory to create immutable OEntityId instances.
| Method Summary | |
|---|---|
| static OEntityId | create(String entitySetName,
       Object... entityKeyValues)Creates an entity-id. | 
| static OEntityId | create(String entitySetName,
       OEntityKey entityKey)Creates an entity-id. | 
| static boolean | equals(OEntityId lhs,
       OEntityId rhs)Determines equality of two entity ids. | 
| static OEntityId | parse(String entityId)Parses an entity-id from a "key string" representation. | 
| static OEntityId | parse(String serviceRootUri,
      String uri)Parses an entity-id of an entity at an OData uri given its service root uri. | 
| static String | toKeyString(OEntityId entity)Computes the "key string" representation of an entity. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
public static OEntityId create(String entitySetName,
                               Object... entityKeyValues)
entitySetName - the entity-setentityKeyValues - the entity-key as one or more values
public static OEntityId create(String entitySetName,
                               OEntityKey entityKey)
entitySetName - the entity-setentityKey - the entity-key
public static boolean equals(OEntityId lhs,
                             OEntityId rhs)
lhs - the first entity idrhs - the second entity id
public static OEntityId parse(String entityId)
e.g. Customers(15)
entityId - the entity-id as a string representation
public static OEntityId parse(String serviceRootUri,
                              String uri)
serviceRootUri - the service root uriuri - the entity uri
public static String toKeyString(OEntityId entity)
entity - the entity
Customers(15)| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||