org.apache.openejb.core.cmp
Class AbstractKeyGenerator

java.lang.Object
  extended by org.apache.openejb.core.cmp.AbstractKeyGenerator
All Implemented Interfaces:
KeyGenerator
Direct Known Subclasses:
ComplexKeyGenerator, SimpleKeyGenerator

public abstract class AbstractKeyGenerator
extends Object
implements KeyGenerator


Constructor Summary
AbstractKeyGenerator()
           
 
Method Summary
static Field getField(Class clazz, String fieldName)
           
static Object getFieldValue(Field field, Object object)
           
static boolean isValidPkField(Field field)
           
static void setFieldValue(Field field, Object object, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.openejb.core.cmp.KeyGenerator
getPrimaryKey
 

Constructor Detail

AbstractKeyGenerator

public AbstractKeyGenerator()
Method Detail

isValidPkField

public static boolean isValidPkField(Field field)

getField

public static Field getField(Class clazz,
                             String fieldName)
                      throws OpenEJBException
Throws:
OpenEJBException

getFieldValue

public static Object getFieldValue(Field field,
                                   Object object)
                            throws javax.ejb.EJBException
Throws:
javax.ejb.EJBException

setFieldValue

public static void setFieldValue(Field field,
                                 Object object,
                                 Object value)
                          throws javax.ejb.EJBException
Throws:
javax.ejb.EJBException


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