public abstract class TaskPropertyDaoBase extends org.springframework.orm.hibernate3.support.HibernateDaoSupport implements TaskPropertyDao
Base Spring DAO Class: is able to create, update, remove, load, and find objects of type
com.communote.server.persistence.tasks.TaskProperty.
TaskPropertyTRANSFORM_NONE| Constructor and Description |
|---|
TaskPropertyDaoBase() |
| Modifier and Type | Method and Description |
|---|---|
Collection<TaskProperty> |
create(Collection<TaskProperty> entities)
Creates a new instance of com.communote.server.persistence.tasks.TaskProperty and adds from
the passed in
entities collection |
Collection<TaskProperty> |
create(int transform,
Collection<TaskProperty> entities)
Does the same thing as
TaskPropertyDao.create(com.communote.server.model.task.TaskProperty) with an
additional flag called transform. |
Object |
create(int transform,
TaskProperty taskProperty)
Does the same thing as
TaskPropertyDao.create(com.communote.server.model.task.TaskProperty) with an
additional flag called transform. |
TaskProperty |
create(TaskProperty taskProperty)
Creates an instance of com.communote.server.persistence.tasks.TaskProperty and adds it to the
persistent store.
|
void |
evict(TaskProperty entity)
Evicts (removes) the entity from the hibernate cache
|
Object |
load(int transform,
Long id)
Does the same thing as
TaskPropertyDao.load(Long) with an additional flag called
transform. |
TaskProperty |
load(Long id)
Loads an instance of com.communote.server.persistence.tasks.TaskProperty from the persistent
store.
|
Collection<TaskProperty> |
loadAll()
Loads all entities of type
TaskProperty. |
Collection<?> |
loadAll(int transform)
Does the same thing as
TaskPropertyDao.loadAll() with an additional flag called
transform. |
void |
remove(Collection<TaskProperty> entities)
Removes all entities in the given
entities |
void |
remove(Long id)
Removes the instance of com.communote.server.persistence.tasks.TaskProperty having the given
identifier from the persistent store. |
void |
remove(TaskProperty taskProperty)
Removes the instance of com.communote.server.persistence.tasks.TaskProperty 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.TaskProperty) method. |
protected Object |
transformEntity(int transform,
TaskProperty 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.TaskPropertyDao, please note that the
TaskPropertyDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself will be
returned. |
void |
update(Collection<TaskProperty> entities)
Updates all instances in the
entities collection in the persistent store. |
void |
update(TaskProperty taskProperty)
Updates the
taskProperty instance in the persistent store. |
public TaskProperty create(TaskProperty taskProperty)
TaskPropertyDaocreate in interface TaskPropertyDaoTaskPropertyDao.create(com.communote.server.model.task.TaskProperty)public Object create(int transform, TaskProperty taskProperty)
TaskPropertyDao
Does the same thing as TaskPropertyDao.create(com.communote.server.model.task.TaskProperty) 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 TaskPropertyDaocom.communote.server.persistence.tasks.TaskPropertyDao#create(int transform,
com.communote.server.persistence.tasks.TaskProperty)public Collection<TaskProperty> create(int transform, Collection<TaskProperty> entities)
TaskPropertyDao
Does the same thing as TaskPropertyDao.create(com.communote.server.model.task.TaskProperty) 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 TaskPropertyDaocom.communote.server.persistence.tasks.TaskPropertyDao#create(int,
java.util.Collection) public Collection<TaskProperty> create(Collection<TaskProperty> entities)
TaskPropertyDaoentities collectioncreate in interface TaskPropertyDaoentities - the collection of com.communote.server.persistence.tasks.TaskProperty instances to
create.com.communote.server.persistence.tasks.TaskPropertyDao#create(java.util.Collection) public void evict(TaskProperty entity)
evict in interface TaskPropertyDaoentity - the entity to evictpublic Object load(int transform, Long id)
TaskPropertyDao
Does the same thing as TaskPropertyDao.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 TaskPropertyDaoid - the identifier of the entity to load.TaskPropertyDao.load(int, Long)public TaskProperty load(Long id)
TaskPropertyDaoload in interface TaskPropertyDaoTaskPropertyDao.load(Long)public Collection<TaskProperty> loadAll()
TaskPropertyDaoTaskProperty.loadAll in interface TaskPropertyDaoTaskPropertyDao.loadAll()public Collection<?> loadAll(int transform)
TaskPropertyDao
Does the same thing as TaskPropertyDao.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 TaskPropertyDaotransform - the flag indicating what transformation to use.TaskPropertyDao.loadAll(int)public void remove(TaskProperty taskProperty)
TaskPropertyDaoremove in interface TaskPropertyDaoTaskPropertyDao.remove(com.communote.server.model.task.TaskProperty)public void remove(Collection<TaskProperty> entities)
TaskPropertyDaoentities collection.remove in interface TaskPropertyDaocom.communote.server.persistence.tasks.TaskPropertyDao#remove(java.util.Collection) public void remove(Long id)
TaskPropertyDaoidentifier from the persistent store.remove in interface TaskPropertyDaoTaskPropertyDao.remove(Long)protected void transformEntities(int transform,
Collection<?> entities)
transformEntity(int,com.communote.server.model.task.TaskProperty) 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.TaskPropertyDaoentities - the collection of entities to transformtransformEntity(int,com.communote.server.model.task.TaskProperty)protected Object transformEntity(int transform, TaskProperty entity)
transform flag is set to one of the constants defined in
com.communote.server.persistence.tasks.TaskPropertyDao, please note that the
TaskPropertyDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself will be
returned.
If the integer argument value is unknown TaskPropertyDao.TRANSFORM_NONE is assumed.transform - one of the constants declared in
TaskPropertyDaoentity - an entity that was foundtransformEntities(int,java.util.Collection)public void update(TaskProperty taskProperty)
TaskPropertyDaotaskProperty instance in the persistent store.update in interface TaskPropertyDaoTaskPropertyDao.update(com.communote.server.model.task.TaskProperty)public void update(Collection<TaskProperty> entities)
TaskPropertyDaoentities collection in the persistent store.update in interface TaskPropertyDaocom.communote.server.persistence.tasks.TaskPropertyDao#update(java.util.Collection) Copyright © 2019 Communote team. All rights reserved.