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
.
ClientConfiguration
TRANSFORM_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)
ClientConfigurationDao
create
in interface ClientConfigurationDao
ClientConfigurationDao.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 ClientConfigurationDao
com.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 ClientConfigurationDao
com.communote.server.persistence.config.ClientConfigurationDao#create(int,
java.util.Collection)
public Collection<ClientConfiguration> create(Collection<ClientConfiguration> entities)
ClientConfigurationDao
entities
collectioncreate
in interface ClientConfigurationDao
entities
- 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 ClientConfigurationDao
entity
- 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 ClientConfigurationDao
id
- the identifier of the entity to load.ClientConfigurationDao.load(int, Long)
public ClientConfiguration load(Long id)
ClientConfigurationDao
load
in interface ClientConfigurationDao
ClientConfigurationDao.load(Long)
public Collection<ClientConfiguration> loadAll()
ClientConfigurationDao
ClientConfiguration
.loadAll
in interface ClientConfigurationDao
ClientConfigurationDao.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 ClientConfigurationDao
transform
- the flag indicating what transformation to use.ClientConfigurationDao.loadAll(int)
public void remove(ClientConfiguration clientConfiguration)
ClientConfigurationDao
remove
in interface ClientConfigurationDao
ClientConfigurationDao.remove(com.communote.server.model.config.ClientConfiguration)
public void remove(Collection<ClientConfiguration> entities)
ClientConfigurationDao
entities collection.
remove
in interface ClientConfigurationDao
ClientConfigurationDao.remove(java.util.Collection
<com.communote.server.persistence.config.ClientConfiguration>)
public void remove(Long id)
ClientConfigurationDao
identifier
from the persistent store.remove
in interface ClientConfigurationDao
ClientConfigurationDao.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.ClientConfigurationDao
entities
- 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
ClientConfigurationDao
entity
- an entity that was foundtransformEntities(int,java.util.Collection)
public void update(ClientConfiguration clientConfiguration)
ClientConfigurationDao
clientConfiguration
instance in the persistent store.update
in interface ClientConfigurationDao
ClientConfigurationDao.update(com.communote.server.model.config.ClientConfiguration)
public void update(Collection<ClientConfiguration> entities)
ClientConfigurationDao
entities
collection in the persistent store.update
in interface ClientConfigurationDao
ClientConfigurationDao.update(java.util.Collection
<com.communote.server.persistence.config.ClientConfiguration>)
Copyright © 2019 Communote team. All rights reserved.