@Component(value="core_FluentLoader")
@Scope(value="prototype")
public class FluentLoader<E>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
FluentLoader.ByCondition<E> |
static class |
FluentLoader.ById<E> |
static class |
FluentLoader.ByIds<E> |
static class |
FluentLoader.ByQuery<E> |
Modifier and Type | Field and Description |
---|---|
protected org.springframework.context.ApplicationContext |
applicationContext |
Constructor and Description |
---|
FluentLoader(java.lang.Class<E> entityClass) |
Modifier and Type | Method and Description |
---|---|
FluentLoader.ByCondition<E> |
all()
Load all instances.
|
FluentLoader.ByCondition<E> |
condition(Condition condition)
Load by condition.
|
protected void |
createFetchPlanBuilder() |
FluentLoader.ById<E> |
id(java.lang.Object id)
Load by entity identifier.
|
FluentLoader.ByIds<E> |
ids(java.util.Collection ids)
Load by collection of entity identifiers.
|
FluentLoader.ByIds<E> |
ids(java.lang.Object... ids)
Load by array of entity identifiers.
|
protected LoadContext<E> |
instantiateLoadContext(MetaClass metaClass) |
FluentLoader.ByQuery<E> |
query(java.lang.String queryString)
Load by query.
|
FluentLoader.ByQuery<E> |
query(java.lang.String queryString,
java.lang.Object... parameters)
Load by query with positional parameters (e.g.
|
void |
setDataManager(UnconstrainedDataManager dataManager) |
@Autowired protected org.springframework.context.ApplicationContext applicationContext
public FluentLoader(java.lang.Class<E> entityClass)
public void setDataManager(UnconstrainedDataManager dataManager)
protected LoadContext<E> instantiateLoadContext(MetaClass metaClass)
protected void createFetchPlanBuilder()
public FluentLoader.ById<E> id(java.lang.Object id)
public FluentLoader.ByIds<E> ids(java.lang.Object... ids)
public FluentLoader.ByIds<E> ids(java.util.Collection ids)
public FluentLoader.ByQuery<E> query(java.lang.String queryString)
public FluentLoader.ByQuery<E> query(java.lang.String queryString, java.lang.Object... parameters)
"e.name = ?1 and e.status = ?2"
).public FluentLoader.ByCondition<E> condition(Condition condition)
public FluentLoader.ByCondition<E> all()