wt.query
Class DateExpression

java.lang.Object
  extended by wt.query.ConstantExpression
      extended by wt.query.DateExpression
All Implemented Interfaces:
Externalizable, Serializable, ColumnExpression, Expression, OrderByExpression, RelationalExpression

public class DateExpression
extends ConstantExpression
implements Externalizable

This class represents a date constant in a SQL statement. This subclass of ConstantExpression is necessary to provide the special handling for date values. The java date values are converted to a string representation and used within a TO_DATE() SQL function when used in SQL statements.

Supported API: true

Extendable: false

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface wt.query.ColumnExpression
COLUMN_ALIAS
 
Method Summary
static ColumnExpression newExpression(Object a_value, String a_javaType)
          Create a new Expression.
 
Methods inherited from class wt.query.ConstantExpression
getColumnAlias, getValue, isUseBind, isUseEscape, newExpression, setColumnAlias, setUseBind, setUseEscape
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

newExpression

public static ColumnExpression newExpression(Object a_value,
                                             String a_javaType)
Create a new Expression.

Supported API: true

Parameters:
a_value - Specifies the data constant value.
a_javaType - Specifies the Java type of the value.
Returns:
ColumnExpression