public abstract class ClientConfigurationDaoBase extends org.springframework.orm.hibernate3.support.HibernateDaoSupport implements ClientConfigurationDao
Base Spring DAO Class: is able to create, update, remove, load, and find objects of type
com.communote.server.persistence.config.ClientConfiguration.
ClientConfigurationTRANSFORM_NONE| Constructor and Description |
|---|
ClientConfigurationDaoBase() |
| Modifier and Type | Method and Description |
|---|---|
ClientConfiguration |
create(ClientConfiguration clientConfiguration)
Creates an instance of com.communote.server.persistence.config.ClientConfiguration and adds
it to the persistent store.
|
Collection<ClientConfiguration> |
create(Collection<ClientConfiguration> entities)
Creates a new instance of com.communote.server.persistence.config.ClientConfiguration and
adds from the passed in
entities collection |
Object |
create(int transform,
ClientConfiguration clientConfiguration)
Does the same thing as
ClientConfigurationDao.create(com.communote.server.model.config.ClientConfiguration)
with an additional flag called transform. |
Collection<ClientConfiguration> |
create(int transform,
Collection<ClientConfiguration> entities)
Does the same thing as
ClientConfigurationDao.create(com.communote.server.model.config.ClientConfiguration)
with an additional flag called transform. |
void |
evict(ClientConfiguration entity)
Evicts (removes) the entity from the hibernate cache
|
Object |
load(int transform,
Long id)
Does the same thing as
ClientConfigurationDao.load(Long) with an additional flag called
transform. |
ClientConfiguration |
load(Long id)
Loads an instance of com.communote.server.persistence.config.ClientConfiguration from the
persistent store.
|
Collection<ClientConfiguration> |
loadAll()
Loads all entities of type
ClientConfiguration. |
Collection<?> |
loadAll(int transform)
Does the same thing as
ClientConfigurationDao.loadAll() with an additional flag called
transform. |
void |
remove(ClientConfiguration clientConfiguration)
Removes the instance of com.communote.server.persistence.config.ClientConfiguration from the
persistent store.
|
void |
remove(Collection<ClientConfiguration> entities)
Removes all entities in the given
entities |
void |
remove(Long id)
Removes the instance of com.communote.server.persistence.config.ClientConfiguration 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.ClientConfiguration) method. |
protected Object |
transformEntity(int transform,
ClientConfiguration 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.ClientConfigurationDao, please note that
the ClientConfigurationDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself will be
returned. |
void |
update(ClientConfiguration clientConfiguration)
Updates the
clientConfiguration instance in the persistent store. |
void |
update(Collection<ClientConfiguration> entities)
Updates all instances in the
entities collection in the persistent store. |
public ClientConfiguration create(ClientConfiguration clientConfiguration)
ClientConfigurationDaocreate in interface ClientConfigurationDaoClientConfigurationDao.create(com.communote.server.model.config.ClientConfiguration)public Object create(int transform, ClientConfiguration clientConfiguration)
ClientConfigurationDao
Does the same thing as ClientConfigurationDao.create(com.communote.server.model.config.ClientConfiguration)
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 ClientConfigurationDaocom.communote.server.persistence.config.ClientConfigurationDao#create(int transform,
com.communote.server.persistence.config.ClientConfiguration)public Collection<ClientConfiguration> create(int transform, Collection<ClientConfiguration> entities)
ClientConfigurationDao
Does the same thing as ClientConfigurationDao.create(com.communote.server.model.config.ClientConfiguration)
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 ClientConfigurationDaocom.communote.server.persistence.config.ClientConfigurationDao#create(int,
java.util.Collection) public Collection<ClientConfiguration> create(Collection<ClientConfiguration> entities)
ClientConfigurationDaoentities collectioncreate in interface ClientConfigurationDaoentities - the collection of com.communote.server.persistence.config.ClientConfiguration
instances to create.ClientConfigurationDao.create(java.util.Collection
<com.communote.server.persistence.config.ClientConfiguration>)public void evict(ClientConfiguration entity)
evict in interface ClientConfigurationDaoentity - the entity to evictpublic Object load(int transform, Long id)
ClientConfigurationDao
Does the same thing as ClientConfigurationDao.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 ClientConfigurationDaoid - the identifier of the entity to load.ClientConfigurationDao.load(int, Long)public ClientConfiguration load(Long id)
ClientConfigurationDaoload in interface ClientConfigurationDaoClientConfigurationDao.load(Long)public Collection<ClientConfiguration> loadAll()
ClientConfigurationDaoClientConfiguration.loadAll in interface ClientConfigurationDaoClientConfigurationDao.loadAll()public Collection<?> loadAll(int transform)
ClientConfigurationDao
Does the same thing as ClientConfigurationDao.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 ClientConfigurationDaotransform - the flag indicating what transformation to use.ClientConfigurationDao.loadAll(int)public void remove(ClientConfiguration clientConfiguration)
ClientConfigurationDaoremove in interface ClientConfigurationDaoClientConfigurationDao.remove(com.communote.server.model.config.ClientConfiguration)public void remove(Collection<ClientConfiguration> entities)
ClientConfigurationDaoentities collection.remove in interface ClientConfigurationDaoClientConfigurationDao.remove(java.util.Collection
<com.communote.server.persistence.config.ClientConfiguration>)public void remove(Long id)
ClientConfigurationDaoidentifier from the persistent store.remove in interface ClientConfigurationDaoClientConfigurationDao.remove(Long)protected void transformEntities(int transform,
Collection<?> entities)
transformEntity(int,com.communote.server.model.config.ClientConfiguration) 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.ClientConfigurationDaoentities - the collection of entities to transformtransformEntity(int,com.communote.server.model.config.ClientConfiguration)protected Object transformEntity(int transform, ClientConfiguration entity)
transform flag is set to one of the constants defined in
com.communote.server.persistence.config.ClientConfigurationDao, please note that
the ClientConfigurationDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself will be
returned.
If the integer argument value is unknown ClientConfigurationDao.TRANSFORM_NONE is assumed.transform - one of the constants declared in
ClientConfigurationDaoentity - an entity that was foundtransformEntities(int,java.util.Collection)public void update(ClientConfiguration clientConfiguration)
ClientConfigurationDaoclientConfiguration instance in the persistent store.update in interface ClientConfigurationDaoClientConfigurationDao.update(com.communote.server.model.config.ClientConfiguration)public void update(Collection<ClientConfiguration> entities)
ClientConfigurationDaoentities collection in the persistent store.update in interface ClientConfigurationDaoClientConfigurationDao.update(java.util.Collection
<com.communote.server.persistence.config.ClientConfiguration>)Copyright © 2019 Communote team. All rights reserved.