deegree 2.6-pre (2011/11/29 00:10 build-378-unofficial)

org.deegree.tools.xml
Class DatabaseXMLMapping

java.lang.Object
  extended by org.deegree.tools.xml.DatabaseXMLMapping

public class DatabaseXMLMapping
extends Object

reads a relational database model and transforms it into XML. Via a XSL script it is possible to transform the XML into any other XML format. The program uses following configuration

 
 
     
         org.postgresql.Driver
         jdbc:postgresql://localhost:5432/csw
         aUser
         aPassword
         
         iso-8859-1
     
     e:/temp/test.xsl
     
         Metadata
         Select * From cqp_main
         
             domainconsistency
             Select * From cqp_domainconsistency where fk_cqp_main = $ID
             
                 specificationdate
                 Select * From cqp_specificationdate where fk_cqp_domainconsistency = $ID
             
         
         
             bbox
             Select * From cqp_bbox where fk_cqp_main = $ID
             geom
         
     
 
 

Version:
$Revision: $, $Date: $
Author:
Andreas Poth, last edited by: $Author: admin $

Field Summary
protected  Table mainTable
           
protected  XSLTDocument xslt
           
 
Constructor Summary
DatabaseXMLMapping(String fileName)
           
 
Method Summary
protected  void performAction(XMLFragment xml)
           
 void run()
           
protected  XMLFragment transform(XMLFragment xml)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mainTable

protected Table mainTable

xslt

protected XSLTDocument xslt
Constructor Detail

DatabaseXMLMapping

public DatabaseXMLMapping(String fileName)
                   throws Exception
Parameters:
fileName -
Throws:
Exception
Method Detail

run

public void run()
         throws Exception
Throws:
Exception

transform

protected XMLFragment transform(XMLFragment xml)
                         throws Exception
Parameters:
xml -
Returns:
Throws:
Exception

performAction

protected void performAction(XMLFragment xml)

deegree 2.6-pre (2011/11/29 00:10 build-378-unofficial)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org