uk.ac.starlink.table.jdbc
Class JDBCFormatter
java.lang.Object
|
+--uk.ac.starlink.table.jdbc.JDBCFormatter
- public class JDBCFormatter
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JDBCFormatter
public JDBCFormatter(Connection conn)
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