kodo.jdo.jdbc
Class ORMFileJDORMappingFactory
java.lang.Object
org.apache.openjpa.meta.AbstractMetaDataFactory
org.apache.openjpa.meta.AbstractCFMetaDataFactory
kodo.jdo.JDOMetaDataFactory
kodo.jdo.jdbc.ORMFileJDORMappingFactory
- All Implemented Interfaces:
- org.apache.openjpa.enhance.ApplicationIdTool.ObjectIdLoader, org.apache.openjpa.lib.conf.Configurable, org.apache.openjpa.meta.MetaDataFactory, org.apache.openjpa.meta.MetaDataModes
public class ORMFileJDORMappingFactory
- extends JDOMetaDataFactory
- implements org.apache.openjpa.lib.conf.Configurable
Plugin to load and store JDO mapping data in .orm files.
This should be combined with a standard MetaDataFactory in a
MetaDataPlusMappingFactory.
| Nested classes/interfaces inherited from class org.apache.openjpa.meta.AbstractCFMetaDataFactory |
org.apache.openjpa.meta.AbstractCFMetaDataFactory.Parser, org.apache.openjpa.meta.AbstractCFMetaDataFactory.Serializer |
| Fields inherited from class org.apache.openjpa.meta.AbstractCFMetaDataFactory |
cpath, files, rsrcs, urls |
| Fields inherited from class org.apache.openjpa.meta.AbstractMetaDataFactory |
dir, log, repos, store, strict, types |
| Fields inherited from interface org.apache.openjpa.meta.MetaDataFactory |
STORE_DEFAULT, STORE_PER_CLASS, STORE_VERBOSE |
| Fields inherited from interface org.apache.openjpa.meta.MetaDataModes |
MODE_MAPPING, MODE_MAPPING_INIT, MODE_META, MODE_NONE, MODE_QUERY |
| Methods inherited from class kodo.jdo.JDOMetaDataFactory |
clear, defaultSourceFile, defaultSourceFile, defaultSourceFile, getParser, isDeclaredInterfacePersistent, isParseTopDown, isScanTopDown, newClassArgParser, newMetaDataFilter, setDeclaredInterfacePersistent, setLoadObjectIds, setParser, setScanTopDown, setUseSchemaValidation, useSchemaValidation |
| Methods inherited from class org.apache.openjpa.meta.AbstractCFMetaDataFactory |
backupAndDelete, clearMapping, drop, getDefiningMetaData, getPersistentTypeNames, mapPersistentTypeNames, parse, serialize, setClasspathScan, setClasspathScan, setFiles, setFiles, setResources, setResources, setURLs, setURLs, store |
| Methods inherited from class org.apache.openjpa.meta.AbstractMetaDataFactory |
getQueryScope, setRepository, setStoreDirectory, setStoreMode, setStrict, setTypes, setTypes |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ORMFileJDORMappingFactory
public ORMFileJDORMappingFactory()
getConstraintNames
public boolean getConstraintNames()
- Whether to write out constraint names in generated mapping data.
Defaults to false.
setConstraintNames
public void setConstraintNames(boolean cnames)
- Whether to write out constraint names in generated mapping data.
Defaults to false.
getMapping
public String getMapping()
- The mapping suffix supplied by the user. Defaults to
value of configuration property.
setMapping
public void setMapping(String mapping)
- The mapping suffix supplied by the user. Defaults to
value of configuration property.
load
public void load(Class cls,
int mode,
ClassLoader envLoader)
- Specified by:
load in interface org.apache.openjpa.meta.MetaDataFactory- Overrides:
load in class JDOMetaDataFactory
getDefaults
public org.apache.openjpa.meta.MetaDataDefaults getDefaults()
- Specified by:
getDefaults in interface org.apache.openjpa.meta.MetaDataFactory- Overrides:
getDefaults in class JDOMetaDataFactory
addClassExtensionKeys
public void addClassExtensionKeys(Collection exts)
- Specified by:
addClassExtensionKeys in interface org.apache.openjpa.meta.MetaDataFactory- Overrides:
addClassExtensionKeys in class JDOMetaDataFactory
addFieldExtensionKeys
public void addFieldExtensionKeys(Collection exts)
- Specified by:
addFieldExtensionKeys in interface org.apache.openjpa.meta.MetaDataFactory- Overrides:
addFieldExtensionKeys in class JDOMetaDataFactory
newParser
protected org.apache.openjpa.meta.AbstractCFMetaDataFactory.Parser newParser(boolean loading)
- Overrides:
newParser in class JDOMetaDataFactory
newSerializer
protected org.apache.openjpa.meta.AbstractCFMetaDataFactory.Serializer newSerializer()
- Overrides:
newSerializer in class JDOMetaDataFactory
getMetaDataSuffix
protected String getMetaDataSuffix()
- Description copied from class:
JDOMetaDataFactory
- Metadata file suffix.
- Overrides:
getMetaDataSuffix in class JDOMetaDataFactory
isMappingOnlyFactory
protected boolean isMappingOnlyFactory()
- Overrides:
isMappingOnlyFactory in class org.apache.openjpa.meta.AbstractCFMetaDataFactory
parse
protected void parse(org.apache.openjpa.lib.meta.MetaDataParser parser,
Class[] cls)
- Overrides:
parse in class org.apache.openjpa.meta.AbstractCFMetaDataFactory
getSourceFile
protected File getSourceFile(org.apache.openjpa.meta.ClassMetaData meta)
- Overrides:
getSourceFile in class org.apache.openjpa.meta.AbstractCFMetaDataFactory
setSourceFile
protected void setSourceFile(org.apache.openjpa.meta.ClassMetaData meta,
File file)
- Overrides:
setSourceFile in class org.apache.openjpa.meta.AbstractCFMetaDataFactory
getSourceFile
protected File getSourceFile(org.apache.openjpa.meta.SequenceMetaData meta)
- Overrides:
getSourceFile in class org.apache.openjpa.meta.AbstractCFMetaDataFactory
setSourceFile
protected void setSourceFile(org.apache.openjpa.meta.SequenceMetaData meta,
File file)
- Overrides:
setSourceFile in class org.apache.openjpa.meta.AbstractCFMetaDataFactory
setConfiguration
public void setConfiguration(org.apache.openjpa.lib.conf.Configuration conf)
- Specified by:
setConfiguration in interface org.apache.openjpa.lib.conf.Configurable
startConfiguration
public void startConfiguration()
- Specified by:
startConfiguration in interface org.apache.openjpa.lib.conf.Configurable
endConfiguration
public void endConfiguration()
- Specified by:
endConfiguration in interface org.apache.openjpa.lib.conf.Configurable
Copyright 2001-2006 BEA Systems, Inc. All Rights Reserved.