Class PArray<R,E>

Type Parameters:
R - the root query bean type
E - the element type of the DbArray
All Implemented Interfaces:
io.ebean.Query.Property<E>

public final class PArray<R,E> extends TQPropertyBase<R,E>
Array property with E as the element type.
  • Constructor Details

    • PArray

      public PArray(String name, R root)
      Construct with a property name and root instance.
      Parameters:
      name - property name
      root - the root query bean instance
    • PArray

      public PArray(String name, R root, String prefix)
      Construct with additional path prefix.
  • Method Details

    • contains

      @SafeVarargs public final R contains(E... values)
      ARRAY contains the values.

      
      
         new QContact()
          .phoneNumbers.contains("4321")
          .findList();
      
       
      Parameters:
      values - The values that should be contained in the array
    • notContains

      @SafeVarargs public final R notContains(E... values)
      ARRAY does not contain the values.

      
      
         new QContact()
          .phoneNumbers.notContains("4321")
          .findList();
      
       
      Parameters:
      values - The values that should not be contained in the array
    • isEmpty

      public R isEmpty()
      ARRAY is empty.

      
      
         new QContact()
          .phoneNumbers.isEmpty()
          .findList();
      
       
    • isNotEmpty

      public R isNotEmpty()
      ARRAY is not empty.

      
      
         new QContact()
          .phoneNumbers.isNotEmpty()
          .findList();