|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.table.jdbc.TypeMappers
public class TypeMappers
TypeMapper implementation classes.
Field Summary | |
---|---|
static TypeMapper |
IDENTITY
TypeMapper implementation which performs no conversions. |
static TypeMapper |
STANDARD
TypeMapper implementation which performs generally useful conversions. |
Method Summary | |
---|---|
static ValueHandler |
createIdentityValueHandler(ResultSetMetaData meta,
int jcol1)
Constructs a new ValueHandler which performs no conversions. |
static ValueHandler |
createStringValueHandler(ResultSetMetaData meta,
int jcol1)
Constructs a new ValueHandler which converts values to Strings. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final TypeMapper STANDARD
Date
subclasses (including
java.sql.Date
, java.sql.Time
and
java.sql.Timestamp
are turned into Strings.
The intention is that by using this implementation you will get
an output table which can be written using non-specialist output
formats such as FITS and VOTable.
public static final TypeMapper IDENTITY
Method Detail |
---|
public static ValueHandler createIdentityValueHandler(ResultSetMetaData meta, int jcol1) throws SQLException
meta
- JDBC metadata objectjcol1
- JDBC column index (first column is 1)
SQLException
public static ValueHandler createStringValueHandler(ResultSetMetaData meta, int jcol1) throws SQLException
meta
- JDBC metadata objectjcol1
- JDBC column index (first column is 1)
SQLException
|
Copyright © 2004 CLRC: Central Laboratory of the Research Councils. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |