Package com.blazebit.persistence
Interface ReturningObjectBuilder<T>
-
- Type Parameters:
T- The type that this builder produces
public interface ReturningObjectBuilder<T>An object build provides the returning bindings that should be used by aReturningModificationCriteriaBuilderand provides methods for transforming tuples into the target typeT.- Since:
- 1.1.0
- Author:
- Christian Beikov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidapplyReturning(SimpleReturningBuilder returningBuilder)Applies the returning bindings necessary for this object builder to work.Tbuild(Object[] tuple)Builds an object of the target typeTfrom the given tuple.List<T>buildList(List<T> list)Transforms the given list and returns the result.
-
-
-
Method Detail
-
applyReturning
void applyReturning(SimpleReturningBuilder returningBuilder)
Applies the returning bindings necessary for this object builder to work.- Parameters:
returningBuilder- The returningBuilder on which to apply the returning bindings
-
build
T build(Object[] tuple)
Builds an object of the target typeTfrom the given tuple.- Parameters:
tuple- The result tuple- Returns:
- The target object
-
-