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