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