public class Property extends AbstractProperty implements StringDataProperty, IntegralDataProperty, RealDataProperty, TemporalDataProperty
| Modifier and Type | Field and Description |
|---|---|
protected String |
alias |
protected Projection |
as |
protected SortDirection |
direction |
protected Boolean |
distinct |
protected List<Function> |
functions |
protected String |
name |
protected String |
physicalName
Stores the physical name associated with this property.
|
protected byte[] |
physicalNameBytes
Stores the physical name bytes associated with this property.
|
protected Query |
query |
protected Boolean |
values |
path, qualifiedName, typeUniqueId, uniqueId| Constructor and Description |
|---|
Property() |
Property(String name) |
Property(String name,
FunctionName function) |
Property(String name,
Path path) |
Property(String name,
Path path,
Query query) |
Property(String name,
Path path,
SortDirection direction) |
Property(String name,
Query query) |
Property(String name,
SortDirection direction) |
| Modifier and Type | Method and Description |
|---|---|
IntegralDataProperty |
abs()
Constructs a value function, which returns absolute value of the data, and
returns this data property for use in subsequent operations
|
void |
accept(QueryVisitor visitor) |
DataProperty |
asc()
Constructs a ascending ordering within this data property and returns the
data property for use in subsequent operations
|
String |
asPathString()
Returns the path qualified name for this property, i.e.
|
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
|
int |
compareTo(AbstractProperty o) |
DataProperty |
count()
Constructs a count aggregate within this data property and returns the 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.
|
boolean |
equals(Object obj) |
Expression |
exists(Query subquery) |
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
|
static Property |
forName(String name)
Factory method returning a property for the given name.
|
static Property |
forName(String name,
Path path)
Factory method returning a property for the given name and path.
|
Expression |
ge(Object value)
Returns a boolean expression where this property is greater than or
equal to the given literal.
|
String |
getAlias()
Gets the value of the alias property.
|
Projection |
getAs() |
SortDirection |
getDirection() |
List<Function> |
getFunctions() |
String |
getName()
returns the name of this property
|
String |
getPhysicalName() |
byte[] |
getPhysicalNameBytes() |
String |
getQualifiedName() |
Query |
getQuery() |
Expression |
gt(Object value)
Returns a boolean expression where this property is greater than the
given literal.
|
int |
hashCode() |
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.
|
boolean |
isValues() |
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
|
void |
setAlias(String value)
Sets the value of the alias property.
|
void |
setAs(Projection value) |
void |
setDirection(SortDirection value) |
void |
setDistinct(Boolean value) |
void |
setName(String value) |
void |
setPhysicalName(String value) |
void |
setPhysicalNameBytes(byte[] value) |
void |
setQuery(Query value) |
void |
setValues(Boolean value) |
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
|
String |
toString() |
StringDataProperty |
upperCase()
Constructs a function, which returns the upper case for the string data,
and returns this data property for use in subsequent operations
|
static WildcardProperty |
wildcard() |
static WildcardProperty |
wildcard(Path path) |
getPath, getTypeUniqueId, getUniqueId, setPath, setTypeUniqueId, setUniqueIdprotected Query query
protected Projection as
protected String name
protected Boolean values
protected Boolean distinct
protected SortDirection direction
protected String alias
protected transient String physicalName
protected transient byte[] physicalNameBytes
public Property()
public Property(String name)
public Property(String name, SortDirection direction)
public Property(String name, Path path, SortDirection direction)
public Property(String name, FunctionName function)
public static Property forName(String name)
public static Property forName(String name, Path path)
public static WildcardProperty wildcard()
public static WildcardProperty wildcard(Path path)
public Expression eq(Object value)
DataPropertyeq in interface DataPropertyvalue - the literalpublic Expression ne(Object value)
DataPropertyne in interface DataPropertyvalue - the literalpublic Expression gt(Object value)
DataPropertygt in interface DataPropertyvalue - the literalpublic Expression ge(Object value)
DataPropertyge in interface DataPropertyvalue - the literalpublic Expression lt(Object value)
DataPropertylt in interface DataPropertyvalue - the literalpublic Expression le(Object value)
DataPropertyle in interface DataPropertyvalue - the literalpublic Expression between(Object min, Object max)
DataPropertybetween in interface DataPropertymin - the minimum literalmax - the maximum literalpublic Expression like(String value)
DataPropertylike in interface DataPropertyvalue - the wildcard literalpublic Expression isNull()
DataPropertyisNull in interface DataPropertypublic Expression isNotNull()
DataPropertyisNotNull in interface DataPropertypublic Expression in(Query subquery)
DataPropertyin in interface DataPropertysubquery - the subquerypublic Expression notIn(Query subquery)
DataPropertynotIn in interface DataPropertysubquery - the subquerypublic Expression exists(Query subquery)
public Query getQuery()
public void setQuery(Query value)
public DataProperty count()
DataPropertycount in interface DataPropertypublic DataProperty min()
DataPropertymin in interface DataPropertypublic DataProperty max()
DataPropertymax in interface DataPropertypublic DataProperty sum()
DataPropertysum in interface DataPropertypublic DataProperty avg()
DataPropertyavg in interface DataPropertypublic IntegralDataProperty abs()
IntegralDataPropertyabs in interface IntegralDataPropertypublic RealDataProperty ceiling()
RealDataPropertyceiling in interface RealDataPropertypublic RealDataProperty floor()
RealDataPropertyfloor in interface RealDataPropertypublic RealDataProperty round()
RealDataPropertyround in interface RealDataPropertypublic StringDataProperty substringBefore(String value)
StringDataPropertysubstringBefore in interface StringDataPropertypublic StringDataProperty substringAfter(String value)
StringDataPropertysubstringAfter in interface StringDataPropertypublic StringDataProperty normalizeSpace()
StringDataPropertynormalizeSpace in interface StringDataPropertypublic StringDataProperty upperCase()
StringDataPropertyupperCase in interface StringDataPropertypublic StringDataProperty lowerCase()
StringDataPropertylowerCase in interface StringDataPropertypublic DataProperty asc()
DataPropertyasc in interface DataPropertypublic DataProperty desc()
DataPropertydesc in interface DataPropertypublic Projection getAs()
public void setAs(Projection value)
public String getName()
DataPropertygetName in interface DataPropertypublic void setName(String value)
public String getPhysicalName()
public void setPhysicalName(String value)
public byte[] getPhysicalNameBytes()
public void setPhysicalNameBytes(byte[] value)
public boolean isValues()
public void setValues(Boolean value)
public boolean isDistinct()
DataPropertyisDistinct in interface DataPropertyBooleanpublic void setDistinct(Boolean value)
public SortDirection getDirection()
public void setDirection(SortDirection value)
public String getAlias()
Stringpublic void setAlias(String value)
value - allowed object is Stringpublic String asPathString()
public void accept(QueryVisitor visitor)
accept in class AbstractPropertypublic String getQualifiedName()
getQualifiedName in class AbstractPropertypublic int compareTo(AbstractProperty o)
compareTo in interface Comparable<AbstractProperty>Copyright © 2021. All rights reserved.