org.jcoderz.phoenix.dbview
Class DbView
java.lang.Object
org.jcoderz.phoenix.dbview.DbView
public class DbView
- extends Object
Converts the db content into xml.
- Author:
- Andreas Mandel
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
DbView
public DbView()
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.