org.jcoderz.phoenix.dbview
Class DbView

java.lang.Object
  extended by org.jcoderz.phoenix.dbview.DbView

public class DbView
extends Object

Converts the db content into xml.

Author:
Andreas Mandel

Field Summary
static String DATASOURCE
          Default database jndi name.
static String LINE_SEPARATOR
          Line separator to be used in output files.
 
Constructor Summary
DbView()
           
 
Method Summary
 void addTypeMapping(String typeName, String typeClass, String fromDb, String toString)
           
 void dumpAllTables()
           
 void dumpAllTables(File dir)
           
static String escapeTableName(String in)
           
static void main(String[] args)
           
 void performConvertion(File file, String query)
           
 void performQuery()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATASOURCE

public static final String DATASOURCE
Default database jndi name.

See Also:
Constant Field Values

LINE_SEPARATOR

public static final String LINE_SEPARATOR
Line separator to be used in output files.

Constructor Detail

DbView

public DbView()
Method Detail

main

public static void main(String[] args)
                 throws SecurityException
Throws:
SecurityException

dumpAllTables

public void dumpAllTables()
                   throws IOException,
                          ClassNotFoundException,
                          SQLException
Throws:
IOException
ClassNotFoundException
SQLException

performQuery

public void performQuery()
                  throws IOException,
                         ClassNotFoundException,
                         SQLException
Throws:
IOException
ClassNotFoundException
SQLException

dumpAllTables

public void dumpAllTables(File dir)
                   throws IOException,
                          ClassNotFoundException,
                          SQLException
Throws:
IOException
ClassNotFoundException
SQLException

performConvertion

public void performConvertion(File file,
                              String query)
                       throws IOException,
                              ClassNotFoundException,
                              SQLException
Throws:
IOException
ClassNotFoundException
SQLException

addTypeMapping

public void addTypeMapping(String typeName,
                           String typeClass,
                           String fromDb,
                           String toString)
                    throws SecurityException,
                           NoSuchMethodException,
                           ClassNotFoundException
Throws:
SecurityException
NoSuchMethodException
ClassNotFoundException

escapeTableName

public static String escapeTableName(String in)


Copyright 2007 The jCoderZ Project.