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> |
endsWith(String value)
Expression fluent helper supporting the filter function "endswith"
|
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.
|
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.
|
ExpressionFluentHelper<EntityT> |
startsWith(String value)
Expression fluent helper supporting the filter function "startswith"
|
ExpressionFluentHelper<EntityT> |
substringOf(String value)
Expression fluent helper supporting the filter function "substringof"
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getSelections
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 ExpressionFluentHelper<EntityT> substringOf(@Nonnull String value)
value
- value String value to apply the function onsubstringof(value,field)
expression@Nonnull public ExpressionFluentHelper<EntityT> endsWith(@Nonnull String value)
value
- String value to apply the function onendswith(field,value)
expression@Nonnull public ExpressionFluentHelper<EntityT> startsWith(@Nonnull String value)
value
- String value to apply the function onstartswith(field,value)
expression@Nonnull public String getFieldName()
EntitySelectable
getFieldName
in interface EntitySelectable<EntityT>
@Nullable public TypeConverter<FieldT,?> getTypeConverter()
Copyright © 2021 SAP SE. All rights reserved.