uk.ac.starlink.table.jdbc
Class JDBCFormatter

java.lang.Object
  |
  +--uk.ac.starlink.table.jdbc.JDBCFormatter

public class JDBCFormatter
extends Object


Constructor Summary
JDBCFormatter(Connection conn)
           
 
Method Summary
 void createJDBCTable(StarTable table, String tableName)
           
 int getSqlType(Class clazz)
           
static void main(String[] args)
           
 String typeName(int sqlType)
          Returns the name used by the connection's database to reference a JDBC type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCFormatter

public JDBCFormatter(Connection conn)
Method Detail

createJDBCTable

public void createJDBCTable(StarTable table,
                            String tableName)
                     throws IOException,
                            SQLException
IOException
SQLException

getSqlType

public int getSqlType(Class clazz)

typeName

public String typeName(int sqlType)
                throws SQLException
Returns the name used by the connection's database to reference a JDBC type.

Parameters:
sqlType - type id (as per Types)
Returns:
connection-specific type name
SQLException

main

public static void main(String[] args)
                 throws IOException,
                        SQLException
IOException
SQLException

Copyright © 2004 CLRC: Central Laboratory of the Research Councils. All rights reserved.