Package | Description |
---|---|
com.speedment.encoder |
Encoders used to transform generated Speedment entities to other formats are
located in this package.
|
Modifier and Type | Interface and Description |
---|---|
interface |
Encoder<ENTITY,R extends Encoder<ENTITY,R,OUTPUT_TYPE>,OUTPUT_TYPE>
The Encoder can be used to format an
Entity into any kind of strings. |
Modifier and Type | Class and Description |
---|---|
class |
JsonEncoder<ENTITY> |
Modifier and Type | Method and Description |
---|---|
<D,T,FK_ENTITY,I extends FieldTrait & ReferenceFieldTrait<ENTITY,D,T> & ReferenceForeignKeyFieldTrait<ENTITY,D,FK_ENTITY>> |
Encoder.put(I field,
Encoder<FK_ENTITY,?,OUTPUT_TYPE> fkFormatter)
Adds this ReferenceForeignKeyField to the output renderer.
|
<D,T,FK_ENTITY,I extends FieldTrait & ReferenceFieldTrait<ENTITY,D,T> & ReferenceForeignKeyFieldTrait<ENTITY,D,FK_ENTITY>> |
JsonEncoder.put(I field,
Encoder<FK_ENTITY,?,String> builder) |
<FK_ENTITY> |
Encoder.put(String label,
Function<ENTITY,FK_ENTITY> getter,
Encoder<FK_ENTITY,?,OUTPUT_TYPE> fkFormatter)
Adds a field that corresponds to the label to the output renderer.
|
<FK_ENTITY> |
JsonEncoder.put(String label,
Function<ENTITY,FK_ENTITY> getter,
Encoder<FK_ENTITY,?,String> builder) |
<FK_ENTITY> |
Encoder.putStreamer(String label,
Function<ENTITY,Stream<FK_ENTITY>> streamer,
Encoder<FK_ENTITY,?,OUTPUT_TYPE> fkFormatter)
Adds a field that corresponds to the label to the output renderer.
|
<FK_ENTITY> |
JsonEncoder.putStreamer(String label,
Function<ENTITY,Stream<FK_ENTITY>> streamer,
Encoder<FK_ENTITY,?,String> builder) |
Copyright © 2016 Speedment, Inc.. All rights reserved.