Class PLong<R>

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

public final class PLong<R> extends PBaseNumber<R,Long>
Long property.
  • Constructor Details

    • PLong

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

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

    • bitwiseAnd

      public R bitwiseAnd(long flags, long mask)
      Add bitwise AND expression of the given bit flags to compare with the match/mask.

      
      
       // Flags Bulk + Size = Size
       // ... meaning Bulk is not set and Size is set
      
       long selectedFlags = BwFlags.HAS_BULK + BwFlags.HAS_SIZE;
       long mask = BwFlags.HAS_SIZE; // Only Size flag set
      
       bitwiseAnd(selectedFlags, mask)
      
       
      Parameters:
      flags - The flags we are looking for
    • bitwiseAll

      public R bitwiseAll(long flags)
      Add expression for ALL of the given bit flags to be set.
      
      
       bitwiseAll(BwFlags.HAS_BULK + BwFlags.HAS_COLOUR)
      
       
      Parameters:
      flags - The flags we are looking for
    • bitwiseAny

      public R bitwiseAny(long flags)
      Add expression for ANY of the given bit flags to be set.
      
      
       bitwiseAny(BwFlags.HAS_BULK + BwFlags.HAS_COLOUR)
      
       
      Parameters:
      flags - The flags we are looking for
    • bitwiseNot

      public R bitwiseNot(long flags)
      Add expression for the given bit flags to be NOT set.
      
      
       bitwiseNot(BwFlags.HAS_COLOUR)
      
       
      Parameters:
      flags - The flags we are looking for