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