org.datanucleus.store.rdbms.sql.expression
Class JodaLiteral

java.lang.Object
  extended by org.datanucleus.store.rdbms.sql.expression.SQLExpression
      extended by org.datanucleus.store.rdbms.sql.expression.DelegatedExpression
          extended by org.datanucleus.store.rdbms.sql.expression.StringTemporalExpression
              extended by org.datanucleus.store.rdbms.sql.expression.JodaLiteral
All Implemented Interfaces:
org.datanucleus.store.rdbms.sql.expression.SQLLiteral
Direct Known Subclasses:
JodaDateTimeLiteral, JodaDurationLiteral, JodaLocalDateLiteral, JodaLocalTimeLiteral

public abstract class JodaLiteral
extends org.datanucleus.store.rdbms.sql.expression.StringTemporalExpression
implements org.datanucleus.store.rdbms.sql.expression.SQLLiteral

Abstract representation of a JodaTime literal (to be extended by specific cases).


Nested Class Summary
 
Nested classes/interfaces inherited from class org.datanucleus.store.rdbms.sql.expression.SQLExpression
org.datanucleus.store.rdbms.sql.expression.SQLExpression.ColumnExpressionList
 
Field Summary
 
Fields inherited from class org.datanucleus.store.rdbms.sql.expression.SQLExpression
LOCALISER, lowestOperator, mapping, parameterName, st, stmt, subExprs, table
 
Constructor Summary
JodaLiteral(org.datanucleus.store.rdbms.sql.SQLStatement stmt, org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping, java.lang.String parameterName)
          Constructor for an DateTime literal with a value.
 
Method Summary
 org.datanucleus.store.rdbms.sql.expression.BooleanExpression eq(org.datanucleus.store.rdbms.sql.expression.SQLExpression expr)
           
 org.datanucleus.store.rdbms.sql.expression.BooleanExpression ge(org.datanucleus.store.rdbms.sql.expression.SQLExpression expr)
           
 org.datanucleus.store.rdbms.sql.expression.BooleanExpression gt(org.datanucleus.store.rdbms.sql.expression.SQLExpression expr)
           
 boolean isParameter()
           
 org.datanucleus.store.rdbms.sql.expression.BooleanExpression le(org.datanucleus.store.rdbms.sql.expression.SQLExpression expr)
           
 org.datanucleus.store.rdbms.sql.expression.BooleanExpression lt(org.datanucleus.store.rdbms.sql.expression.SQLExpression expr)
           
 org.datanucleus.store.rdbms.sql.expression.BooleanExpression ne(org.datanucleus.store.rdbms.sql.expression.SQLExpression expr)
           
 void setNotParameter()
           
 
Methods inherited from class org.datanucleus.store.rdbms.sql.expression.DelegatedExpression
add, div, getDelegate, invoke, mod, mul, sub, toSQLText
 
Methods inherited from class org.datanucleus.store.rdbms.sql.expression.SQLExpression
and, cast, com, distinct, encloseInParentheses, eor, getJavaTypeMapping, getLowestOperator, getNumberOfSubExpressions, getParameterName, getSQLStatement, getSQLTable, getSubExpression, in, ior, is, neg, not, setJavaTypeMapping
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.datanucleus.store.rdbms.sql.expression.SQLLiteral
getValue
 

Constructor Detail

JodaLiteral

public JodaLiteral(org.datanucleus.store.rdbms.sql.SQLStatement stmt,
                   org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping,
                   java.lang.String parameterName)
Constructor for an DateTime literal with a value.

Parameters:
stmt - the SQL statement
mapping - the mapping
parameterName - Name of the parameter that this represents if any (as JDBC "?")
Method Detail

eq

public org.datanucleus.store.rdbms.sql.expression.BooleanExpression eq(org.datanucleus.store.rdbms.sql.expression.SQLExpression expr)
Overrides:
eq in class org.datanucleus.store.rdbms.sql.expression.DelegatedExpression

ge

public org.datanucleus.store.rdbms.sql.expression.BooleanExpression ge(org.datanucleus.store.rdbms.sql.expression.SQLExpression expr)
Overrides:
ge in class org.datanucleus.store.rdbms.sql.expression.DelegatedExpression

gt

public org.datanucleus.store.rdbms.sql.expression.BooleanExpression gt(org.datanucleus.store.rdbms.sql.expression.SQLExpression expr)
Overrides:
gt in class org.datanucleus.store.rdbms.sql.expression.DelegatedExpression

le

public org.datanucleus.store.rdbms.sql.expression.BooleanExpression le(org.datanucleus.store.rdbms.sql.expression.SQLExpression expr)
Overrides:
le in class org.datanucleus.store.rdbms.sql.expression.DelegatedExpression

lt

public org.datanucleus.store.rdbms.sql.expression.BooleanExpression lt(org.datanucleus.store.rdbms.sql.expression.SQLExpression expr)
Overrides:
lt in class org.datanucleus.store.rdbms.sql.expression.DelegatedExpression

ne

public org.datanucleus.store.rdbms.sql.expression.BooleanExpression ne(org.datanucleus.store.rdbms.sql.expression.SQLExpression expr)
Overrides:
ne in class org.datanucleus.store.rdbms.sql.expression.DelegatedExpression

isParameter

public boolean isParameter()
Overrides:
isParameter in class org.datanucleus.store.rdbms.sql.expression.SQLExpression

setNotParameter

public void setNotParameter()
Specified by:
setNotParameter in interface org.datanucleus.store.rdbms.sql.expression.SQLLiteral


Copyright © 2011. All Rights Reserved.