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