org.plasma.query.dsl
Class DataNode

java.lang.Object
  extended by org.plasma.query.dsl.DomainObject
      extended by org.plasma.query.dsl.DomainEndpoint
          extended by org.plasma.query.dsl.DataNode
All Implemented Interfaces:
DataProperty, IntegralDataProperty, Property, RealDataProperty, StringDataProperty, TemporalDataProperty, Term

public class DataNode
extends DomainEndpoint
implements StringDataProperty, IntegralDataProperty, RealDataProperty, TemporalDataProperty

A domain query node which is a data property end point within a query graph.


Field Summary
 
Fields inherited from class org.plasma.query.dsl.DomainEndpoint
property
 
Fields inherited from class org.plasma.query.dsl.DomainObject
source, sourceProperty
 
Constructor Summary
DataNode(PathNode source, String name)
           
 
Method Summary
 IntegralDataProperty abs()
          Constructs a value function, which returns absolute value of the data, and returns this data property for use in subsequent operations
 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.
 RealDataProperty ceiling()
          Constructs a function, which returns the smallest integer that is greater than the number, and returns this data property for use in subsequent operations
 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.
 RealDataProperty floor()
          Constructs a function, which returns the largest integer that is greater than the number, and returns this data property for use in subsequent operations
 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 '*'
 StringDataProperty lowerCase()
          Constructs a function, which returns the lower case for the string data, and returns this data property for use in subsequent operations
 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.
 StringDataProperty normalizeSpace()
          Constructs a function, which removes leading and trailing spaces from the specified string, and replaces all internal sequences of white space with one and returns the result.
 Expression notIn(Query subquery)
          Returns a subquery expression, where this property is not found within the given subquery results collection.
 RealDataProperty round()
          Constructs a function, which returns the nearest integer, and returns this data property for use in subsequent operations
 StringDataProperty substringAfter(String value)
          Constructs a function, which returns the tail of the string data after the given string value occurs in it, and returns this data property for use in subsequent operations
 StringDataProperty substringBefore(String value)
          Constructs a function, which returns the start of the string data before the given string value occurs in it, and returns this data property for use in subsequent operations
 DataProperty sum()
          Constructs a summation aggregate within this data property and returns the data property for use in subsequent operations
 StringDataProperty upperCase()
          Constructs a function, which returns the upper case for the string data, and returns this data property for use in subsequent operations
 
Methods inherited from class org.plasma.query.dsl.DomainEndpoint
createPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataNode

public DataNode(PathNode source,
                String name)
Method Detail

eq

public Expression eq(Object value)
Description copied from interface: DataProperty
Returns a boolean expression where this property is equal to to the given literal.

Specified by:
eq in interface DataProperty
Parameters:
value - the literal
Returns:
the boolean expression

like

public Expression like(String value)
Description copied from interface: DataProperty
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 '*'

Specified by:
like in interface DataProperty
Parameters:
value - the wildcard literal
Returns:
the wildcard expression

between

public Expression between(Object min,
                          Object max)
Description copied from interface: DataProperty
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.

Specified by:
between in interface DataProperty
Parameters:
min - the minimum literal
max - the maximum literal
Returns:
the expression

ge

public Expression ge(Object value)
Description copied from interface: DataProperty
Returns a boolean expression where this property is greater than or equal to the given literal.

Specified by:
ge in interface DataProperty
Parameters:
value - the literal
Returns:
the boolean expression

gt

public Expression gt(Object value)
Description copied from interface: DataProperty
Returns a boolean expression where this property is greater than the given literal.

Specified by:
gt in interface DataProperty
Parameters:
value - the literal
Returns:
the boolean expression

le

public Expression le(Object value)
Description copied from interface: DataProperty
Returns a boolean expression where this property is less than or equal to the given literal.

Specified by:
le in interface DataProperty
Parameters:
value - the literal
Returns:
the boolean expression

lt

public Expression lt(Object value)
Description copied from interface: DataProperty
Returns a boolean expression where this property is less than the given literal.

Specified by:
lt in interface DataProperty
Parameters:
value - the literal
Returns:
the boolean expression

ne

public Expression ne(Object value)
Description copied from interface: DataProperty
Returns a boolean expression where this property is not equal to to the given literal.

Specified by:
ne in interface DataProperty
Parameters:
value - the literal
Returns:
the boolean expression

in

public Expression in(Query subquery)
Description copied from interface: DataProperty
Returns a subquery expression, where this property is found within the given subquery results collection.

Specified by:
in in interface DataProperty
Parameters:
subquery - the subquery
Returns:
the subquery expression

min

public DataProperty min()
Description copied from interface: DataProperty
Constructs a minimum aggregate within this data property and returns the data property for use in subsequent operations

