|
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.MetaDataMappingFactory
Factory that places mapping information in JDO metadata extensions.
Constructor Summary | |
MetaDataMappingFactory()
|
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. |
boolean |
isSingleOperation()
Return true if this factory reads and writes all system mappings at once. |
void |
readMapping(ClassMetaData meta,
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 |
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 MetaDataMappingFactory()
Method Detail |
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 meta, 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 revertMappings(ClassMetaData[] types)
MappingFactory
revertMappings
in interface MappingFactory
kodo.jdbc.meta.MappingFactory
types
- the types to revertpublic boolean dropMappings(ClassMetaData[] types)
MappingFactory
dropMappings
in interface MappingFactory
kodo.jdbc.meta.MappingFactory
types
- the types to droppublic 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 |