public abstract class Entity<EntityT> extends Object
Constructor and Description |
---|
Entity() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
<T> T |
getField(EntityField<EntityT,T> field)
This method allows for retrieval of extension fields that are added to the underlying OData services.
|
<T> T |
getField(String fieldName)
This method allows for retrieval of extension fields that are added to the underlying OData services.
|
Set<String> |
getFieldNames() |
abstract Class<EntityT> |
getType() |
boolean |
hasField(EntityField<EntityT,?> field) |
boolean |
hasField(String fieldName) |
int |
hashCode() |
String |
toString() |
public boolean hasField(String fieldName)
true
if this entity has a field with the given name, false
otherwise.public boolean hasField(EntityField<EntityT,?> field)
true
if this entity has a field with the name of the given field, false
otherwise.@Nullable public <T> T getField(String fieldName) throws NoSuchEntityFieldException
fieldName
- Name of the field returned by the underlying OData service.NoSuchEntityFieldException
@Nullable public <T> T getField(EntityField<EntityT,T> field) throws NoSuchEntityFieldException
field
- Field returned by the underlying OData service.NoSuchEntityFieldException
@Generated(value="lombok") public String toString()
@Generated(value="lombok") public boolean equals(Object o)
@Generated(value="lombok") public int hashCode()
Copyright © 2017 SAP SE. All rights reserved.