Kodo 4.2.0. generated on July 28 2008

kodo.jdo
Class JDOMetaDataFactory

java.lang.Object
  extended by org.apache.openjpa.meta.AbstractMetaDataFactory
      extended by org.apache.openjpa.meta.AbstractCFMetaDataFactory
          extended by kodo.jdo.JDOMetaDataFactory
All Implemented Interfaces:
ApplicationIdTool.ObjectIdLoader, MetaDataFactory, MetaDataModes
Direct Known Subclasses:
DeprecatedJDOMetaDataFactory, JDORMappingFactory, ORMFileJDORMappingFactory

public class JDOMetaDataFactory
extends AbstractCFMetaDataFactory
implements ApplicationIdTool.ObjectIdLoader

JDO-compliant MetaDataFactory.

Since:
4.0

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.openjpa.meta.AbstractCFMetaDataFactory
AbstractCFMetaDataFactory.Parser, AbstractCFMetaDataFactory.Serializer
 
Field Summary
 
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_ALL, MODE_ANN_MAPPING, MODE_MAPPING, MODE_MAPPING_INIT, MODE_META, MODE_NONE, MODE_QUERY
 
Constructor Summary
JDOMetaDataFactory()
           
 
Method Summary
 void addClassExtensionKeys(Collection exts)
           
 void addFieldExtensionKeys(Collection exts)
           
 void clear()
           
protected  File defaultSourceFile(ClassMetaData meta)
           
protected  File defaultSourceFile(QueryMetaData query, Map clsNames)
           
protected  File defaultSourceFile(SequenceMetaData seq, Map clsNames)
           
 MetaDataDefaults getDefaults()
           
