|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jpox.store.expression.ScalarExpression
org.jpox.store.expression.SqlTemporalExpression
public class SqlTemporalExpression
Representation of an expression with an SQL time type (SQLDate, SQLTime, SQLTimestamp)
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jpox.store.expression.ScalarExpression |
|---|
ScalarExpression.DyadicOperator, ScalarExpression.ExpressionList, ScalarExpression.FieldExpression, ScalarExpression.IllegalArgumentTypeException, ScalarExpression.IllegalOperationException, ScalarExpression.MethodInvocationException, ScalarExpression.MonadicOperator, ScalarExpression.Operator |
| Field Summary |
|---|
| Fields inherited from class org.jpox.store.expression.ScalarExpression |
|---|
aliasIdentifier, expressionList, FILTER, LOCALISER, lowestOperator, mapping, OP_ADD, OP_AND, OP_BETWEEN, OP_COM, OP_CONCAT, OP_DIV, OP_EQ, OP_GT, OP_GTEQ, OP_IN, OP_IS, OP_ISNOT, OP_LIKE, OP_LT, OP_LTEQ, OP_MOD, OP_MUL, OP_NEG, OP_NOT, OP_NOTEQ, OP_OR, OP_SUB, PROJECTION, qs, st, te |
| Constructor Summary | |
|---|---|
protected |
SqlTemporalExpression(QueryExpression qs)
|
|
SqlTemporalExpression(QueryExpression qs,
JavaTypeMapping mapping,
LogicSetExpression te)
|
|
SqlTemporalExpression(ScalarExpression operand1,
ScalarExpression.DyadicOperator op,
ScalarExpression operand2)
Performs a function on two arguments. |
|
SqlTemporalExpression(java.lang.String functionName,
java.util.List args)
Generates statement as e.g. |
| Method Summary | |
|---|---|
BooleanExpression |
eq(ScalarExpression expr)
Equality operator (equals to) |
NumericExpression |
getDayMethod()
Method to return an expression for the day of the month (for this date). |
NumericExpression |
getHourMethod()
Method to return an expression for the hour (for this time). |
NumericExpression |
getMinuteMethod()
Method to return an expression for the minute (for this time). |
NumericExpression |
getMonthMethod()
Method to return an expression for the month (for this date). |
NumericExpression |
getSecondMethod()
Method to return an expression for the second (for this time). |
NumericExpression |
getYearMethod()
Method to return an expression for the year (for this date). |
BooleanExpression |
gt(ScalarExpression expr)
Relational operator (greater than) |
BooleanExpression |
gteq(ScalarExpression expr)
Relational operator (greater than or equals) |
BooleanExpression |
in(ScalarExpression expr)
In expression. |
BooleanExpression |
lt(ScalarExpression expr)
Relational operator (lower than) |
BooleanExpression |
lteq(ScalarExpression expr)
Relational operator (lower than or equals) |
BooleanExpression |
noteq(ScalarExpression expr)
Equality operator (not equals to) |
| Methods inherited from class org.jpox.store.expression.ScalarExpression |
|---|
accessField, add, and, as, callMethod, cast, com, div, encloseWithInParentheses, eor, equals, getAlias, getExpressionList, getLogicSetExpression, getMapping, getNonAliasExpression, getQueryExpression, instanceOf, ior, mod, mul, neg, not, sub, toStatementText, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected SqlTemporalExpression(QueryExpression qs)
public SqlTemporalExpression(QueryExpression qs,
JavaTypeMapping mapping,
LogicSetExpression te)
qs - the QueryExpressionmapping - the mapping associated to this expressionte - the TableExpression where this expression refers to
public SqlTemporalExpression(java.lang.String functionName,
java.util.List args)
functionName - args - ScalarExpression list
public SqlTemporalExpression(ScalarExpression operand1,
ScalarExpression.DyadicOperator op,
ScalarExpression operand2)
operand1 - the first expressionop - the operator between operandsoperand2 - the second expression| Method Detail |
|---|
public BooleanExpression eq(ScalarExpression expr)
ScalarExpression
eq in class ScalarExpressionexpr - the right-hand operand
public BooleanExpression noteq(ScalarExpression expr)
ScalarExpression
noteq in class ScalarExpressionexpr - the right-hand operand
public BooleanExpression lt(ScalarExpression expr)
ScalarExpression
lt in class ScalarExpressionexpr - the right-hand operand
public BooleanExpression lteq(ScalarExpression expr)
ScalarExpression
lteq in class ScalarExpressionexpr - the right-hand operand
public BooleanExpression gt(ScalarExpression expr)
ScalarExpression
gt in class ScalarExpressionexpr - the right-hand operand
public BooleanExpression gteq(ScalarExpression expr)
ScalarExpression
gteq in class ScalarExpressionexpr - the right-hand operand
public BooleanExpression in(ScalarExpression expr)
ScalarExpressionexpr
in in class ScalarExpressionexpr - the right-hand expression
public NumericExpression getDayMethod()
public NumericExpression getMonthMethod()
public NumericExpression getYearMethod()
public NumericExpression getHourMethod()
public NumericExpression getMinuteMethod()
public NumericExpression getSecondMethod()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||