org.apache.openejb.core.cmp.cmp2
Class EjbSelect

java.lang.Object
  extended by org.apache.openejb.core.cmp.cmp2.EjbSelect

public class EjbSelect
extends java.lang.Object

DO NOT REFACTOR THIS CLASS. This class is referenced directly by generated code. The execute_xxxx() methods below are used for executing the meat of the generated ejbSelectxxxx methods. Primitive types convert and return the return type directly and the generated method will give the correct return instruction. Reference types are resolved using the execute_Object() method, and the generated code is responsible for casting the return value to the proper return type.


Constructor Summary
EjbSelect()
           
 
Method Summary
static boolean execute_boolean(java.lang.Object di, java.lang.String methodSignature, java.lang.Object... args)
           
static byte execute_byte(java.lang.Object di, java.lang.String methodSignature, java.lang.Object... args)
           
static char execute_char(java.lang.Object di, java.lang.String methodSignature, java.lang.Object... args)
           
static double execute_double(java.lang.Object di, java.lang.String methodSignature, java.lang.Object... args)
           
static float execute_float(java.lang.Object di, java.lang.String methodSignature, java.lang.Object... args)
           
static int execute_int(java.lang.Object di, java.lang.String methodSignature, java.lang.Object... args)
           
static long execute_long(java.lang.Object di, java.lang.String methodSignature, java.lang.Object... args)
           
static java.lang.Object execute_Object(java.lang.Object di, java.lang.String methodSignature, java.lang.String returnType, java.lang.Object... args)
          The single execution stub for all non-primitive select operations.
static short execute_short(java.lang.Object di, java.lang.String methodSignature, java.lang.Object... args)
           
static void execute_void(java.lang.Object di, java.lang.String methodSignature, java.lang.Object... args)
          Perform a select operation when the return value is a void.
static java.lang.reflect.Method getSelectMethod(java.lang.Class<?> returnType)
          Retrieve the execution stub for the specified return type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EjbSelect

public EjbSelect()
Method Detail

getSelectMethod

public static java.lang.reflect.Method getSelectMethod(java.lang.Class<?> returnType)
Retrieve the execution stub for the specified return type. If this is one of the primitive types, the stub will directly return the primitive value. All reference types get mapped to the generic Object return type, so they'll need to be cast to the appropriate class by the generated wrapper method.

Parameters:
returnType - The class of the return type.
Returns:
The method to be used to process the method invocation.

execute_void

public static void execute_void(java.lang.Object di,
                                java.lang.String methodSignature,
                                java.lang.Object... args)
                         throws javax.ejb.FinderException
Perform a select operation when the return value is a void. This one is slightly different from the rest, as the container operation performed is an update() rather than a select() because there's no value to return.

Parameters:
di - The ejb object we're executing on behalf of.
methodSignature - The signature of the selectxxxx method being invoked.
args - The arguments to the select. These need to match the method signature.
Throws:
javax.ejb.FinderException

execute_Object

public static java.lang.Object execute_Object(java.lang.Object di,
                                              java.lang.String methodSignature,
                                              java.lang.String returnType,
                                              java.lang.Object... args)
                                       throws javax.ejb.FinderException
The single execution stub for all non-primitive select operations. This method has an additional returnType parameter used to instantiate the return value.

Parameters:
di - The EJB object we're operating against.
methodSignature - The signature of the ejbSelectxxxx method.
returnType - The return type signature of the method.
args - The select arguments.
Returns:
An object of the specified type...which might be one of the collection types.
Throws:
javax.ejb.FinderException

execute_char

public static char execute_char(java.lang.Object di,
                                java.lang.String methodSignature,
                                java.lang.Object... args)
                         throws javax.ejb.FinderException
Throws:
javax.ejb.FinderException

execute_byte

public static byte execute_byte(java.lang.Object di,
                                java.lang.String methodSignature,
                                java.lang.Object... args)
                         throws javax.ejb.FinderException
Throws:
javax.ejb.FinderException

execute_boolean

public static boolean execute_boolean(java.lang.Object di,
                                      java.lang.String methodSignature,
                                      java.lang.Object... args)
                               throws javax.ejb.FinderException
Throws:
javax.ejb.FinderException

execute_short

public static short execute_short(java.lang.Object di,
                                  java.lang.String methodSignature,
                                  java.lang.Object... args)
                           throws javax.ejb.FinderException
Throws:
javax.ejb.FinderException

execute_int

public static int execute_int(java.lang.Object di,
                              java.lang.String methodSignature,
                              java.lang.Object... args)
                       throws javax.ejb.FinderException
Throws:
javax.ejb.FinderException

execute_long

public static long execute_long(java.lang.Object di,
                                java.lang.String methodSignature,
                                java.lang.Object... args)
                         throws javax.ejb.FinderException
Throws:
javax.ejb.FinderException

execute_float

public static float execute_float(java.lang.Object di,
                                  java.lang.String methodSignature,
                                  java.lang.Object... args)
                           throws javax.ejb.FinderException
Throws:
javax.ejb.FinderException

execute_double

public static double execute_double(java.lang.Object di,
                                    java.lang.String methodSignature,
                                    java.lang.Object... args)
                             throws javax.ejb.FinderException
Throws:
javax.ejb.FinderException


Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.