|
SolarMetric Kodo JDO 3.0.3 generated on February 20 2004 | ||||||||
| 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 | |
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 |
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 |
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 void setConfiguration(Configuration conf)
ConfigurablesetConfiguration in interface Configurablepublic void startConfiguration()
ConfigurablestartConfiguration in interface Configurablepublic void endConfiguration()
ConfigurableendConfiguration in interface Configurablepublic boolean isSingleOperation()
MappingFactoryMappingFactory.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)
MappingFactoryreadMapping in interface MappingFactorykodo.jdbc.meta.MappingFactorytype - the type to read mapping information forrepos - add the mapping information to this repository
public void storeMappings(MappingInfoRepository mappings,
JDOMetaDataRepository repos)
MappingFactorystoreMappings in interface MappingFactorykodo.jdbc.meta.MappingFactorymappings - the changed mappingsrepos - can be used to access class metadata if neededpublic boolean dropMappings(ClassMetaData[] types)
MappingFactorydropMappings in interface MappingFactorykodo.jdbc.meta.MappingFactorytypes - the types to droppublic boolean revertMappings(ClassMetaData[] types)
MappingFactoryrevertMappings in interface MappingFactorykodo.jdbc.meta.MappingFactorytypes - the types to revert
|
SolarMetric Kodo JDO 3.0.3 generated on February 20 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||