List of usage examples for java.sql Time setTime
public void setTime(long time)
Time
object using a milliseconds time value. From source file:org.apache.phoenix.jdbc.PhoenixResultSet.java
@Override public Time getTime(int columnIndex, Calendar cal) throws SQLException { checkCursorState();//from ww w . ja v a 2 s .c om Time value = (Time) rowProjector.getColumnProjector(columnIndex - 1).getValue(currentRow, PTime.INSTANCE, ptr); wasNull = (value == null); if (value == null) { return null; } cal.setTime(value); value.setTime(cal.getTimeInMillis()); return value; }