public abstract class ConfigurationDaoBase extends org.springframework.orm.hibernate3.support.HibernateDaoSupport implements ConfigurationDao
Base Spring DAO Class: is able to create, update, remove, load, and find objects of type
com.communote.server.persistence.config.Configuration.
ConfigurationTRANSFORM_NONE| Constructor and Description |
|---|
ConfigurationDaoBase() |
| Modifier and Type | Method and Description |
|---|---|
Collection<Configuration> |
create(Collection<Configuration> entities)
Creates a new instance of com.communote.server.persistence.config.Configuration and adds from
the passed in
entities collection |
Configuration |
create(Configuration configuration)
Creates an instance of com.communote.server.persistence.config.Configuration and adds it to
the persistent store.
|
Collection<Configuration> |
create(int transform,
Collection<Configuration> entities)
Does the same thing as
ConfigurationDao.create(com.communote.server.model.config.Configuration) with
an additional flag called transform. |
Object |
create(int transform,
Configuration configuration)
Does the same thing as
ConfigurationDao.create(com.communote.server.model.config.Configuration) with
an additional flag called transform. |
void |
evict(Configuration entity)
Evicts (removes) the entity from the hibernate cache
|
Object |
load(int transform,
Long id)
Does the same thing as
ConfigurationDao.load(Long) with an additional flag called
transform. |
Configuration |
load(Long id)
Loads an instance of com.communote.server.persistence.config.Configuration from the
persistent store.
|
Collection<Configuration> |
loadAll()
Loads all entities of type
Configuration. |
Collection<?> |
loadAll(int transform)
Does the same thing as
ConfigurationDao.loadAll() with an additional flag called
transform. |
void |
remove(Collection<Configuration> entities)
Removes all entities in the given
entities |
void |
remove(Configuration configuration)
Removes the instance of com.communote.server.persistence.config.Configuration from the
persistent store.
|
void |
remove(Long id)
Removes the instance of com.communote.server.persistence.config.Configuration having the
given
identifier from the persistent store. |
protected void |
transformEntities(int transform,
Collection<?> entities)
Transforms a collection of entities using the
transformEntity(int,com.communote.server.model.config.Configuration) method. |
protected Object |
transformEntity(int transform,
Configuration 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.config.ConfigurationDao, please note that the
ConfigurationDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself will be
returned. |
void |
update(Collection<Configuration> entities)
Updates all instances in the
entities collection in the persistent store. |
void |
update(Configuration configuration)
Updates the
configuration instance in the persistent store. |
public Configuration create(Configuration configuration)
ConfigurationDaocreate in interface ConfigurationDaoConfigurationDao.create(com.communote.server.model.config.Configuration)public Object create(int transform, Configuration configuration)
ConfigurationDao
Does the same thing as ConfigurationDao.create(com.communote.server.model.config.Configuration) 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 ConfigurationDaocom.communote.server.persistence.config.ConfigurationDao#create(int transform,
com.communote.server.persistence.config.Configuration)public Collection<Configuration> create(int transform, Collection<Configuration> entities)
ConfigurationDao
Does the same thing as ConfigurationDao.create(com.communote.server.model.config.Configuration) 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 ConfigurationDaocom.communote.server.persistence.config.ConfigurationDao#create(int,
java.util.Collection) public Collection<Configuration> create(Collection<Configuration> entities)
ConfigurationDaoentities collectioncreate in interface ConfigurationDaoentities - the collection of com.communote.server.persistence.config.Configuration instances
to create.com.communote.server.persistence.config.ConfigurationDao#create(java.util.Collection) public void evict(Configuration entity)
evict in interface ConfigurationDaoentity - the entity to evictpublic Object load(int transform, Long id)
ConfigurationDao
Does the same thing as ConfigurationDao.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 ConfigurationDaoid - the identifier of the entity to load.ConfigurationDao.load(int, Long)public Configuration load(Long id)
ConfigurationDaoload in interface ConfigurationDaoConfigurationDao.load(Long)public Collection<Configuration> loadAll()
ConfigurationDaoConfiguration.loadAll in interface ConfigurationDaoConfigurationDao.loadAll()public Collection<?> loadAll(int transform)
ConfigurationDao
Does the same thing as ConfigurationDao.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 ConfigurationDaotransform - the flag indicating what transformation to use.ConfigurationDao.loadAll(int)public void remove(Configuration configuration)
ConfigurationDaoremove in interface ConfigurationDaoConfigurationDao.remove(com.communote.server.model.config.Configuration)public void remove(Collection<Configuration> entities)
ConfigurationDaoentities collection.remove in interface ConfigurationDaocom.communote.server.persistence.config.ConfigurationDao#remove(java.util.Collection) public void remove(Long id)
ConfigurationDaoidentifier from the persistent store.remove in interface ConfigurationDaoConfigurationDao.remove(Long)protected void transformEntities(int transform,
Collection<?> entities)
transformEntity(int,com.communote.server.model.config.Configuration) 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.config.ConfigurationDaoentities - the collection of entities to transformtransformEntity(int,com.communote.server.model.config.Configuration)protected Object transformEntity(int transform, Configuration entity)
transform flag is set to one of the constants defined in
com.communote.server.persistence.config.ConfigurationDao, please note that the
ConfigurationDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself will be
returned.
If the integer argument value is unknown ConfigurationDao.TRANSFORM_NONE is assumed.transform - one of the constants declared in
ConfigurationDaoentity - an entity that was foundtransformEntities(int,java.util.Collection)public void update(Configuration configuration)
ConfigurationDaoconfiguration instance in the persistent store.update in interface ConfigurationDaoConfigurationDao.update(com.communote.server.model.config.Configuration)public void update(Collection<Configuration> entities)
ConfigurationDaoentities collection in the persistent store.update in interface ConfigurationDaocom.communote.server.persistence.config.ConfigurationDao#update(java.util.Collection) Copyright © 2019 Communote team. All rights reserved.