Package | Description |
---|---|
com.speedment |
The base package of Speedment.
|
com.speedment.encoder |
Encoders used to transform generated Speedment entities to other formats are
located in this package.
|
com.speedment.util |
Utility classes used both internally and in generated code is located in this
package.
|
Modifier and Type | Method and Description |
---|---|
String |
Entity.toJson(JsonEncoder<ENTITY> encoder)
Returns a JSON representation of this Entity using the provided
JsonEncoder . |
Modifier and Type | Method and Description |
---|---|
static <ENTITY> JsonEncoder<ENTITY> |
JsonEncoder.allOf(Manager<ENTITY> manager)
Creates and return a new JsonEncoder with all the Entity fields added to
the renderer.
|
static <ENTITY> JsonEncoder<ENTITY> |
JsonEncoder.noneOf(Manager<ENTITY> manager)
Creates and return a new JsonEncoder with no fields added to the
renderer.
|
static <ENTITY> JsonEncoder<ENTITY> |
JsonEncoder.of(Manager<ENTITY> manager,
FieldTrait... fields)
Creates and return a new JsonEncoder with the provided Entity field(s)
added to the renderer.
|
<D,T,I extends FieldTrait & ReferenceFieldTrait<ENTITY,D,T>> |
JsonEncoder.put(I field) |
<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> |
JsonEncoder.put(String label,
Function<ENTITY,FK_ENTITY> getter,
Encoder<FK_ENTITY,?,String> builder) |
<T> JsonEncoder<ENTITY> |
JsonEncoder.put(String label,
Function<ENTITY,T> getter) |
<FK_ENTITY> |
JsonEncoder.putStreamer(String label,
Function<ENTITY,Stream<FK_ENTITY>> streamer,
Encoder<FK_ENTITY,?,String> builder) |
<FK_ENTITY> |
JsonEncoder.putStreamer(String label,
Function<ENTITY,Stream<FK_ENTITY>> streamer,
Function<FK_ENTITY,String> encoder) |
JsonEncoder<ENTITY> |
JsonEncoder.remove(FieldTrait field) |
JsonEncoder<ENTITY> |
JsonEncoder.remove(String label) |
Modifier and Type | Method and Description |
---|---|
static <T> Collector<T,?,String> |
CollectorUtil.toJson(JsonEncoder<T> encoder)
Returns a collector that calls the specified encoder for each element in
the stream and joins the resuling stream separated by commas and
surrounded by square brackets.
|
Copyright © 2016 Speedment, Inc.. All rights reserved.