org.plasma.query
Interface DataProperty

All Superinterfaces:
Property, Term
All Known Implementing Classes:
DataNode, Property

public interface DataProperty
extends Property

A non-reference property with a type which is a data type.


Method Summary
 DataProperty asc()
          Constructs a ascending ordering within this data property and returns the data property for use in subsequent operations
 DataProperty avg()
          Constructs a average aggregate within this data property and returns the data property for use in subsequent operations
 Expression between(Object min, Object max)
          Returns a 6 term expression, where this property is greater than or equal to the given 'min' literal, and is less than or equal tothe given 'max' literal.
 DataProperty desc()
          Constructs a descending ordering within this data property and returns the data property for use in subsequent operations
 Expression eq(Object value)
          Returns a boolean expression where this property is equal to to the given literal.
 Expression ge(Object value)
          Returns a boolean expression where this property is greater than or equal to the given literal.
 String getName()
          returns the name of this property
 Expression gt(Object value)
          Returns a boolean expression where this property is greater than the given literal.
 Expression in(Query subquery)
          Returns a subquery expression, where this property is found within the given subquery results collection.
 boolean isDistinct()
          Gets the value of the distinct property.
 Expression isNotNull()
          Returns a boolean expression where this property is not equal to null.
 Expression isNull()
          Returns a boolean expression where this property is equal to null.
 Expression le(Object value)
          Returns a boolean expression where this property is less than or equal to the given literal.
 Expression like(String value)
          Returns a wildcard expression where this property is like the given literal, and the literal may contain any number of wildcards, the wildcard character being '*'
 Expression lt(Object value)
          Returns a boolean expression where this property is less than the given literal.
 DataProperty max()
          Constructs a maximum aggregate within this data property and returns the data property for use in subsequent operations
 DataProperty min()
          Constructs a minimum aggregate within this data property and returns the data property for use in subsequent operations
 Expression ne(Object value)
          Returns a boolean expression where this property is not equal to to the given literal.
 Expression notIn(Query subquery)
          Returns a subquery expression, where this property is not found within the given subquery results collection.
 DataProperty sum()
          Constructs a summation aggregate within this data property and returns the data property for use in subsequent operations
 

Method Detail

eq

Expression eq(Object value)
Returns a boolean expression where this property is equal to to the given literal.

Parameters:
value - the literal
Returns:
the boolean expression

ne

Expression ne(Object value)
Returns a boolean expression where this property is not equal to to the given literal.

Parameters:
value - the literal
Returns:
the boolean expression

gt

Expression gt(Object value)
Returns a boolean expression where this property is greater than the given literal.

Parameters:
value - the literal
Returns:
the boolean expression

ge

Expression ge(Object value)
Returns a boolean expression where this property is greater than or equal to the given literal.

Parameters:
value - the literal
Returns:
the boolean expression

lt

Expression lt(Object value)
Returns a boolean expression where this property is less than the given literal.

Parameters:
value - the literal
Returns:
the boolean expression

le

Expression le(Object value)
Returns a boolean expression where this property is less than or equal to the given literal.

Parameters:
value - the literal
Returns:
the boolean expression

between

Expression between(Object min,
                   Object max)
Returns a 6 term expression, where this property is greater than or equal to the given 'min' literal, and is less than or equal tothe given 'max' literal.

Parameters:
min - the minimum literal
max - the maximum literal
Returns:
the expression

like

Expression like(String value)
Returns a wildcard expression where this property is like the given literal, and the literal may contain any number of wildcards, the wildcard character being '*'

Parameters:
value - the wildcard literal
Returns:
the wildcard expression

isNull

Expression isNull()
Returns a boolean expression where this property is equal to null.

Parameters:
value - the literal
Returns:
the boolean expression

isNotNull

Expression isNotNull()
Returns a boolean expression where this property is not equal to null.

Parameters:
value - the literal
Returns:
the boolean expression

in

Expression in(Query subquery)
Returns a subquery expression, where this property is found within the given subquery results collection.

Parameters:
subquery - the subquery
Returns:
the subquery expression

notIn

Expression notIn(Query subquery)
Returns a subquery expression, where this property is not found within the given subquery results collection.

Parameters:
subquery - the subquery
Returns:
the subquery expression

min

DataProperty min()
Constructs a minimum aggregate within this data property and returns the data property for use in subsequent operations

Returns:
the data property

max

DataProperty max()
Constructs a maximum aggregate within this data property and returns the data property for use in subsequent operations

Returns:
the data property

sum

DataProperty sum()
Constructs a summation aggregate within this data property and returns the data property for use in subsequent operations

Returns:
the data property

avg

DataProperty avg()
Constructs a average aggregate within this data property and returns the data property for use in subsequent operations

Returns:
the data property

asc

DataProperty asc()
Constructs a ascending ordering within this data property and returns the data property for use in subsequent operations

Returns:
the data property

desc

DataProperty desc()
Constructs a descending ordering within this data property and returns the data property for use in subsequent operations

Returns:
the data property

getName

String getName()
returns the name of this property

Returns:

isDistinct

boolean isDistinct()
Gets the value of the distinct property.

Returns:
possible object is Boolean


Copyright © 2013. All rights reserved.