EntityT
- VdmObject that the field belongs toFieldT
- Field typepublic class EntityField<EntityT,FieldT> extends Object implements EntitySelectable<EntityT>
Constructor and Description |
---|
EntityField(String fieldName)
Use the constants declared in each entity inner class.
|
EntityField(String fieldName,
TypeConverter<FieldT,?> typeConverter)
Use the constants declared in each entity inner class.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
ExpressionFluentHelper<EntityT> |
eq(FieldT value)
Equals expression fluent helper.
|
boolean |
equals(Object o) |
ExpressionFluentHelper<EntityT> |
ge(FieldT value)
Greater than or equals expression fluent helper.
|
String |
getFieldName()
Get the field name of OData entity property.
|
List<String> |
getSelections()
Get the select expression that represents the OData entity property.
|
TypeConverter<FieldT,?> |
getTypeConverter() |
ExpressionFluentHelper<EntityT> |
gt(FieldT value)
Greater than expression fluent helper.
|
int |
hashCode() |
ExpressionFluentHelper<EntityT> |
le(FieldT value)
Less than or equals expression fluent helper.
|
ExpressionFluentHelper<EntityT> |
lt(FieldT value)
Less than expression fluent helper.
|
ExpressionFluentHelper<EntityT> |
ne(FieldT value)
Not equals expression fluent helper.
|
public EntityField(@Nonnull String fieldName)
fieldName
- OData field name. Must match the field returned by the underlying OData service.public EntityField(@Nonnull String fieldName, @Nullable TypeConverter<FieldT,?> typeConverter)
fieldName
- OData field name. Must match the field returned by the underlying OData service.typeConverter
- An implementation of a TypeConverter. The first type must match FieldT, the second type must match the
type Olingo returns.@Nonnull public ExpressionFluentHelper<EntityT> eq(@Nullable FieldT value)
value
- Field value to compare with.@Nonnull public ExpressionFluentHelper<EntityT> ne(@Nullable FieldT value)
value
- Field value to compare with.@Nonnull public ExpressionFluentHelper<EntityT> gt(@Nullable FieldT value)
value
- Field value to compare with.@Nonnull public ExpressionFluentHelper<EntityT> ge(@Nullable FieldT value)
value
- Field value to compare with.@Nonnull public ExpressionFluentHelper<EntityT> lt(@Nullable FieldT value)
value
- Field value to compare with.@Nonnull public ExpressionFluentHelper<EntityT> le(@Nullable FieldT value)
value
- Field value to compare with.@Nonnull public List<String> getSelections()
EntitySelectable
getSelections
in interface EntitySelectable<EntityT>
@Nonnull public String getFieldName()
EntitySelectable
getFieldName
in interface EntitySelectable<EntityT>
@Nullable public TypeConverter<FieldT,?> getTypeConverter()
Copyright © 2020 SAP SE. All rights reserved.