@Test public void testGetType() throws OperationException { System.out.println("getQueryCode"); assertEquals(Types.CHAR, new StringField(Types.CHAR).getType()); assertEquals(Types.CHARACTER, new StringField(Types.CHARACTER).getType()); assertEquals(Types.CHARACTER_VARYING, new StringField(Types.CHARACTER_VARYING).getType()); assertEquals(Types.CHAR_VARYING, new StringField(Types.CHAR_VARYING).getType()); assertEquals(Types.VARCHAR, new StringField(Types.VARCHAR).getType()); assertEquals(Types.CHARACTER_LARGE_OBJECT, new StringField(Types.CHARACTER_LARGE_OBJECT).getType()); assertEquals(Types.CHAR_LARGE_OBJECT, new StringField(Types.CHAR_LARGE_OBJECT).getType()); assertEquals(Types.CLOB, new StringField(Types.CLOB).getType()); assertEquals(Types.NATIONAL_CHARACTER, new StringField(Types.NATIONAL_CHARACTER).getType()); assertEquals(Types.NATIONAL_CHAR, new StringField(Types.NATIONAL_CHAR).getType()); assertEquals(Types.NCHAR, new StringField(Types.NCHAR).getType()); assertEquals(Types.NATIONAL_CHARACTER_VARYING, new StringField(Types.NATIONAL_CHARACTER_VARYING).getType()); assertEquals(Types.NATIONAL_CHAR_VARYING, new StringField(Types.NATIONAL_CHAR_VARYING).getType()); assertEquals(Types.NCHAR_VARYING, new StringField(Types.NCHAR_VARYING).getType()); assertEquals(Types.NATIONAL_CHARACTER_LARGE_OBJECT, new StringField(Types.NATIONAL_CHARACTER_LARGE_OBJECT).getType()); assertEquals(Types.NCHAR_LARGE_OBJECT, new StringField(Types.NCHAR_LARGE_OBJECT).getType()); assertEquals(Types.NCLOB, new StringField(Types.NCLOB).getType()); assertEquals(Types.STRING, new StringField(Types.STRING).getType()); }
@Override public Types getType() { return type; }
StringField implements FieldType<String> { @Override public Types getType() { return type; } }
StringField implements FieldType<String> { @Override public Types getType() { return type; } StringField(final Types type);  StringField(final String defaultValue, final Types type);  StringField(final Types type, final String length);  StringField(final Types type, final String length, final String defaultValue); }
StringField implements FieldType<String> { @Override public Types getType() { return type; } StringField(final Types type);  StringField(final String defaultValue, final Types type);  StringField(final Types type, final String length);  StringField(final Types type, final String length, final String defaultValue); @Override Types getType(); long getLength(); @Override String getDefaultValue(); @Override boolean hasDefaultValue(); @Override String convert(Object objValue); @Override JSONObject toJson(); }
StringField implements FieldType<String> { @Override public Types getType() { return type; } StringField(final Types type);  StringField(final String defaultValue, final Types type);  StringField(final Types type, final String length);  StringField(final Types type, final String length, final String defaultValue); @Override Types getType(); long getLength(); @Override String getDefaultValue(); @Override boolean hasDefaultValue(); @Override String convert(Object objValue); @Override JSONObject toJson();  }