public abstract class TaskExecutionDaoBase extends org.springframework.orm.hibernate3.support.HibernateDaoSupport implements TaskExecutionDao
Base Spring DAO Class: is able to create, update, remove, load, and find objects of type
com.communote.server.persistence.tasks.TaskExecution
.
TaskExecution
TRANSFORM_NONE
Constructor and Description |
---|
TaskExecutionDaoBase() |
Modifier and Type | Method and Description |
---|---|
Collection<TaskExecution> |
create(Collection<TaskExecution> entities)
Creates a new instance of com.communote.server.persistence.tasks.TaskExecution and adds from
the passed in
entities collection |
Collection<TaskExecution> |
create(int transform,
Collection<TaskExecution> entities)
Does the same thing as
TaskExecutionDao.create(com.communote.server.model.task.TaskExecution) with an
additional flag called transform . |
Object |
create(int transform,
TaskExecution taskExecution)
Does the same thing as
TaskExecutionDao.create(com.communote.server.model.task.TaskExecution) with an
additional flag called transform . |
TaskExecution |
create(TaskExecution taskExecution)
Creates an instance of com.communote.server.persistence.tasks.TaskExecution and adds it to
the persistent store.
|
void |
evict(TaskExecution entity)
Evicts (removes) the entity from the hibernate cache
|
TaskExecution |
findTaskExecution(String uniqueTaskName) |
Collection<TaskExecution> |
findTaskExecutions(String instanceName) |
protected abstract TaskExecution |
handleFindTaskExecution(String uniqueTaskName)
Performs the core logic for
findTaskExecution(String) |
protected abstract Collection<TaskExecution> |
handleFindTaskExecutions(String instanceName)
Performs the core logic for
findTaskExecutions(String) |
Object |
load(int transform,
Long id)
Does the same thing as
TaskExecutionDao.load(Long) with an additional flag called
transform . |
TaskExecution |
load(Long id)
Loads an instance of com.communote.server.persistence.tasks.TaskExecution from the persistent
store.
|
Collection<TaskExecution> |
loadAll()
Loads all entities of type
TaskExecution . |
Collection<?> |
loadAll(int transform)
Does the same thing as
TaskExecutionDao.loadAll() with an additional flag called
transform . |
void |
remove(Collection<TaskExecution> entities)
Removes all entities in the given
entities |
void |
remove(Long id)
Removes the instance of com.communote.server.persistence.tasks.TaskExecution having the given
identifier from the persistent store. |
void |
remove(TaskExecution taskExecution)
Removes the instance of com.communote.server.persistence.tasks.TaskExecution from the
persistent store.
|
protected void |
transformEntities(int transform,
Collection<?> entities)
Transforms a collection of entities using the
transformEntity(int,com.communote.server.model.task.TaskExecution) method. |
protected Object |
transformEntity(int transform,
TaskExecution entity)
Allows transformation of entities into value objects (or something else for that matter),
when the
transform flag is set to one of the constants defined in
com.communote.server.persistence.tasks.TaskExecutionDao , please note that the
TaskExecutionDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself will be
returned. |
void |
update(Collection<TaskExecution> entities)
Updates all instances in the
entities collection in the persistent store. |
void |
update(TaskExecution taskExecution)
Updates the
taskExecution instance in the persistent store. |
public TaskExecution create(TaskExecution taskExecution)
TaskExecutionDao
create
in interface TaskExecutionDao
TaskExecutionDao.create(com.communote.server.model.task.TaskExecution)
public Object create(int transform, TaskExecution taskExecution)
TaskExecutionDao
Does the same thing as TaskExecutionDao.create(com.communote.server.model.task.TaskExecution)
with an
additional flag called transform
. If this flag is set to
TRANSFORM_NONE
then the returned entity will NOT be
transformed. If this flag is any of the other constants defined here then the result
WILL BE passed through an operation which can optionally transform the
entity (into a value object for example). By default, transformation does not occur.
create
in interface TaskExecutionDao
com.communote.server.persistence.tasks.TaskExecutionDao#create(int transform,
com.communote.server.persistence.tasks.TaskExecution)
public Collection<TaskExecution> create(int transform, Collection<TaskExecution> entities)
TaskExecutionDao
Does the same thing as TaskExecutionDao.create(com.communote.server.model.task.TaskExecution)
with an
additional flag called transform
. If this flag is set to
TRANSFORM_NONE
then the returned entity will NOT be
transformed. If this flag is any of the other constants defined here then the result
WILL BE passed through an operation which can optionally transform the
entities (into value objects for example). By default, transformation does not occur.
create
in interface TaskExecutionDao
com.communote.server.persistence.tasks.TaskExecutionDao#create(int,
java.util.Collection)
public Collection<TaskExecution> create(Collection<TaskExecution> entities)
TaskExecutionDao
entities
collectioncreate
in interface TaskExecutionDao
entities
- the collection of com.communote.server.persistence.tasks.TaskExecution instances
to create.com.communote.server.persistence.tasks.TaskExecutionDao#create(java.util.Collection)
public void evict(TaskExecution entity)
evict
in interface TaskExecutionDao
entity
- the entity to evictpublic TaskExecution findTaskExecution(String uniqueTaskName)
TaskExecutionDao
findTaskExecution
in interface TaskExecutionDao
uniqueTaskName
- Name of the task.
TaskExecutionDao.findTaskExecution(String)
public Collection<TaskExecution> findTaskExecutions(String instanceName)
TaskExecutionDao
findTaskExecutions
in interface TaskExecutionDao
TaskExecutionDao.findTaskExecutions(String)
protected abstract TaskExecution handleFindTaskExecution(String uniqueTaskName)
findTaskExecution(String)
protected abstract Collection<TaskExecution> handleFindTaskExecutions(String instanceName)
findTaskExecutions(String)
public Object load(int transform, Long id)
TaskExecutionDao
Does the same thing as TaskExecutionDao.load(Long)
with an additional flag called
transform
. If this flag is set to TRANSFORM_NONE
then the returned
entity will NOT be transformed. If this flag is any of the other constants
defined in this class then the result WILL BE passed through an operation
which can optionally transform the entity (into a value object for example). By default,
transformation does not occur.
load
in interface TaskExecutionDao
id
- the identifier of the entity to load.TaskExecutionDao.load(int, Long)
public TaskExecution load(Long id)
TaskExecutionDao
load
in interface TaskExecutionDao
TaskExecutionDao.load(Long)
public Collection<TaskExecution> loadAll()
TaskExecutionDao
TaskExecution
.loadAll
in interface TaskExecutionDao
TaskExecutionDao.loadAll()
public Collection<?> loadAll(int transform)
TaskExecutionDao
Does the same thing as TaskExecutionDao.loadAll()
with an additional flag called
transform
. If this flag is set to TRANSFORM_NONE
then the returned
entity will NOT be transformed. If this flag is any of the other constants
defined here then the result WILL BE passed through an operation which can
optionally transform the entity (into a value object for example). By default, transformation
does not occur.
loadAll
in interface TaskExecutionDao
transform
- the flag indicating what transformation to use.TaskExecutionDao.loadAll(int)
public void remove(TaskExecution taskExecution)
TaskExecutionDao
remove
in interface TaskExecutionDao
TaskExecutionDao.remove(com.communote.server.model.task.TaskExecution)
public void remove(Collection<TaskExecution> entities)
TaskExecutionDao
entities collection.
remove
in interface TaskExecutionDao
com.communote.server.persistence.tasks.TaskExecutionDao#remove(java.util.Collection)
public void remove(Long id)
TaskExecutionDao
identifier
from the persistent store.remove
in interface TaskExecutionDao
TaskExecutionDao.remove(Long)
protected void transformEntities(int transform, Collection<?> entities)
transformEntity(int,com.communote.server.model.task.TaskExecution)
method. This
method does not instantiate a new collection.
This method is to be used internally only.transform
- one of the constants declared in
com.communote.server.persistence.tasks.TaskExecutionDao
entities
- the collection of entities to transformtransformEntity(int,com.communote.server.model.task.TaskExecution)
protected Object transformEntity(int transform, TaskExecution entity)
transform
flag is set to one of the constants defined in
com.communote.server.persistence.tasks.TaskExecutionDao
, please note that the
TaskExecutionDao.TRANSFORM_NONE
constant denotes no transformation, so the entity itself will be
returned.
If the integer argument value is unknown TaskExecutionDao.TRANSFORM_NONE
is assumed.transform
- one of the constants declared in
TaskExecutionDao
entity
- an entity that was foundtransformEntities(int,java.util.Collection)
public void update(TaskExecution taskExecution)
TaskExecutionDao
taskExecution
instance in the persistent store.update
in interface TaskExecutionDao
TaskExecutionDao.update(com.communote.server.model.task.TaskExecution)
public void update(Collection<TaskExecution> entities)
TaskExecutionDao
entities
collection in the persistent store.update
in interface TaskExecutionDao
com.communote.server.persistence.tasks.TaskExecutionDao#update(java.util.Collection)
Copyright © 2019 Communote team. All rights reserved.