Package uk.ac.starlink.table.jdbc
Class JDBCFormatter.SqlColumn
- java.lang.Object
-
- uk.ac.starlink.table.jdbc.JDBCFormatter.SqlColumn
-
- Enclosing class:
- JDBCFormatter
public static class JDBCFormatter.SqlColumn extends java.lang.ObjectDescribes a column as it will be written to a table in an RDBMS.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetColumnName()Name used for the column.intgetSqlType()Returns the SQL type code for this column.java.lang.StringgetTypeSpec()Type specification as used in CREATE statement.
-
-
-
Method Detail
-
getSqlType
public int getSqlType()
Returns the SQL type code for this column.- Returns:
- symbolic integer from
Types
-
getColumnName
public java.lang.String getColumnName()
Name used for the column.- Returns:
- column name
-
getTypeSpec
public java.lang.String getTypeSpec()
Type specification as used in CREATE statement.- Returns:
- column type specification
-
-