public interface DataLoader
InstanceContainer
,
CollectionContainer
Modifier and Type | Method and Description |
---|---|
Condition |
getCondition()
Returns the root condition which is used together with the query when loading entities.
|
InstanceContainer |
getContainer()
Returns connected container.
|
DataContext |
getDataContext()
Returns data context.
|
java.lang.Object |
getParameter(java.lang.String name)
Returns a query parameter by its name.
|
java.util.Map<java.lang.String,java.lang.Object> |
getParameters()
Returns the map of query parameters.
|
java.lang.String |
getQuery()
Returns the query which is used for loading entities.
|
boolean |
isSoftDeletion()
Returns true if the loader respects soft deletion, i.e.
|
void |
load()
Loads data to the connected container.
|
void |
removeParameter(java.lang.String name)
Removes a query parameter.
|
void |
setCondition(Condition condition)
Sets the root condition which will be used together with the query when loading entities.
|
void |
setDataContext(DataContext dataContext)
Sets the data context for the loader.
|
void |
setParameter(java.lang.String name,
java.lang.Object value)
Sets a query parameter.
|
void |
setParameters(java.util.Map<java.lang.String,java.lang.Object> parameters)
Sets the map of query parameters.
|
void |
setQuery(java.lang.String query)
Sets a query which will be used for loading entities.
|
void |
setSoftDeletion(boolean softDeletion)
Set to false if you want to load softly deleted instances too.
|
void load()
InstanceContainer getContainer()
@Nullable DataContext getDataContext()
void setDataContext(@Nullable DataContext dataContext)
java.lang.String getQuery()
void setQuery(java.lang.String query)
Condition getCondition()
void setCondition(Condition condition)
java.util.Map<java.lang.String,java.lang.Object> getParameters()
void setParameters(java.util.Map<java.lang.String,java.lang.Object> parameters)
@Nullable java.lang.Object getParameter(java.lang.String name)
void setParameter(java.lang.String name, @Nullable java.lang.Object value)
void removeParameter(java.lang.String name)
boolean isSoftDeletion()
void setSoftDeletion(boolean softDeletion)