TEntity
- The type of entity.@FunctionalInterface public static interface ModelCallback.Function<TEntity>
Modifier and Type | Method and Description |
---|---|
ModelPrimitive |
invoke(Transaction transaction,
TEntity entity)
Returns the model for the specified entity.
|
ModelPrimitive invoke(Transaction transaction, TEntity entity)
ModelPrimitive
should be returned
for each given entity.transaction
- The transaction to use.entity
- The entity for which to retrieve a model.