Save This Page
Home » apache-openjpa-1.1.0-source » org.apache.openjpa.jdbc » meta » [javadoc | source]
org.apache.openjpa.jdbc.meta
public class: MappingRepository [javadoc | source]
java.lang.Object
   org.apache.openjpa.meta.MetaDataRepository
      org.apache.openjpa.jdbc.meta.MappingRepository

All Implemented Interfaces:
    MetaDataModes, org.apache.openjpa.enhance.PCRegistry.RegisterClassListener, Serializable, Closeable, Configurable

Repository of object/relational mapping information.
Fields inherited from org.apache.openjpa.meta.MetaDataRepository:
VALIDATE_NONE,  VALIDATE_META,  VALIDATE_MAPPING,  VALIDATE_UNENHANCED,  VALIDATE_RUNTIME,  EMPTY_CLASSES,  EMPTY_NON_PERSISTENT,  EMPTY_METAS,  EMPTY_FIELDS,  EMPTY_ORDERS,  EMPTY_XMLMETAS
Constructor:
 public MappingRepository() 
Method from org.apache.openjpa.jdbc.meta.MappingRepository Summary:
addQueryResultMapping,   clear,   defaultHandler,   defaultHandler,   defaultStrategy,   defaultStrategy,   defaultStrategy,   defaultStrategy,   defaultStrategy,   defaultStrategy,   defaultStrategy,   defaultStrategy,   defaultStrategy,   defaultTypeStrategy,   endConfiguration,   getCachedQueryResultMapping,   getDBDictionary,   getImplementorMappings,   getMapping,   getMapping,   getMappingDefaults,   getMappings,   getQueryResultMapping,   getQueryResultMappings,   getSchemaGroup,   getStrategyInstaller,   handlerCollectionStrategy,   handlerMapStrategy,   instantiateClassStrategy,   instantiateDiscriminatorStrategy,   instantiateVersionStrategy,   instantiateVersionStrategy,   namedHandler,   namedStrategy,   namedStrategy,   namedStrategy,   namedStrategy,   newClassMetaData,   newClassMetaDataArray,   newDiscriminator,   newEmbeddedClassMetaData,   newFieldMetaData,   newFieldMetaDataArray,   newMappingInfo,   newMappingInfo,   newMappingInfo,   newMappingInfo,   newMappingInfo,   newOrderArray,   newRelatedFieldOrder,   newSequenceMetaData,   newValueMetaData,   newValueOrder,   newVersion,   prepareMapping,   removeQueryResultMapping,   removeQueryResultMapping,   setMappingDefaults,   setSchemaGroup,   setStrategyInstaller
Methods from org.apache.openjpa.meta.MetaDataRepository:
addDeclaredInterfaceImpl,   addMetaData,   addMetaData,   addNonMappedInterface,   addPersistenceAware,   addQueryMetaData,   addSequenceMetaData,   addSystemListener,   addXMLMetaData,   clear,   close,   endConfiguration,   getAliasNames,   getCachedMetaData,   getCachedQueryMetaData,   getCachedSequenceMetaData,   getCachedXMLMetaData,   getClosestAliasName,   getConfiguration,   getImplGenerator,   getImplementorMetaDatas,   getLog,   getMetaData,   getMetaData,   getMetaData,   getMetaDataFactory,   getMetaDatas,   getNonMappedInterface,   getNonMappedInterfaces,   getPCSubclasses,   getPersistenceAware,   getPersistenceAwares,   getPersistentTypeNames,   getQueryKey,   getQueryMetaData,   getQueryMetaDatas,   getResolve,   getSequenceMetaData,   getSequenceMetaData,   getSequenceMetaDatas,   getSourceMode,   getSystemListeners,   getValidate,   getXMLMetaData,   loadPersistentTypes,   newClassMetaData,   newClassMetaDataArray,   newEmbeddedClassMetaData,   newFieldMetaData,   newFieldMetaDataArray,   newOrder,   newOrderArray,   newQueryMetaData,   newRelatedFieldOrder,   newSequenceMetaData,   newValueMetaData,   newValueOrder,   newXMLClassMetaData,   newXMLClassMetaDataArray,   newXMLFieldMetaData,   prepareMapping,   processRegisteredClasses,   register,   removeMetaData,   removeMetaData,   removeNonMappedInterface,   removePersistenceAware,   removeQueryMetaData,   removeQueryMetaData,   removeSequenceMetaData,   removeSequenceMetaData,   removeSystemListener,   setConfiguration,   setInterfaceImpl,   setMetaDataFactory,   setResolve,   setResolve,   setSourceMode,   setSourceMode,   setValidate,   setValidate,   startConfiguration
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.openjpa.jdbc.meta.MappingRepository Detail:
 public synchronized QueryResultMapping addQueryResultMapping(Class cls,
    String name) 
    Add a query result mapping.
 public synchronized  void clear() 
 protected ValueHandler defaultHandler(ValueMapping val) 
    Determine the default handler to use for the given value. Does not take into account the named handler, if any.
 protected ValueHandler defaultHandler(ValueMapping val,
    boolean adapting) 
    Determine the default handler to use for the given value. Does not take into account the named handler, if any.
 protected ClassStrategy defaultStrategy(ClassMapping cls) 
    Determine the default strategy to use for the given class. Does not take into account the current strategy, if any.
 protected DiscriminatorStrategy defaultStrategy(Discriminator discrim) 
    Determine the default strategy to use for the given discriminator. Does not take into account the current strategy, if any.
 protected VersionStrategy defaultStrategy(Version version) 
    Determine the default strategy to use for the given version. Does not take into account the current strategy, if any.
 protected ClassStrategy defaultStrategy(ClassMapping cls,
    boolean adapting) 
    Determine the default strategy to use for the given class. Does not take into account the current strategy, if any.
 protected FieldStrategy defaultStrategy(FieldMapping field,
    boolean installHandlers) 
    Determine the default strategy to use for the given field. Does not take into account the named or current strategy, if any. If a non-null strategy is returned, this method may as a side effect install value handlers on the field's value mappings.
 protected DiscriminatorStrategy defaultStrategy(Discriminator discrim,
    boolean adapting) 
    Determine the default strategy to use for the given discriminator. Does not take into account the current strategy, if any.
 protected VersionStrategy defaultStrategy(Version version,
    boolean adapting) 
    Determine the default strategy to use for the given version. Does not take into account the current strategy, if any.
 protected VersionStrategy defaultStrategy(Version vers,
    FieldMapping vfield) 
    Return the default version strategy, given a version field.
 protected FieldStrategy defaultStrategy(FieldMapping field,
    boolean installHandlers,
    boolean adapting) 
    Determine the default strategy to use for the given field. Does not take into account the named or current strategy, if any. If a non-null strategy is returned, this method may as a side effect install value handlers on the field's value mappings.
 protected FieldStrategy defaultTypeStrategy(FieldMapping field,
    boolean installHandlers,
    boolean adapting) 
    Return the built-in strategy for the field's type, or null if none.
 public  void endConfiguration() 
 public synchronized QueryResultMapping getCachedQueryResultMapping(Class cls,
    String name) 
    Return the cached query result mapping with the given name, or null if none.
 public DBDictionary getDBDictionary() 
    Convenient access to dictionary for mappings.
 public ClassMapping[] getImplementorMappings(Class cls,
    ClassLoader envLoader,
    boolean mustExist) 
 public ClassMapping getMapping(Class cls,
    ClassLoader envLoader,
    boolean mustExist) 
 public ClassMapping getMapping(Object oid,
    ClassLoader envLoader,
    boolean mustExist) 
 public MappingDefaults getMappingDefaults() 
    Mapping defaults.
 public ClassMapping[] getMappings() 
 public synchronized QueryResultMapping getQueryResultMapping(Class cls,
    String name,
    ClassLoader envLoader,
    boolean mustExist) 
    Return the query result mapping for the given name.
 public synchronized QueryResultMapping[] getQueryResultMappings() 
    Return all cached query result mappings.
 public synchronized SchemaGroup getSchemaGroup() 
    Representation of the database schema.
 public synchronized StrategyInstaller getStrategyInstaller() 
    Installs mapping strategies on components.
 protected FieldStrategy handlerCollectionStrategy(FieldMapping field,
    ValueHandler ehandler,
    boolean installHandlers) 
    Return the collection strategy for the given element handler, or null if none.
 protected FieldStrategy handlerMapStrategy(FieldMapping field,
    ValueHandler khandler,
    ValueHandler vhandler,
    boolean krel,
    boolean vrel,
    boolean installHandlers) 
    Return the map strategy for the given key and value handlers / relations, or null if none.
 protected ClassStrategy instantiateClassStrategy(String name,
    ClassMapping cls) 
    Return the strategy for the given name.
 protected DiscriminatorStrategy instantiateDiscriminatorStrategy(String name,
    Discriminator discrim) 
    Instantiate the given discriminator strategy.
 protected VersionStrategy instantiateVersionStrategy(String name,
    Version version) 
    Instantiate the given version strategy.
 protected VersionStrategy instantiateVersionStrategy(Class strat,
    Version version,
    String props) 
    Instantiate the given version strategy.
 protected ValueHandler namedHandler(ValueMapping val) 
    Instantiate the given value's named handler, or return null if no named handler.
 protected ClassStrategy namedStrategy(ClassMapping cls) 
    Instantiate the given class' named strategy, or return null if no named strategy.
 protected DiscriminatorStrategy namedStrategy(Discriminator discrim) 
    Instantiate the given discriminator's named strategy, or return null if no named strategy.
 protected VersionStrategy namedStrategy(Version version) 
    Instantiate the given version's named strategy, or return null if no named strategy.
 protected FieldStrategy namedStrategy(FieldMapping field,
    boolean installHandlers) 
    Instantiate the given field's named strategy, or return null if no named strategy.
 protected ClassMetaData newClassMetaData(Class type) 
 protected ClassMetaData[] newClassMetaDataArray(int length) 
 protected Discriminator newDiscriminator(ClassMapping cls) 
    Create discriminator metadata for the given class.
 protected ClassMetaData newEmbeddedClassMetaData(ValueMetaData owner) 
 protected FieldMetaData newFieldMetaData(String name,
    Class type,
    ClassMetaData owner) 
 protected FieldMetaData[] newFieldMetaDataArray(int length) 
 protected ClassMappingInfo newMappingInfo(ClassMapping cls) 
    Create raw mapping info for the given instance.
 protected FieldMappingInfo newMappingInfo(FieldMapping fm) 
    Create raw mapping info for the given instance.
 protected ValueMappingInfo newMappingInfo(ValueMapping vm) 
    Create raw mapping info for the given instance.
 protected VersionMappingInfo newMappingInfo(Version version) 
    Create raw mapping info for the given instance.
 protected DiscriminatorMappingInfo newMappingInfo(Discriminator disc) 
    Create raw mapping info for the given instance.
 protected Order[] newOrderArray(int size) 
 protected Order newRelatedFieldOrder(FieldMetaData owner,
    FieldMetaData rel,
    boolean asc) 
 protected SequenceMetaData newSequenceMetaData(String name) 
 protected ValueMetaData newValueMetaData(FieldMetaData owner) 
 protected Order newValueOrder(FieldMetaData owner,
    boolean asc) 
 protected Version newVersion(ClassMapping cls) 
    Create version metadata for the given class.
 protected  void prepareMapping(ClassMetaData meta) 
 public synchronized boolean removeQueryResultMapping(QueryResultMapping res) 
    Remove a query result mapping.
 public synchronized boolean removeQueryResultMapping(Class cls,
    String name) 
    Remove a query result mapping.
 public  void setMappingDefaults(MappingDefaults defaults) 
    Mapping default.
 public synchronized  void setSchemaGroup(SchemaGroup schema) 
    Representation of the database schema.
 public synchronized  void setStrategyInstaller(StrategyInstaller installer) 
    Installs mapping strategies on components.