|
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 |
Factory for object-relational mapping information.
Users can plug in their own factory implementation, or rely on the
ones provided. Most mapping factories will probably implement the
Configurable
interface to receive the
system configuration on construction.
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. |
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 |
storeMappings(MappingInfoRepository mappings,
JDOMetaDataRepository repos)
Store any changes made to the given mappings, including their field mappings. |
Method Detail |
public boolean isSingleOperation()
readMapping(kodo.meta.ClassMetaData, kodo.jdbc.meta.MappingInfoRepository)
and revertMappings(kodo.meta.ClassMetaData[])
calls that pass
in a null meta data argument.public void readMapping(ClassMetaData type, MappingInfoRepository repos)
type
- the type to read mapping information forrepos
- add the mapping information to this repositorypublic void storeMappings(MappingInfoRepository mappings, JDOMetaDataRepository repos)
mappings
- the changed mappingsrepos
- can be used to access class metadata if neededpublic boolean dropMappings(ClassMetaData[] types)
types
- the types to droppublic boolean revertMappings(ClassMetaData[] types)
types
- the types to revertpublic void addExtensionKeys(Collection exts, Mapping mapping)
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 |