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.
TaskExecutionTRANSFORM_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)
TaskExecutionDaocreate in interface TaskExecutionDaoTaskExecutionDao.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 TaskExecutionDaocom.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 TaskExecutionDaocom.communote.server.persistence.tasks.TaskExecutionDao#create(int,
java.util.Collection) public Collection<TaskExecution> create(Collection<TaskExecution> entities)
TaskExecutionDaoentities collectioncreate in interface TaskExecutionDaoentities - 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 TaskExecutionDaoentity - the entity to evictpublic TaskExecution findTaskExecution(String uniqueTaskName)
TaskExecutionDaofindTaskExecution in interface TaskExecutionDaouniqueTaskName - Name of the task.
TaskExecutionDao.findTaskExecution(String)public Collection<TaskExecution> findTaskExecutions(String instanceName)
TaskExecutionDaofindTaskExecutions in interface TaskExecutionDaoTaskExecutionDao.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 TaskExecutionDaoid - the identifier of the entity to load.TaskExecutionDao.load(int, Long)public TaskExecution load(Long id)
TaskExecutionDaoload in interface TaskExecutionDaoTaskExecutionDao.load(Long)public Collection<TaskExecution> loadAll()
TaskExecutionDaoTaskExecution.loadAll in interface TaskExecutionDaoTaskExecutionDao.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 TaskExecutionDaotransform - the flag indicating what transformation to use.TaskExecutionDao.loadAll(int)public void remove(TaskExecution taskExecution)
TaskExecutionDaoremove in interface TaskExecutionDaoTaskExecutionDao.remove(com.communote.server.model.task.TaskExecution)public void remove(Collection<TaskExecution> entities)
TaskExecutionDaoentities collection.remove in interface TaskExecutionDaocom.communote.server.persistence.tasks.TaskExecutionDao#remove(java.util.Collection) public void remove(Long id)
TaskExecutionDaoidentifier from the persistent store.remove in interface TaskExecutionDaoTaskExecutionDao.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.TaskExecutionDaoentities - 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
TaskExecutionDaoentity - an entity that was foundtransformEntities(int,java.util.Collection)public void update(TaskExecution taskExecution)
TaskExecutionDaotaskExecution instance in the persistent store.update in interface TaskExecutionDaoTaskExecutionDao.update(com.communote.server.model.task.TaskExecution)public void update(Collection<TaskExecution> entities)
TaskExecutionDaoentities collection in the persistent store.update in interface TaskExecutionDaocom.communote.server.persistence.tasks.TaskExecutionDao#update(java.util.Collection) Copyright © 2019 Communote team. All rights reserved.