|
SolarMetric Kodo JDO 3.3.5 generated on August 31 2005 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--kodo.jdbc.meta.FileMappingFactory
Factory that uses multiple XML mapping files to construct the system mappings. By default, the placement of the mapping files mirrors the placement of the JDO metadata.
Constructor Summary | |
FileMappingFactory()
|
Method Summary | |
void |
addExtensionKeys(Collection exts,
Mapping mapping)
Add any metadata extension keys that this MappingFactory uses to store mapping information. |
boolean |
dropMappings(ClassMetaData[] types)
Delete the given mappings. |
void |
endConfiguration()
Invoked upon completion of bean property configuration for this object. |
String |
getFileName()
The name of the file to use in single-file mode. |
boolean |
getSourceIsSystemId()
Whether to set the source name as the system id when parsing metadata. |
boolean |
isSingleFile()
Whether to use a single top-level mapping file. |
boolean |
isSingleOperation()
Return true if this factory reads and writes all system mappings at once. |
void |
readMapping(ClassMetaData type,
MappingInfoRepository repos)
Read the object-relational mapping for the given persistent type and add it to the given repository. |
boolean |
revertMappings(ClassMetaData[] types)
Revert the mappings to their last saved state, or return false if any cannot be reverted. |
void |
setConfiguration(Configuration conf)
Invoked prior to setting bean properties. |
void |
setFileName(String fileName)
The name of the file to use in single-file mode. |
void |
setSingleFile(boolean singleFile)
Whether to use a single top-level mapping file. |
void |
setSourceIsSystemId(boolean systemId)
Whether to set the source name as the system id when parsing metadata. |
void |
startConfiguration()
Invoked before bean property configuration is begun on this object. |
void |
storeMappings(MappingInfoRepository mappings,
JDOMetaDataRepository repos)
Store any changes made to the given mappings, including their field mappings. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FileMappingFactory()
Method Detail |
public boolean isSingleFile()
public void setSingleFile(boolean singleFile)
public String getFileName()
package.mapping
.public void setFileName(String fileName)
package.mapping
.public boolean getSourceIsSystemId()
public void setSourceIsSystemId(boolean systemId)
public void setConfiguration(Configuration conf)
Configurable
setConfiguration
in interface Configurable
public void startConfiguration()
Configurable
startConfiguration
in interface Configurable
public void endConfiguration()
Configurable
endConfiguration
in interface Configurable
public boolean isSingleOperation()
MappingFactory
MappingFactory.readMapping(kodo.meta.ClassMetaData, kodo.jdbc.meta.MappingInfoRepository)
and MappingFactory.revertMappings(kodo.meta.ClassMetaData[])
calls that pass
in a null meta data argument.isSingleOperation
in interface MappingFactory
public void readMapping(ClassMetaData type, MappingInfoRepository repos)
MappingFactory
readMapping
in interface MappingFactory
kodo.jdbc.meta.MappingFactory
type
- the type to read mapping information forrepos
- add the mapping information to this repositorypublic void storeMappings(MappingInfoRepository mappings, JDOMetaDataRepository repos)
MappingFactory
storeMappings
in interface MappingFactory
kodo.jdbc.meta.MappingFactory
mappings
- the changed mappingsrepos
- can be used to access class metadata if neededpublic boolean dropMappings(ClassMetaData[] types)
MappingFactory
dropMappings
in interface MappingFactory
kodo.jdbc.meta.MappingFactory
types
- the types to droppublic boolean revertMappings(ClassMetaData[] types)
MappingFactory
revertMappings
in interface MappingFactory
kodo.jdbc.meta.MappingFactory
types
- the types to revertpublic void addExtensionKeys(Collection exts, Mapping mapping)
MappingFactory
addExtensionKeys
in interface MappingFactory
kodo.jdbc.meta.MappingFactory
exts
- the collection to which to add the extension keysmapping
- the mapping for which to add the keys
|
SolarMetric Kodo JDO 3.3.5 generated on August 31 2005 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |