@Test public void serialize() { Assert.assertThat(datatype.serialize(null), is(nullValue())); Assert.assertThat(datatype.serialize(Context.getFormService().getForm(1)), is("1")); }
@Override public String serialize(Form typedValue) { if (typedValue == null) { return null; } return typedValue.getFormId().toString(); }
FormDatatype extends SerializingCustomDatatype<Form> { @Override public String serialize(Form typedValue) { if (typedValue == null) { return null; } return typedValue.getFormId().toString(); } }
FormDatatype extends SerializingCustomDatatype<Form> { @Override public String serialize(Form typedValue) { if (typedValue == null) { return null; } return typedValue.getFormId().toString(); }  }
FormDatatype extends SerializingCustomDatatype<Form> { @Override public String serialize(Form typedValue) { if (typedValue == null) { return null; } return typedValue.getFormId().toString(); }  @Override Form deserialize(String serializedValue); @Override String serialize(Form typedValue); }
FormDatatype extends SerializingCustomDatatype<Form> { @Override public String serialize(Form typedValue) { if (typedValue == null) { return null; } return typedValue.getFormId().toString(); }  @Override Form deserialize(String serializedValue); @Override String serialize(Form typedValue);  }