/** * Sets the type for the new column based on the given SQL type. */ public ColumnBuilder setSQLType(int type) throws SQLException { return setSQLType(type, 0, null); }
/** * Sets the type for the new column based on the given SQL type and target * data length (in type specific units). */ public ColumnBuilder setSQLType(int type, int lengthInUnits) throws SQLException { return setSQLType(type, lengthInUnits, null); }
switch (matrix.getValueType()) { case DOUBLE: cb.setSQLType(Types.DOUBLE); break; case INT: cb.setSQLType(Types.INTEGER); break; default: cb.setSQLType(Types.VARCHAR); break;
.escapeName(); int lengthInUnits = md.getColumnDisplaySize(i); column.setSQLType(md.getColumnType(i), lengthInUnits); DataType type = column.getType();