Interface ClientObjectFactory
public interface ClientObjectFactory
Entry point for generating OData domain objects.
-
Method Summary
Modifier and TypeMethodDescriptionnewAssociationLink
(String name, URI link) newCollectionProperty
(String name, ClientCollectionValue<? extends ClientValue> value) Instantiates a new collection property.newCollectionValue
(String typeName) newComplexProperty
(String name, ClientComplexValue value) Instantiates a new complex property.newComplexValue
(String typeName) newDeepInsertEntity
(String name, ClientEntity entity) Instantiates a new entity (for deep insert).newDeepInsertEntitySet
(String name, ClientEntitySet entitySet) Instantiates a new entity set (for deep insert).newDelta()
Instantiates a new delta property.Instantiates a new delta property.newEntity
(FullQualifiedName typeName) Instantiates a new entity.newEntity
(FullQualifiedName typeName, URI link) Instantiates a new entity.newEntityNavigationLink
(String name, URI link) Instantiates a new entity navigation link.Instantiates a new entity set.newEntitySet
(URI next) Instantiates a new entity set.newEntitySetNavigationLink
(String name, URI link) Instantiates a new entity set navigation link.newEnumProperty
(String name, ClientEnumValue value) Instantiates a new enum property.newEnumValue
(String typeName, String value) newMediaEditLink
(String name, URI link, String type, String eTag) newMediaReadLink
(String name, URI link, String type, String eTag) newPrimitiveProperty
(String name, ClientPrimitiveValue value) Instantiates a new primitive property.newSingleton
(FullQualifiedName typeName) Instantiates a new singleton entity.
-
Method Details
-
newEntitySet
ClientEntitySet newEntitySet()Instantiates a new entity set.- Returns:
- entity set.
-
newEntitySet
Instantiates a new entity set.- Parameters:
next
- next link.- Returns:
- entity set.
-
newEntity
Instantiates a new entity.- Parameters:
typeName
- OData entity type name.- Returns:
- entity.
-
newEntity
Instantiates a new entity.- Parameters:
typeName
- OData entity type name.link
- self link.- Returns:
- entity.
-
newDeepInsertEntitySet
Instantiates a new entity set (for deep insert).- Parameters:
name
- name.entitySet
- entity set.- Returns:
- in-line entity set.
-
newDeepInsertEntity
Instantiates a new entity (for deep insert).- Parameters:
name
- name.entity
- entity.- Returns:
- in-line entity.
-
newSingleton
Instantiates a new singleton entity.- Parameters:
typeName
- OData singleton entity type name.- Returns:
- new singleton entity.
-
newAssociationLink
-
newMediaEditLink
-
newMediaReadLink
-
newPrimitiveValueBuilder
ClientPrimitiveValue.Builder newPrimitiveValueBuilder() -
newEnumValue
-
newComplexValue
-
newCollectionValue
-
newPrimitiveProperty
Instantiates a new primitive property.- Parameters:
name
- name.value
- primitive value.- Returns:
- primitive property.
-
newComplexProperty
Instantiates a new complex property.- Parameters:
name
- name.value
- value.- Returns:
- complex property.
-
newCollectionProperty
ClientProperty newCollectionProperty(String name, ClientCollectionValue<? extends ClientValue> value) Instantiates a new collection property.- Parameters:
name
- name.value
- value.- Returns:
- collection property.
-
newEnumProperty
Instantiates a new enum property.- Parameters:
name
- name.value
- value.- Returns:
- new enum property.
-
newDelta
ClientDelta newDelta()Instantiates a new delta property.- Returns:
- new delta property.
-
newDelta
Instantiates a new delta property.- Parameters:
next
- next link for delta property- Returns:
- new delta property.
-