com.triactive.jdo.store.sql.expr
Class ObjectReferenceExpression

java.lang.Object
  extended bycom.triactive.jdo.store.sql.expr.AbstractSqlExpression
      extended bycom.triactive.jdo.store.sql.expr.ObjectExpression
          extended bycom.triactive.jdo.store.sql.expr.ObjectReferenceExpression
All Implemented Interfaces:
SqlExpression, StatementTextGenerator

public class ObjectReferenceExpression
extends ObjectExpression


Nested Class Summary
 
Nested classes inherited from class com.triactive.jdo.store.sql.expr.AbstractSqlExpression
AbstractSqlExpression.Body, AbstractSqlExpression.CompoundExpression, AbstractSqlExpression.SimpleColumnReference, AbstractSqlExpression.SubqueryExpression
 
Field Summary
 
Fields inherited from class com.triactive.jdo.store.sql.expr.AbstractSqlExpression
body, qs
 
Constructor Summary
ObjectReferenceExpression(QueryStatement.QueryColumn refQsc)
           
 
Method Summary
 SqlExpression accessField(java.lang.String fieldName)
          Returns a new expression representing "this.fieldName".
 SqlExpression cast(java.lang.Class castType)
          Returns a new expression representing this expression cast to the given data type.
 java.lang.Class getJavaType()
          Returns the corresponding Java type of this expression.
 
Methods inherited from class com.triactive.jdo.store.sql.expr.ObjectExpression
eq, lastPartOf, noteq
 
Methods inherited from class com.triactive.jdo.store.sql.expr.AbstractSqlExpression
add, and, callMethod, com, div, eor, getColumnMapping, getMapping, getQueryStatement, getReferencedColumns, gt, gteq, innermostQuery, innermostQuery, ior, lt, lteq, mod, mul, neg, newBody, newBody, newBody, newBody, newBody, newBody, newResultExpression, newSubqueryBody, not, select, setMapping, sub, toStatementText, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ObjectReferenceExpression

public ObjectReferenceExpression(QueryStatement.QueryColumn refQsc)
Method Detail

getJavaType

public java.lang.Class getJavaType()
Description copied from interface: SqlExpression
Returns the corresponding Java type of this expression. This is the type that would (should) be produced if loading a result value of the expression into a Java object.

Specified by:
getJavaType in interface SqlExpression
Overrides:
getJavaType in class AbstractSqlExpression

cast

public SqlExpression cast(java.lang.Class castType)
Description copied from interface: SqlExpression
Returns a new expression representing this expression cast to the given data type.

Specified by:
cast in interface SqlExpression
Overrides:
cast in class AbstractSqlExpression

accessField

public SqlExpression accessField(java.lang.String fieldName)
Description copied from interface: SqlExpression
Returns a new expression representing "this.fieldName".

Specified by:
accessField in interface SqlExpression
Overrides:
accessField in class AbstractSqlExpression


Copyright 2001-2007 The TJDO Project All Rights Reserved.