/** * Create a new GREATER THAN specification for a Property. * * @param property a Property * @param value its value * * @return a new GREATER THAN specification for a Property. */ public static <T> GtSpecification<T> gt( Property<T> property, T value ) { return new GtSpecification<>( property( property ), value ); }
/** * Create a new REGULAR EXPRESSION specification for a Property using a named Variable. * * @param property a Property * @param variable a Query Variable * * @return a new REGULAR EXPRESSION specification for a Property using a named Variable. */ public static MatchesSpecification matches( Property<String> property, Variable variable ) { return new MatchesSpecification( property( property ), variable ); }
/** * Create a new LESS OR EQUALS specification for a Property. * * @param property a Property * @param value its value * * @return a new LESS OR EQUALS specification for a Property. */ public static <T> LeSpecification<T> le( Property<T> property, T value ) { return new LeSpecification<>( property( property ), value ); }
/** * Create a new LESSER THAN specification for a Property. * * @param property a Property * @param value its value * * @return a new LESSER THAN specification for a Property. */ public static <T> LtSpecification<T> lt( Property<T> property, T value ) { return new LtSpecification<>( property( property ), value ); }
/** * Create a new REGULAR EXPRESSION specification for a Property. * * @param property a Property * @param regexp its value * * @return a new REGULAR EXPRESSION specification for a Property. */ public static MatchesSpecification matches( Property<String> property, String regexp ) { return new MatchesSpecification( property( property ), regexp ); }
/** * Create a new EQUALS specification for a Property. * * @param property a Property * @param value its value * * @return a new EQUALS specification for a Property. */ public static <T> EqSpecification<T> eq( Property<T> property, T value ) { return new EqSpecification<>( property( property ), value ); }
/** * Create a new GREATER OR EQUALS specification for a Property. * * @param property a Property * @param value its value * * @return a new GREATER OR EQUALS specification for a Property. */ public static <T> GeSpecification<T> ge( Property<T> property, T value ) { return new GeSpecification<>( property( property ), value ); }
/** * Create a new NULL specification for a Property. * * @param property a Property * * @return a new NULL specification for a Property. */ public static <T> PropertyNullSpecification<T> isNull( Property<T> property ) { return new PropertyNullSpecification<>( property( property ) ); }
/** * Create a new NOT EQUALS specification for a Property. * * @param property a Property * @param value its value * * @return a new NOT EQUALS specification for a Property. */ public static <T> NeSpecification<T> ne( Property<T> property, T value ) { return new NeSpecification<>( property( property ), value ); }
/** * Create a new NOT NULL specification for a Property. * * @param property a Property * * @return a new NOT NULL specification for a Property. */ public static <T> PropertyNotNullSpecification<T> isNotNull( Property<T> property ) { return new PropertyNotNullSpecification<>( property( property ) ); }
/** * Create a new LESS OR EQUALS specification for a Property using a named Variable. * * @param property a Property * @param variable a Query Variable * * @return a new LESS OR EQUALS specification for a Property using a named Variable. */ @SuppressWarnings( {"raw", "unchecked"} ) public static <T> LeSpecification<T> le( Property<T> property, Variable variable ) { return new LeSpecification( property( property ), variable ); }
/** * Create a new GREATER OR EQUALS specification for a Property using a named Variable. * * @param property a Property * @param variable a Query Variable * * @return a new GREATER OR EQUALS specification for a Property using a named Variable. */ @SuppressWarnings( {"raw", "unchecked"} ) public static <T> GeSpecification<T> ge( Property<T> property, Variable variable ) { return new GeSpecification( property( property ), variable ); }
/** * Create a new LESSER THAN specification for a Property using a named Variable. * * @param property a Property * @param variable a Query Variable * * @return a new LESSER THAN specification for a Property using a named Variable. */ @SuppressWarnings( {"raw", "unchecked"} ) public static <T> LtSpecification<T> lt( Property<T> property, Variable variable ) { return new LtSpecification( property( property ), variable ); }
/** * Create a new Query ordering segment for a Property. * * @param <T> type of the Property * @param property a Property * @param order ascending or descending * * @return a new Query ordering segment for a Property. */ public static <T> OrderBy orderBy( final Property<T> property, final OrderBy.Order order ) { return new OrderBy( property( property ), order ); }
/** * Create a new EQUALS specification for a Property using a named Variable. * * @param property a Property * @param variable a Query Variable * * @return a new EQUALS specification for a Property using a named Variable. */ @SuppressWarnings( {"raw", "unchecked"} ) public static <T> EqSpecification<T> eq( Property<T> property, Variable variable ) { return new EqSpecification( property( property ), variable ); }
/** * Create a new GREATER THAN specification for a Property using a named Variable. * * @param property a Property * @param variable a Query Variable * * @return a new GREATER THAN specification for a Property using a named Variable. */ @SuppressWarnings( {"raw", "unchecked"} ) public static <T> GtSpecification<T> gt( Property<T> property, Variable variable ) { return new GtSpecification( property( property ), variable ); }
/** * Create a new NOT EQUALS specification for a Property using a named Variable. * * @param property a Property * @param variable a Query Variable * * @return a new NOT EQUALS specification for a Property using a named Variable. */ @SuppressWarnings( {"raw", "unchecked"} ) public static <T> NeSpecification<T> ne( Property<T> property, Variable variable ) { return new NeSpecification( property( property ), variable ); }
/** * Create a new CONTAINS ALL specification for a Collection Property. * * @param collectionProperty a Collection Property * @param values its values * * @return a new CONTAINS ALL specification for a Collection Property. */ public static <T> ContainsAllSpecification<T> containsAll( Property<? extends Collection<T>> collectionProperty, Iterable<T> values ) { NullArgumentException.validateNotNull( "Values", values ); return new ContainsAllSpecification<>( property( collectionProperty ), values ); }
/** * Create a new CONTAINS specification for a Collection Property. * * @param collectionProperty a Collection Property * @param value the value * * @return a new CONTAINS specification for a Collection Property. */ public static <T> ContainsSpecification<T> contains( Property<? extends Collection<T>> collectionProperty, T value ) { NullArgumentException.validateNotNull( "Value", value ); return new ContainsSpecification<>( property( collectionProperty ), value ); }
/** * Create a new CONTAINS specification for a Collection Property using named Variables. * * @param collectionProperty a Collection Property * @param variable named Variable * * @return a new CONTAINS specification for a Collection Property using named Variables. */ @SuppressWarnings( {"raw", "unchecked"} ) public static <T> ContainsSpecification<T> contains( Property<? extends Collection<T>> collectionProperty, Variable variable ) { NullArgumentException.validateNotNull( "Variable", variable ); return new ContainsSpecification( property( collectionProperty ), variable ); }