List of usage examples for java.sql JDBCType TIME
JDBCType TIME
To view the source code for java.sql JDBCType TIME.
Click Source Link
From source file:com.microsoft.sqlserver.testframework.sqlType.SqlTime.java
public SqlTime() { super("time", JDBCType.TIME, null, null); type = java.sql.Time.class; try {//from ww w. j a v a 2s . c om minvalue = new Time(dateFormat.parse((String) SqlTypeValue.TIME.minValue).getTime()); maxvalue = new Time(dateFormat.parse((String) SqlTypeValue.TIME.maxValue).getTime()); } catch (ParseException ex) { fail(ex.getMessage()); } this.precision = 7; this.variableLengthType = VariableLengthType.Precision; generatePrecision(); formatter = new DateTimeFormatterBuilder().appendPattern(basePattern) .appendFraction(ChronoField.NANO_OF_SECOND, 0, this.precision, true).toFormatter(); }
From source file:com.microsoft.sqlserver.testframework.DBTable.java
/** * /*from www . ja v a 2 s .com*/ * @param colNum * @return <code>true</code> if value can be passed as String for the column */ boolean passDataAsString(int colNum) { return (JDBCType.CHAR == getColumn(colNum).getJdbctype() || JDBCType.VARCHAR == getColumn(colNum).getJdbctype() || JDBCType.NCHAR == getColumn(colNum).getJdbctype() || JDBCType.NVARCHAR == getColumn(colNum).getJdbctype() || JDBCType.TIMESTAMP == getColumn(colNum).getJdbctype() || JDBCType.DATE == getColumn(colNum).getJdbctype() || JDBCType.TIME == getColumn(colNum).getJdbctype() || JDBCType.LONGVARCHAR == getColumn(colNum).getJdbctype() || JDBCType.LONGNVARCHAR == getColumn(colNum).getJdbctype()); }