com.triactive.jdo.store.query.result
Class ResultByConstructor

java.lang.Object
  extended bycom.triactive.jdo.store.query.result.ResultByConstructor
All Implemented Interfaces:
ResultExpression

public class ResultByConstructor
extends java.lang.Object
implements ResultExpression


Constructor Summary
ResultByConstructor(java.lang.Class resultClass, java.util.List ctorArgs)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultByConstructor

public ResultByConstructor(java.lang.Class resultClass,
                           java.util.List ctorArgs)
                    throws java.lang.NoSuchMethodException
Method Detail

getResultType

public java.lang.Class getResultType()
Description copied from interface: ResultExpression
Returns the type of objects produced by this result expression.

Specified by:
getResultType in interface ResultExpression
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
Description copied from interface: ResultExpression
Generates a result object factory to convert expression values from the specified SQL result set into Java objects.

Specified by:
newResultObjectFactory in interface ResultExpression
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.