@Test public void testGetType() throws OperationException { System.out.println("getQueryCode"); TimestampField instance; instance = new TimestampField(); assertEquals(Types.TIMESTAMP, instance.getType()); instance = new TimestampField(new Timestamp(System.currentTimeMillis())); assertEquals(Types.TIMESTAMP, instance.getType()); instance = new TimestampField(true); assertEquals(Types.TIMESTAMP, instance.getType()); instance = new TimestampField(2); assertEquals(Types.TIMESTAMP, instance.getType()); instance = new TimestampField(true, new Timestamp(System.currentTimeMillis())); assertEquals(Types.TIMESTAMP, instance.getType()); instance = new TimestampField(true, 2); assertEquals(Types.TIMESTAMP, instance.getType()); instance = new TimestampField(true, 2, new Timestamp(System.currentTimeMillis())); assertEquals(Types.TIMESTAMP, instance.getType()); }
@Override public Types getType() { return type; }
TimestampField implements FieldType<Timestamp> { @Override public Types getType() { return type; } }
TimestampField implements FieldType<Timestamp> { @Override public Types getType() { return type; } TimestampField();  TimestampField(final Timestamp defaultValue);  TimestampField(final boolean withTimeZone);  TimestampField(final int precision);  TimestampField(final boolean withTimeZone, final Timestamp defaultValue);  TimestampField(final boolean withTimeZone, final int precision);  TimestampField(final boolean withTimeZone, final int precision, final Timestamp defaultValue); }
TimestampField implements FieldType<Timestamp> { @Override public Types getType() { return type; } TimestampField();  TimestampField(final Timestamp defaultValue);  TimestampField(final boolean withTimeZone);  TimestampField(final int precision);  TimestampField(final boolean withTimeZone, final Timestamp defaultValue);  TimestampField(final boolean withTimeZone, final int precision);  TimestampField(final boolean withTimeZone, final int precision, final Timestamp defaultValue); @Override Types getType(); boolean isWithTimeZone(); int getPrecision(); @Override Timestamp getDefaultValue(); @Override boolean hasDefaultValue(); @Override final Timestamp convert(Object objValue); @Override JSONObject toJson(); }
TimestampField implements FieldType<Timestamp> { @Override public Types getType() { return type; } TimestampField();  TimestampField(final Timestamp defaultValue);  TimestampField(final boolean withTimeZone);  TimestampField(final int precision);  TimestampField(final boolean withTimeZone, final Timestamp defaultValue);  TimestampField(final boolean withTimeZone, final int precision);  TimestampField(final boolean withTimeZone, final int precision, final Timestamp defaultValue); @Override Types getType(); boolean isWithTimeZone(); int getPrecision(); @Override Timestamp getDefaultValue(); @Override boolean hasDefaultValue(); @Override final Timestamp convert(Object objValue); @Override JSONObject toJson();  }