com.caucho.amber.cfg
Class BaseConfigIntrospector

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

public class BaseConfigIntrospector
extends AbstractConfigIntrospector

Base concrete introspector for orm.xml and annotations.


Constructor Summary
BaseConfigIntrospector(AmberConfigManager manager)
          Creates the introspector.
 
Method Summary
 void configureDependencies()
          Completes all partial bean introspection.
 void configureLinks()
          Completes all partial bean introspection.
 EntityConfig getEntityConfig(java.lang.String className)
          Returns the entity config for a class name.
static JoinColumn getJoinColumn(JoinColumn[] columnsAnn, java.lang.String keyName)
           
static JoinColumn getJoinColumn(JoinColumns joinColumns, java.lang.String keyName)
           
static PrimaryKeyJoinColumn getJoinColumn(PrimaryKeyJoinColumn[] columnsAnn, java.lang.String keyName)
           
 MappedSuperclassConfig getMappedSuperclassConfig(java.lang.String className)
          Returns the mapped superclass config for a class name.
 void initMetaData(java.util.ArrayList<EntityMappingsConfig> entityMappingsList, AmberPersistenceUnit persistenceUnit)
          Initializes the persistence unit meta data: default listeners and so on.
 void introspectCallbacks(AbstractEnhancedType type, java.lang.reflect.Method method)
          Introspects the callbacks.
 void introspectCallbacks(java.lang.Class type, EntityType entityType)
          Introspects the callbacks.
 void introspectDefaultListener(EntityListenerConfig listener, AmberPersistenceUnit persistenceUnit)
           
 void introspectEntityListener(java.lang.Class type, AmberPersistenceUnit persistenceUnit, EntityType sourceType, java.lang.String sourceClassName)
           
 void introspectEntityListeners(java.lang.Class type, EntityType entityType, AmberPersistenceUnit persistenceUnit)
           
 void introspectListener(java.lang.Class type, ListenerType listenerType)
           
 void setEntityMappingsList(java.util.ArrayList<EntityMappingsConfig> entityMappingsList)
          Sets the entity mappings list.
 
Methods inherited from class com.caucho.amber.cfg.AbstractConfigIntrospector
loc, loc, toSqlName, validateConstructor, validateNonGetter, validateType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseConfigIntrospector

public BaseConfigIntrospector(AmberConfigManager manager)
Creates the introspector.

Method Detail

setEntityMappingsList

public void setEntityMappingsList(java.util.ArrayList<EntityMappingsConfig> entityMappingsList)
Sets the entity mappings list.


getEntityConfig

public EntityConfig getEntityConfig(java.lang.String className)
Returns the entity config for a class name.


getMappedSuperclassConfig

public MappedSuperclassConfig getMappedSuperclassConfig(java.lang.String className)
Returns the mapped superclass config for a class name.


initMetaData

public void initMetaData(java.util.ArrayList<EntityMappingsConfig> entityMappingsList,
                         AmberPersistenceUnit persistenceUnit)
                  throws ConfigException
Initializes the persistence unit meta data: default listeners and so on.

Throws:
ConfigException

introspectDefaultListener

public void introspectDefaultListener(EntityListenerConfig listener,
                                      AmberPersistenceUnit persistenceUnit)
                               throws ConfigException
Throws:
ConfigException

introspectEntityListeners

public void introspectEntityListeners(java.lang.Class type,
                                      EntityType entityType,
                                      AmberPersistenceUnit persistenceUnit)
                               throws ConfigException
Throws:
ConfigException

introspectEntityListener

public void introspectEntityListener(java.lang.Class type,
                                     AmberPersistenceUnit persistenceUnit,
                                     EntityType sourceType,
                                     java.lang.String sourceClassName)
                              throws ConfigException
Throws:
ConfigException

introspectListener

public void introspectListener(java.lang.Class type,
                               ListenerType listenerType)
                        throws ConfigException
Throws:
ConfigException

introspectCallbacks

public void introspectCallbacks(java.lang.Class type,
                                EntityType entityType)
                         throws ConfigException
Introspects the callbacks.

Throws:
ConfigException

introspectCallbacks

public void introspectCallbacks(AbstractEnhancedType type,
                                java.lang.reflect.Method method)
                         throws ConfigException
Introspects the callbacks.

Throws:
ConfigException

configureLinks

public void configureLinks()
                    throws ConfigException
Completes all partial bean introspection.

Throws:
ConfigException

configureDependencies

public void configureDependencies()
                           throws ConfigException
Completes all partial bean introspection.

Throws:
ConfigException

getJoinColumn

public static JoinColumn getJoinColumn(JoinColumns joinColumns,
                                       java.lang.String keyName)

getJoinColumn

public static JoinColumn getJoinColumn(JoinColumn[] columnsAnn,
                                       java.lang.String keyName)

getJoinColumn

public static PrimaryKeyJoinColumn getJoinColumn(PrimaryKeyJoinColumn[] columnsAnn,
                                                 java.lang.String keyName)