public class EntityUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static com.google.common.base.Function<Entity,Entity> |
getBelongsToFieldExtractor(String belongsToFieldName) |
static <T> com.google.common.base.Function<Entity,T> |
getFieldExtractor(String fieldName) |
static <T> Collection<T> |
getFieldsView(Collection<Entity> entities,
String fieldName) |
static com.google.common.base.Function<Entity,Long> |
getIdExtractor() |
static Collection<Long> |
getIdsView(Collection<Entity> entities) |
static <T> com.google.common.base.Function<Entity,com.google.common.base.Optional<T>> |
getSafeFieldExtractor(String fieldName) |
static com.google.common.base.Function<Entity,com.google.common.base.Optional<Long>> |
getSafeIdExtractor() |
public static com.google.common.base.Function<Entity,Entity> getBelongsToFieldExtractor(String belongsToFieldName)
public static <T> com.google.common.base.Function<Entity,T> getFieldExtractor(String fieldName)
public static <T> Collection<T> getFieldsView(Collection<Entity> entities, String fieldName)
public static Collection<Long> getIdsView(Collection<Entity> entities)
public static <T> com.google.common.base.Function<Entity,com.google.common.base.Optional<T>> getSafeFieldExtractor(String fieldName)
Copyright © 2010-2025 Qcadoo Limited