jdbc.util
Class JdbcSchema

java.lang.Object
  |
  +--jdbc.util.JdbcSchema

public class JdbcSchema
extends java.lang.Object

utility to create report of table that can be reached through jdbc

Author:
Thijs Verhagen

Field Summary
(package private) static java.lang.String cfgFn
           
(package private) static java.lang.String name
           
(package private) static java.lang.String nl
           
(package private) static java.util.HashMap typeM
           
 
Constructor Summary
JdbcSchema()
           
 
Method Summary
static java.lang.String getClassNameForType(java.lang.String t)
           
static java.io.PrintWriter getPrintWriter(java.lang.String fn)
           
(package private) static void initTypeMap()
           
static void main(java.lang.String[] args)
          set properties: 'outputfile'
(package private) static java.lang.String reportMetaData(java.sql.ResultSetMetaData md)
           
static void usage()
           
(package private) static java.lang.String xmlElt(java.lang.String name, java.lang.String val)
           
(package private) static java.lang.String xmlText(java.sql.ResultSetMetaData md)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cfgFn

static java.lang.String cfgFn

name

static java.lang.String name

nl

static java.lang.String nl

typeM

static java.util.HashMap typeM
Constructor Detail

JdbcSchema

public JdbcSchema()
Method Detail

usage

public static void usage()

initTypeMap

static void initTypeMap()

getClassNameForType

public static java.lang.String getClassNameForType(java.lang.String t)

reportMetaData

static java.lang.String reportMetaData(java.sql.ResultSetMetaData md)
                                throws java.sql.SQLException
java.sql.SQLException

xmlElt

static java.lang.String xmlElt(java.lang.String name,
                               java.lang.String val)

xmlText

static java.lang.String xmlText(java.sql.ResultSetMetaData md)
                         throws java.sql.SQLException
java.sql.SQLException

getPrintWriter

public static java.io.PrintWriter getPrintWriter(java.lang.String fn)
                                          throws java.io.IOException
java.io.IOException

main

public static void main(java.lang.String[] args)
set properties: 'outputfile'