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