protected  String getMetaDataSuffix()
          Metadata file suffix.
 JDOMetaDataParser getParser()
          Return metadata parser, creating it if it does not already exist.
 boolean isDeclaredInterfacePersistent()
          Whether declared interfaces of a given persistent-class are persistence-capable (i.e.
protected  boolean isParseTopDown()
           
 boolean isScanTopDown()
          Whether to scan for class metadata top-down in the package tree.
 void load(Class cls, int mode, ClassLoader envLoader)
           
 void loadXMLMetaData(FieldMetaData fieldMetaData)
           
protected  AbstractCFMetaDataFactory.Serializer newAnnotationSerializer()
           
 ClassArgParser newClassArgParser()
           
protected  MetaDataFilter newMetaDataFilter()
           
protected  AbstractCFMetaDataFactory.Parser newParser(boolean loading)
           
protected  AbstractCFMetaDataFactory.Serializer newSerializer()
           
 void setDeclaredInterfacePersistent(boolean pers)
          Whether declared interfaces of a given persistent-class are persistence-capable (i.e.
 void setLoadObjectIds()
           
 void setParser(JDOMetaDataParser parser)
          Set the metadata parser.
 void setScanTopDown(boolean topDown)
          Whether to scan for class metadata top-down in the package tree.
 void setUseSchemaValidation(boolean useSchema)
          Whether to use XSD schema validation (as opposed to DTD).
 boolean useSchemaValidation()
          Whether to use XSD schema validation (as opposed to DTD).
 
Methods inherited from class org.apache.openjpa.meta.AbstractCFMetaDataFactory
backupAndDelete, clearMapping, drop, getDefiningMetaData, getPersistentTypeNames, getSourceFile, getSourceFile, isMappingOnlyFactory, mapPersistentTypeNames, parse, parse, serialize, setClasspathScan, setClasspathScan, setFiles, setFiles, setResources, setResources, setSourceFile, setSourceFile, setURLs, setURLs, store
 
Methods inherited from class org.apache.openjpa.meta.AbstractMetaDataFactory
getQueryScope, getResultSetMappingScope, setRepository, setStoreDirectory, setStoreMode, setStrict, setTypes, setTypes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDOMetaDataFactory

public JDOMetaDataFactory()
Method Detail

isScanTopDown

public boolean isScanTopDown()
Whether to scan for class metadata top-down in the package tree. Defaults to false.


setScanTopDown

public void setScanTopDown(boolean topDown)
Whether to scan for class metadata top-down in the package tree. Defaults to false.


useSchemaValidation

public boolean useSchemaValidation()
Whether to use XSD schema validation (as opposed to DTD). Defaults to false.


setUseSchemaValidation

public void setUseSchemaValidation(boolean useSchema)
Whether to use XSD schema validation (as opposed to DTD). Defaults to false.


isDeclaredInterfacePersistent

public boolean isDeclaredInterfacePersistent()
Whether declared interfaces of a given persistent-class are persistence-capable (i.e. able to be queried). Defaults to false.


setDeclaredInterfacePersistent

public void setDeclaredInterfacePersistent(boolean pers)
Whether declared interfaces of a given persistent-class are persistence-capable (i.e. able to be queried). Defaults to false.


getParser

public JDOMetaDataParser getParser()
Return metadata parser, creating it if it does not already exist.


setParser

public void setParser(JDOMetaDataParser parser)
Set the metadata parser.


load

public void load(Class cls,
                 int mode,
                 ClassLoader envLoader)
Specified by:
load in interface MetaDataFactory

getDefaults

public MetaDataDefaults getDefaults()
Specified by:
getDefaults in interface MetaDataFactory

newClassArgParser

public ClassArgParser newClassArgParser()
Specified by:
newClassArgParser in interface MetaDataFactory
Overrides:
newClassArgParser in class AbstractMetaDataFactory

clear

public void clear()
Specified by:
clear in interface MetaDataFactory
Overrides:
clear in class AbstractCFMetaDataFactory

addClassExtensionKeys

public void addClassExtensionKeys(Collection exts)
Specified by:
addClassExtensionKeys in interface MetaDataFactory
Overrides:
addClassExtensionKeys in class AbstractMetaDataFactory

addFieldExtensionKeys

public void addFieldExtensionKeys(Collection exts)
Specified by:
addFieldExtensionKeys in interface MetaDataFactory
Overrides:
addFieldExtensionKeys in class AbstractMetaDataFactory

loadXMLMetaData

public void loadXMLMetaData(FieldMetaData fieldMetaData)
Specified by:
loadXMLMetaData in interface MetaDataFactory

newParser

protected AbstractCFMetaDataFactory.Parser newParser(boolean loading)
Specified by:
newParser in class AbstractCFMetaDataFactory

newSerializer

protected AbstractCFMetaDataFactory.Serializer newSerializer()
Specified by:
newSerializer in class AbstractCFMetaDataFactory

newAnnotationSerializer

protected AbstractCFMetaDataFactory.Serializer newAnnotationSerializer()
Specified by:
newAnnotationSerializer in class AbstractCFMetaDataFactory

isParseTopDown

protected boolean isParseTopDown()
Overrides:
isParseTopDown in class AbstractCFMetaDataFactory

defaultSourceFile

protected File defaultSourceFile(ClassMetaData meta)
Specified by:
defaultSourceFile in class AbstractCFMetaDataFactory

defaultSourceFile

protected File defaultSourceFile(QueryMetaData query,
                                 Map clsNames)
Specified by:
defaultSourceFile in class AbstractCFMetaDataFactory

defaultSourceFile

protected File defaultSourceFile(SequenceMetaData seq,
                                 Map clsNames)
Specified by:
defaultSourceFile in class AbstractCFMetaDataFactory

newMetaDataFilter

protected MetaDataFilter newMetaDataFilter()
Specified by:
newMetaDataFilter in class AbstractCFMetaDataFactory

getMetaDataSuffix

protected String getMetaDataSuffix()
Metadata file suffix.


setLoadObjectIds

public void setLoadObjectIds()
Specified by:
setLoadObjectIds in interface ApplicationIdTool.ObjectIdLoader

Kodo 4.2.0. generated on July 28 2008

Copyright 2001-2006 BEA Systems, Inc. All Rights Reserved.