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