javax.jdo.query

## Interface OptionalExpression<T>

- All Superinterfaces:
    ComparableExpression<Optional<T>>, Expression<Optional<T>>

      public interface OptionalExpression<T>
      extends ComparableExpression<Optional<T>>

  Representation of an Optional type in a query.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `Expression<T>` | `get()` Accessor for the object within the Optional.
    `BooleanExpression` | `isPresent()` Accessor for whether there is an object within the Optional.

    - ### Methods inherited from interface javax.jdo.query.ComparableExpression

      `asc, desc, gt, gt, gteq, gteq, lt, lt, lteq, lteq, max, min`

    - ### Methods inherited from interface javax.jdo.query.Expression

      `as, cast, count, countDistinct, eq, eq, instanceOf, ne, ne`

- - ### Method Detail

    - #### get

          Expression<T> get()

      Accessor for the object within the Optional.
      Returns:
        Expression for the object

    - #### isPresent

          BooleanExpression isPresent()

      Accessor for whether there is an object within the Optional.
      Returns:
        Whether there is an expression

Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.