com.triactive.jdo.store.sql.expr
Interface ResultExpression

All Known Implementing Classes:
FcoResultExpression, NamedResultExpression, ResultAsOther, ResultByConstructor

public interface ResultExpression


Method Summary
 java.lang.Class getResultType()
          Returns the type of objects produced by this result expression.
 ResultObjectFactory newResultObjectFactory(java.sql.ResultSet rs)
          Generates a result object factory to convert expression values from the specified SQL result set into Java objects.
 

Method Detail

getResultType

public java.lang.Class getResultType()
Returns the type of objects produced by this result expression.

Returns:
The type of objects produced by this result expression. Never returns a primitive type.

newResultObjectFactory

public ResultObjectFactory newResultObjectFactory(java.sql.ResultSet rs)
                                           throws java.sql.SQLException
Generates a result object factory to convert expression values from the specified SQL result set into Java objects.

Parameters:
rs - the result set containing the columns backing the result expression
Returns:
a new factory that can produce result Java objects of the correct type
Throws:
java.sql.SQLException - if a database error occurs


Copyright 2001-2007 The TJDO Project All Rights Reserved.