dods.servers.sql
Class JDBCTest

java.lang.Object
  extended by dods.servers.sql.JDBCTest

public class JDBCTest
extends Object


Field Summary
static String ConstraintExpression
           
static String DDSFile
           
static String iniFileName
           
static String sqlQuery
           
 
Constructor Summary
JDBCTest()
           
 
Method Summary
static Statement connect2DB()
           
static void main(String[] args)
           
static boolean parse_options(String[] args)
           
static void printColumnNames(ResultSetMetaData m)
          Read the meta data stream and build up column names with type information
static boolean processResult(ResultSet result)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DDSFile

public static String DDSFile

ConstraintExpression

public static String ConstraintExpression

sqlQuery

public static String sqlQuery

iniFileName

public static String iniFileName
Constructor Detail

JDBCTest

public JDBCTest()
Method Detail

main

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

connect2DB

public static Statement connect2DB()
                            throws SQLException,
                                   FileNotFoundException,
                                   IOException
Throws:
SQLException
FileNotFoundException
IOException

processResult

public static boolean processResult(ResultSet result)
                             throws SQLException,
                                    IOException
Throws:
SQLException
IOException

printColumnNames

public static void printColumnNames(ResultSetMetaData m)
                             throws SQLException
Read the meta data stream and build up column names with type information

Throws:
SQLException

parse_options

public static boolean parse_options(String[] args)