SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool

com.solarmetric.rd.kodo.impl.jdbc.meta
Class XMLMappingInfoSerializer

java.lang.Object
  |
  +--com.solarmetric.rd.meta.XMLMetaDataSerializer
        |
        +--com.solarmetric.rd.meta.CFMetaDataSerializer
              |
              +--com.solarmetric.rd.kodo.impl.jdbc.meta.XMLMappingInfoSerializer
All Implemented Interfaces:
MappingInfoSerializer, MetaDataSerializer

public class XMLMappingInfoSerializer
extends CFMetaDataSerializer
implements MappingInfoSerializer

Serializes ClassMappingInfos to XML matching the document type definition defined by the XMLMappingInfoParser.

Serializers are not thread safe.


Constructor Summary
XMLMappingInfoSerializer(com.solarmetric.rd.kodo.impl.jdbc.conf.JDBCConfiguration conf)
          Constructor.
 
Method Summary
 void clear()
          Reset the internal repository of mappings to be serialized.
protected  java.util.Collection getObjects()
          Return the current set of objects set for serialization.
protected  java.lang.String getPackageName(java.lang.Object obj)
          Return the package of the given object.
 com.solarmetric.rd.kodo.impl.jdbc.meta.MappingInfoRepository getRepository()
          Return the internal mapping repository holding the mappings to be serialized.
protected  java.lang.String getRootElementName()
          Return the name of the document root element.
protected  void serializeClass(java.lang.Object obj)
          Serialize the given object representing metadata at the class level.
 void setRepository(com.solarmetric.rd.kodo.impl.jdbc.meta.MappingInfoRepository repos)
          Set the mapping repository containing the mappings to be serialized.
 
Methods inherited from class com.solarmetric.rd.meta.CFMetaDataSerializer
getClassName, getDeclaredPackage, serialize
 
Methods inherited from class com.solarmetric.rd.meta.XMLMetaDataSerializer
addAttribute, endElement, getLog, reset, serialize, serialize, serialize, serialize, serialize, setLog, startElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.solarmetric.rd.meta.MetaDataSerializer
getLog, serialize, serialize, serialize, setLog
 

Constructor Detail

XMLMappingInfoSerializer

public XMLMappingInfoSerializer(com.solarmetric.rd.kodo.impl.jdbc.conf.JDBCConfiguration conf)
Constructor. Supply configuration.

Method Detail

getRepository

public com.solarmetric.rd.kodo.impl.jdbc.meta.MappingInfoRepository getRepository()
Description copied from interface: MappingInfoSerializer
Return the internal mapping repository holding the mappings to be serialized. Additional mappings can be added or extra mappings removed directly from this repository.

Specified by:
getRepository in interface MappingInfoSerializer

setRepository

public void setRepository(com.solarmetric.rd.kodo.impl.jdbc.meta.MappingInfoRepository repos)
Description copied from interface: MappingInfoSerializer
Set the mapping repository containing the mappings to be serialized.

Specified by:
setRepository in interface MappingInfoSerializer

clear

public void clear()
Description copied from interface: MappingInfoSerializer
Reset the internal repository of mappings to be serialized.

Specified by:
clear in interface MappingInfoSerializer

getObjects

protected java.util.Collection getObjects()
Description copied from class: XMLMetaDataSerializer
Return the current set of objects set for serialization.

Specified by:
getObjects in class XMLMetaDataSerializer

getRootElementName

protected java.lang.String getRootElementName()
Description copied from class: CFMetaDataSerializer
Return the name of the document root element.

Specified by:
getRootElementName in class CFMetaDataSerializer

getPackageName

protected java.lang.String getPackageName(java.lang.Object obj)
Description copied from class: CFMetaDataSerializer
Return the package of the given object.

Specified by:
getPackageName in class CFMetaDataSerializer

serializeClass

protected void serializeClass(java.lang.Object obj)
                       throws org.xml.sax.SAXException
Description copied from class: CFMetaDataSerializer
Serialize the given object representing metadata at the class level.

Specified by:
serializeClass in class CFMetaDataSerializer
org.xml.sax.SAXException

SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool

Copyright 2001,2002,2003 SolarMetric, Inc. All Rights Reserved.