@Test public void testGetType() throws OperationException { System.out.println("getQueryCode"); assertEquals(Types.NUMERIC, new NumberField(Types.NUMERIC).getType()); assertEquals(Types.DECIMAL, new NumberField(Types.DECIMAL).getType()); assertEquals(Types.DEC, new NumberField(Types.DEC).getType()); assertEquals(Types.SMALLINT, new NumberField(Types.SMALLINT).getType()); assertEquals(Types.INTEGER, new NumberField(Types.INTEGER).getType()); assertEquals(Types.LONG, new NumberField(Types.LONG).getType()); assertEquals(Types.INT, new NumberField(Types.INT).getType()); assertEquals(Types.BIGINT, new NumberField(Types.BIGINT).getType()); assertEquals(Types.FLOAT, new NumberField(Types.FLOAT).getType()); assertEquals(Types.REAL, new NumberField(Types.REAL).getType()); assertEquals(Types.DOUBLE_PRECISION, new NumberField(Types.DOUBLE_PRECISION).getType()); }
@Override public Types getType() { return type; }
NumberField implements FieldType<Number> { @Override public Types getType() { return type; } }
NumberField implements FieldType<Number> { @Override public Types getType() { return type; } NumberField(final Types type);  NumberField(final Types type, final Number defaultValue);  NumberField(final Types type, final int precision);  NumberField(final int scale, final Types type);  NumberField(final Types type, final int precision, final Number defaultValue);  NumberField(final int scale, final Types type, final Number defaultValue);  NumberField(final Types type, final int precision, final int scale);  NumberField(final Types type, final int precision, final int scale, final Number defaultValue); }
NumberField implements FieldType<Number> { @Override public Types getType() { return type; } NumberField(final Types type);  NumberField(final Types type, final Number defaultValue);  NumberField(final Types type, final int precision);  NumberField(final int scale, final Types type);  NumberField(final Types type, final int precision, final Number defaultValue);  NumberField(final int scale, final Types type, final Number defaultValue);  NumberField(final Types type, final int precision, final int scale);  NumberField(final Types type, final int precision, final int scale, final Number defaultValue); @Override Types getType(); int getPrecision(); Integer getScale(); @Override Number getDefaultValue(); @Override boolean hasDefaultValue(); @Override Number convert(Object objValue); @Override JSONObject toJson(); }
NumberField implements FieldType<Number> { @Override public Types getType() { return type; } NumberField(final Types type);  NumberField(final Types type, final Number defaultValue);  NumberField(final Types type, final int precision);  NumberField(final int scale, final Types type);  NumberField(final Types type, final int precision, final Number defaultValue);  NumberField(final int scale, final Types type, final Number defaultValue);  NumberField(final Types type, final int precision, final int scale);  NumberField(final Types type, final int precision, final int scale, final Number defaultValue); @Override Types getType(); int getPrecision(); Integer getScale(); @Override Number getDefaultValue(); @Override boolean hasDefaultValue(); @Override Number convert(Object objValue); @Override JSONObject toJson();  }