Reorder methods on ScalarType only

This commit is contained in:
Rob Bygrave
2022-08-25 13:12:35 +12:00
parent 186019da7f
commit d2da4f7e52
@@ -2,7 +2,6 @@ package io.ebean.core.type;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonParser;
import io.ebean.text.StringFormatter;
import io.ebean.text.StringParser;
@@ -94,6 +93,11 @@ public interface ScalarType<T> extends StringParser, StringFormatter, ScalarData
*/
Class<T> type();
/**
* Return the type this maps to for JSON document stores.
*/
DocPropertyType docType();
/**
* Read the value from the resultSet and convert if necessary to the logical
* bean property value.
@@ -129,6 +133,14 @@ public interface ScalarType<T> extends StringParser, StringFormatter, ScalarData
*/
T toBeanType(Object value);
/**
* Convert the string value to the appropriate java object.
* <p>
* Mostly used to support CSV, JSON and XML parsing.
*/
@Override
T parse(String value);
/**
* Convert the type into a string representation.
*/
@@ -147,19 +159,6 @@ public interface ScalarType<T> extends StringParser, StringFormatter, ScalarData
return formatValue((T) value);
}
/**
* Convert the string value to the appropriate java object.
* <p>
* Mostly used to support CSV, JSON and XML parsing.
*/
@Override
T parse(String value);
/**
* Return the type this maps to for JSON document stores.
*/
DocPropertyType docType();
/**
* Convert the value into a long version value.
*/