Specified by:
min in interface DataProperty
Returns:
the data property

max

public DataProperty max()
Description copied from interface: DataProperty
Constructs a maximum aggregate within this data property and returns the data property for use in subsequent operations

Specified by:
max in interface DataProperty
Returns:
the data property

sum

public DataProperty sum()
Description copied from interface: DataProperty
Constructs a summation aggregate within this data property and returns the data property for use in subsequent operations

Specified by:
sum in interface DataProperty
Returns:
the data property

avg

public DataProperty avg()
Description copied from interface: DataProperty
Constructs a average aggregate within this data property and returns the data property for use in subsequent operations

Specified by:
avg in interface DataProperty
Returns:
the data property

abs

public IntegralDataProperty abs()
Description copied from interface: IntegralDataProperty
Constructs a value function, which returns absolute value of the data, and returns this data property for use in subsequent operations

Specified by:
abs in interface IntegralDataProperty
Returns:
this data property for use in subsequent operations

ceiling

public RealDataProperty ceiling()
Description copied from interface: RealDataProperty
Constructs a function, which returns the smallest integer that is greater than the number, and returns this data property for use in subsequent operations

Specified by:
ceiling in interface RealDataProperty
Returns:
this data property for use in subsequent operations

floor

public RealDataProperty floor()
Description copied from interface: RealDataProperty
Constructs a function, which returns the largest integer that is greater than the number, and returns this data property for use in subsequent operations

Specified by:
floor in interface RealDataProperty
Returns:
this data property for use in subsequent operations

round

public RealDataProperty round()
Description copied from interface: RealDataProperty
Constructs a function, which returns the nearest integer, and returns this data property for use in subsequent operations

Specified by:
round in interface RealDataProperty
Returns:
this data property for use in subsequent operations

substringBefore

public StringDataProperty substringBefore(String value)
Description copied from interface: StringDataProperty
Constructs a function, which returns the start of the string data before the given string value occurs in it, and returns this data property for use in subsequent operations

Specified by:
substringBefore in interface StringDataProperty
Returns:
this data property for use in subsequent operations

substringAfter

public StringDataProperty substringAfter(String value)
Description copied from interface: StringDataProperty
Constructs a function, which returns the tail of the string data after the given string value occurs in it, and returns this data property for use in subsequent operations

Specified by:
substringAfter in interface StringDataProperty
Returns:
this data property for use in subsequent operations

upperCase

public StringDataProperty upperCase()
Description copied from interface: StringDataProperty
Constructs a function, which returns the upper case for the string data, and returns this data property for use in subsequent operations

Specified by:
upperCase in interface StringDataProperty
Returns:
this data property for use in subsequent operations

lowerCase

public StringDataProperty lowerCase()
Description copied from interface: StringDataProperty
Constructs a function, which returns the lower case for the string data, and returns this data property for use in subsequent operations

Specified by:
lowerCase in interface StringDataProperty
Returns:
this data property for use in subsequent operations

normalizeSpace

public StringDataProperty normalizeSpace()
Description copied from interface: StringDataProperty
Constructs a function, which removes leading and trailing spaces from the specified string, and replaces all internal sequences of white space with one and returns the result.

Specified by:
normalizeSpace in interface StringDataProperty
Returns:
this data property for use in subsequent operations

asc

public DataProperty asc()
Description copied from interface: DataProperty
Constructs a ascending ordering within this data property and returns the data property for use in subsequent operations

Specified by:
asc in interface DataProperty
Returns:
the data property

desc

public DataProperty desc()
Description copied from interface: DataProperty
Constructs a descending ordering within this data property and returns the data property for use in subsequent operations

Specified by:
desc in interface DataProperty
Returns:
the data property

isNotNull

public Expression isNotNull()
Description copied from interface: DataProperty
Returns a boolean expression where this property is not equal to null.

Specified by:
isNotNull in interface DataProperty
Returns:
the boolean expression

isNull

public Expression isNull()
Description copied from interface: DataProperty
Returns a boolean expression where this property is equal to null.

Specified by:
isNull in interface DataProperty
Returns:
the boolean expression

notIn

public Expression notIn(Query subquery)
Description copied from interface: DataProperty
Returns a subquery expression, where this property is not found within the given subquery results collection.

Specified by:
notIn in interface DataProperty
Parameters:
subquery - the subquery
Returns:
the subquery expression

getName

public String getName()
Description copied from interface: DataProperty
returns the name of this property

Specified by:
getName in interface DataProperty
Returns:

isDistinct

public boolean isDistinct()
Description copied from interface: DataProperty
Gets the value of the distinct property.

Specified by:
isDistinct in interface DataProperty
Returns:
possible object is Boolean


Copyright © 2014. All rights reserved.