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

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
Direct Known Subclasses:
JavaxTimeLiteral

public class StringTemporalExpression
extends DelegatedExpression

Expression representing a field/property that can be stored as a String or as a Temporal. For example a org.joda.time.DateTime can be represented using this. Delegates any operation to the same operation on the delegate.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.datanucleus.store.rdbms.sql.expression.SQLExpression
SQLExpression.ColumnExpressionList
 
Field Summary
 
Fields inherited from class org.datanucleus.store.rdbms.sql.expression.DelegatedExpression
delegate
 
Fields inherited from class org.datanucleus.store.rdbms.sql.expression.SQLExpression
LOCALISER, lowestOperator, mapping, parameterName, st, stmt, subExprs, table
 
Constructor Summary
StringTemporalExpression(SQLStatement stmt, SQLTable table, org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping)
          Constructor for an expression for a field/property represented as String/Temporal.
 
Method Summary
 
Methods inherited from class org.datanucleus.store.rdbms.sql.expression.DelegatedExpression
add, div, eq, ge, getDelegate, gt, invoke, le, lt, mod, mul, ne, 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, isParameter, neg, not, setJavaTypeMapping
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringTemporalExpression

public StringTemporalExpression(SQLStatement stmt,
                                SQLTable table,
                                org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping)
Constructor for an expression for a field/property represented as String/Temporal.

Parameters:
stmt - The SQL statement
table - Table
mapping - Mapping


Copyright © 2012. All Rights Reserved.