public interface RecordSerializable extends JsonSerializable
Modifier and Type | Field and Description |
---|---|
static String |
SERIALIZED_CLASS_NAME |
static Class<RecordSerializable> |
TYPE |
Modifier and Type | Method and Description |
---|---|
static <C extends Collection<String>> |
fromArrayValue(Record source,
String arrayValueFieldName,
C collection) |
static <T extends RecordSerializable,C extends Collection<T>> |
fromArrayValue(Record source,
String arrayValueFieldName,
Class<T> componentType,
C collection) |
static <T extends RecordSerializable,C extends Collection<T>> |
fromArrayValue(Record source,
String arrayValueFieldName,
Class<T> componentType,
C collection,
boolean useNewInstanceFromRecord) |
default JsonSerializable |
fromJson(InputStream inputStream) |
default JsonSerializable |
fromJson(String json) |
RecordSerializable |
fromRecord(Record source)
Loads this instance's state from a record and returns
this (for fluid API call chaining). |
static <T extends RecordSerializable> |
newInstanceFromRecord(Record source) |
static <T extends RecordSerializable> |
newInstanceFromRecord(Record source,
Class<? super T> type) |
static <T extends RecordSerializable> |
toArrayValue(Collection<T> collection) |
default String |
toJson() |
default RecordSerializable |
toJson(Writer writer) |
default RecordSerializable |
toJson(Writer writer,
boolean closeWriter) |
Record |
toRecord() |
static Record |
toRecord(RecordSerializable source) |
newInstanceFromJson
static final String SERIALIZED_CLASS_NAME
static final Class<RecordSerializable> TYPE
Record toRecord()
RecordSerializable fromRecord(Record source)
this
(for fluid API call chaining).
For fluid API call chaining, the overridden method should change the declared return type to its class.source
- static Record toRecord(RecordSerializable source)
static <T extends RecordSerializable> T newInstanceFromRecord(Record source)
static <T extends RecordSerializable> T newInstanceFromRecord(Record source, Class<? super T> type)
default String toJson()
toJson
in interface JsonSerializable
default RecordSerializable toJson(Writer writer)
toJson
in interface JsonSerializable
default RecordSerializable toJson(Writer writer, boolean closeWriter)
toJson
in interface JsonSerializable
default JsonSerializable fromJson(String json)
fromJson
in interface JsonSerializable
default JsonSerializable fromJson(InputStream inputStream)
fromJson
in interface JsonSerializable
static <T extends RecordSerializable> ArrayValue toArrayValue(Collection<T> collection)
static <T extends RecordSerializable,C extends Collection<T>> C fromArrayValue(Record source, String arrayValueFieldName, Class<T> componentType, C collection, boolean useNewInstanceFromRecord)
static <T extends RecordSerializable,C extends Collection<T>> C fromArrayValue(Record source, String arrayValueFieldName, Class<T> componentType, C collection)
static <C extends Collection<String>> C fromArrayValue(Record source, String arrayValueFieldName, C collection)
Copyright (c) 2006-2024 North Concepts Inc. All Rights Reserved.