@Test public void testDefaultConsturctor() { System.out.println("BinaryField(Types)"); BinaryField instance; for (Types type : Types.values()) { try { new BinaryField(type); if (!(type == Types.BINARY_LARGE_OBJECT || type == Types.BLOB)) { fail("Incorrectly accepted " + type.getType() + " as a valid binary type"); } } catch (OperationException ex) { if (ex.getErrorCode() != ErrorCode.DATATYPE_MISMATCH) { fail("Incorrect error code reported for data type mismatch"); } if (type == Types.BINARY_LARGE_OBJECT || type == Types.BLOB) { fail("Incorrectly reported " + type.getType() + " as an invalid binary type"); } } } }
@Override public Types getType() { return type; }
BinaryField implements FieldType<byte[]> { @Override public Types getType() { return type; } }
BinaryField implements FieldType<byte[]> { @Override public Types getType() { return type; } BinaryField(Types type);  BinaryField(Types type, String lengthString); }
BinaryField implements FieldType<byte[]> { @Override public Types getType() { return type; } BinaryField(Types type);  BinaryField(Types type, String lengthString); @Override Types getType(); long getLength(); @Override byte[] getDefaultValue(); @Override boolean hasDefaultValue(); @Override byte[] convert(Object objValue); @Override JSONObject toJson(); }
BinaryField implements FieldType<byte[]> { @Override public Types getType() { return type; } BinaryField(Types type);  BinaryField(Types type, String lengthString); @Override Types getType(); long getLength(); @Override byte[] getDefaultValue(); @Override boolean hasDefaultValue(); @Override byte[] convert(Object objValue); @Override JSONObject toJson();  }