Class DbToXML


  • public class DbToXML
    extends java.lang.Object
    Tool to export a database schema to an XML file.
    Author:
    Matt Ward
    • Constructor Summary

      Constructors 
      Constructor Description
      DbToXML​(org.springframework.context.ApplicationContext context, java.io.File outputFile)
      Constructor.
      DbToXML​(org.springframework.context.ApplicationContext context, java.io.File outputFile, java.lang.String namePrefix)
      Constructor.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute()  
      static void main​(java.lang.String[] args)  
      void setDbSchemaName​(java.lang.String dbSchemaName)
      Set an optional default schema name
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DbToXML

        public DbToXML​(org.springframework.context.ApplicationContext context,
                       java.io.File outputFile)
        Constructor. Uses a default name prefix of 'alf_' during the export.
      • DbToXML

        public DbToXML​(org.springframework.context.ApplicationContext context,
                       java.io.File outputFile,
                       java.lang.String namePrefix)
        Constructor. Allows specification of a name prefix, e.g. "jpbm_", that will be used during the export.
    • Method Detail

      • setDbSchemaName

        public void setDbSchemaName​(java.lang.String dbSchemaName)
        Set an optional default schema name
        Parameters:
        dbSchemaName - String
      • execute

        public void execute()
      • main

        public static void main​(java.lang.String[] args)