Interface FieldReference

All Superinterfaces:
Expressions.Operand, Expressions.OperandSingle
All Known Subinterfaces:
FieldUntyped

public interface FieldReference extends Expressions.OperandSingle
OData filter expression operand for a generic entity field reference.
  • Method Details

    • of

      @Nonnull static FieldUntyped of(@Nonnull String fieldName)
      Static factory method to easily instantiate a generic field reference.
      Parameters:
      fieldName - The field name.
      Returns:
      The newly created instance.
    • ofPath

      @Nonnull static FieldUntyped ofPath(@Nonnull String... fieldNames)
      Static factory method to easily instantiate a nested field reference via a path of fields.
      Parameters:
      fieldNames - The field name(s) identifying the field.
      Returns:
      The newly created instance.
    • getFieldName

      @Nonnull String getFieldName()
      javadoc
      Returns:
      The field name this reference points towards.
    • getExpression

      @Nonnull default String getExpression(@Nonnull ODataProtocol protocol, @Nonnull Map<String,Predicate<FieldReference>> prefixes)
      Description copied from interface: Expressions.Operand
      Create the String representation of the expression.
      Specified by:
      getExpression in interface Expressions.Operand
      Parameters:
      protocol - The OData protocol to derive serialization rules from.
      prefixes - Additional field prefixes, e.g. when using lambda expressions.
      Returns:
      The expression String.