com.caucho.amber.cfg
Class AbstractConfigIntrospector

java.lang.Object
  extended by com.caucho.amber.cfg.AbstractConfigIntrospector
Direct Known Subclasses:
BaseConfigIntrospector

public abstract class AbstractConfigIntrospector
extends java.lang.Object

Abstract introspector for orm.xml and annotations.


Constructor Summary
AbstractConfigIntrospector()
           
 
Method Summary
protected static java.lang.String loc(java.lang.reflect.Field field)
           
protected static java.lang.String loc(java.lang.reflect.Method method)
           
static java.lang.String toSqlName(java.lang.String name)
           
 void validateConstructor(java.lang.Class type)
          Checks for a valid constructor.
 void validateNonGetter(java.lang.reflect.Method method)
          Validates a non-getter method.
 void validateType(java.lang.Class type, boolean isEntity)
          Validates the bean
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractConfigIntrospector

public AbstractConfigIntrospector()
Method Detail

validateType

public void validateType(java.lang.Class type,
                         boolean isEntity)
                  throws ConfigException
Validates the bean

Throws:
ConfigException

validateConstructor

public void validateConstructor(java.lang.Class type)
                         throws ConfigException
Checks for a valid constructor.

Throws:
ConfigException

validateNonGetter

public void validateNonGetter(java.lang.reflect.Method method)
                       throws ConfigException
Validates a non-getter method.

Throws:
ConfigException

loc

protected static java.lang.String loc(java.lang.reflect.Method method)

loc

protected static java.lang.String loc(java.lang.reflect.Field field)

toSqlName

public static java.lang.String toSqlName(java.lang.String name)