public abstract class BlogMemberDaoBase extends org.springframework.orm.hibernate3.support.HibernateDaoSupport implements BlogMemberDao
Base Spring DAO Class: is able to create, update, remove, load, and find objects of type
com.communote.server.persistence.blog.BlogMember.
BlogMemberTRANSFORM_NONE| Constructor and Description |
|---|
BlogMemberDaoBase() |
| Modifier and Type | Method and Description |
|---|---|
BlogMember |
create(BlogMember blogMember)
Creates an instance of com.communote.server.persistence.blog.BlogMember and adds it to the
persistent store.
|
Collection<BlogMember> |
create(Collection<BlogMember> entities)
Creates a new instance of com.communote.server.persistence.blog.BlogMember and adds from the
passed in
entities collection |
Object |
create(int transform,
BlogMember blogMember)
Does the same thing as
BlogMemberDao.create(com.communote.server.model.blog.BlogMember) with an
additional flag called transform. |
Collection<BlogMember> |
create(int transform,
Collection<BlogMember> entities)
Does the same thing as
BlogMemberDao.create(com.communote.server.model.blog.BlogMember) with an
additional flag called transform. |
void |
evict(BlogMember entity)
Evicts (removes) the entity from the hibernate cache
|
List<BlogMember> |
findByBlogAndEntity(Long blogId,
Long entityId)
Returns the memberships of a blog with a specific entity associated
|
Collection<BlogMember> |
findByEntity(Long entityId)
Returns the memberships of an entity.
|
Map<Long,BlogRole> |
getBlogRoles(Long blogId,
String externalSystemId)
Returns a map of entity ids and blog roles.
|
protected abstract List<BlogMember> |
handleFindByBlogAndEntity(Long blogId,
Long entityId)
Performs the core logic for
findByBlogAndEntity(Long, Long) |
protected abstract Collection<BlogMember> |
handleFindByEntity(Long entityId)
Performs the core logic for
findByEntity(Long) |
protected abstract Map<Long,BlogRole> |
handleGetBlogRoles(Long blogId,
String externalSystemId)
Performs the core logic for
getBlogRoles(Long, String) |
Object |
load(int transform,
Long id)
Does the same thing as
BlogMemberDao.load(Long) with an additional flag called
transform. |
BlogMember |
load(Long id)
Loads an instance of com.communote.server.persistence.blog.BlogMember from the persistent
store.
|
Collection<BlogMember> |
loadAll()
Loads all entities of type
BlogMember. |
Collection<?> |
loadAll(int transform)
Does the same thing as
BlogMemberDao.loadAll() with an additional flag called
transform. |
void |
remove(BlogMember blogMember)
Removes the instance of com.communote.server.persistence.blog.BlogMember from the persistent
store.
|
void |
remove(Collection<BlogMember> entities)
Removes all entities in the given
entities |
void |
remove(Long id)
Removes the instance of com.communote.server.persistence.blog.BlogMember 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.blog.BlogMember) method. |
protected Object |
transformEntity(int transform,
BlogMember 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.blog.BlogMemberDao, please note that the
BlogMemberDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself will be
returned. |
void |
update(BlogMember blogMember)
Updates the
blogMember instance in the persistent store. |
void |
update(Collection<BlogMember> entities)
Updates all instances in the
entities collection in the persistent store. |
public BlogMember create(BlogMember blogMember)
BlogMemberDaocreate in interface BlogMemberDaoBlogMemberDao.create(com.communote.server.model.blog.BlogMember)public Object create(int transform, BlogMember blogMember)
BlogMemberDao
Does the same thing as BlogMemberDao.create(com.communote.server.model.blog.BlogMember) 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 BlogMemberDaocom.communote.server.persistence.blog.BlogMemberDao#create(int transform,
com.communote.server.persistence.blog.BlogMember)public Collection<BlogMember> create(int transform, Collection<BlogMember> entities)
BlogMemberDao
Does the same thing as BlogMemberDao.create(com.communote.server.model.blog.BlogMember) 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 BlogMemberDaocom.communote.server.persistence.blog.BlogMemberDao#create(int,
java.util.Collection) public Collection<BlogMember> create(Collection<BlogMember> entities)
BlogMemberDaoentities collectioncreate in interface BlogMemberDaoentities - the collection of com.communote.server.persistence.blog.BlogMember instances to
create.com.communote.server.persistence.blog.BlogMemberDao#create(java.util.Collection) public void evict(BlogMember entity)
evict in interface BlogMemberDaoentity - the entity to evictpublic List<BlogMember> findByBlogAndEntity(Long blogId, Long entityId)
BlogMemberDaoReturns the memberships of a blog with a specific entity associated
findByBlogAndEntity in interface BlogMemberDaoBlogMemberDao.findByBlogAndEntity(Long, Long)public Collection<BlogMember> findByEntity(Long entityId)
BlogMemberDaoReturns the memberships of an entity.
findByEntity in interface BlogMemberDaoBlogMemberDao.findByEntity(Long)public Map<Long,BlogRole> getBlogRoles(Long blogId, String externalSystemId)
BlogMemberDaoReturns a map of entity ids and blog roles.
getBlogRoles in interface BlogMemberDaoBlogMemberDao.getBlogRoles(Long, String)protected abstract List<BlogMember> handleFindByBlogAndEntity(Long blogId, Long entityId)
findByBlogAndEntity(Long, Long)protected abstract Collection<BlogMember> handleFindByEntity(Long entityId)
findByEntity(Long)protected abstract Map<Long,BlogRole> handleGetBlogRoles(Long blogId, String externalSystemId)
getBlogRoles(Long, String)public Object load(int transform, Long id)
BlogMemberDao
Does the same thing as BlogMemberDao.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 BlogMemberDaoid - the identifier of the entity to load.BlogMemberDao.load(int, Long)public BlogMember load(Long id)
BlogMemberDaoload in interface BlogMemberDaoBlogMemberDao.load(Long)public Collection<BlogMember> loadAll()
BlogMemberDaoBlogMember.loadAll in interface BlogMemberDaoBlogMemberDao.loadAll()public Collection<?> loadAll(int transform)
BlogMemberDao
Does the same thing as BlogMemberDao.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 BlogMemberDaotransform - the flag indicating what transformation to use.BlogMemberDao.loadAll(int)public void remove(BlogMember blogMember)
BlogMemberDaoremove in interface BlogMemberDaoBlogMemberDao.remove(com.communote.server.model.blog.BlogMember)public void remove(Collection<BlogMember> entities)
BlogMemberDaoentities collection.remove in interface BlogMemberDaocom.communote.server.persistence.blog.BlogMemberDao#remove(java.util.Collection) public void remove(Long id)
BlogMemberDaoidentifier from the persistent store.remove in interface BlogMemberDaoBlogMemberDao.remove(Long)protected void transformEntities(int transform,
Collection<?> entities)
transformEntity(int,com.communote.server.model.blog.BlogMember) 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.blog.BlogMemberDaoentities - the collection of entities to transformtransformEntity(int,com.communote.server.model.blog.BlogMember)protected Object transformEntity(int transform, BlogMember entity)
transform flag is set to one of the constants defined in
com.communote.server.persistence.blog.BlogMemberDao, please note that the
BlogMemberDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself will be
returned.
If the integer argument value is unknown BlogMemberDao.TRANSFORM_NONE is assumed.transform - one of the constants declared in
BlogMemberDaoentity - an entity that was foundtransformEntities(int,java.util.Collection)public void update(BlogMember blogMember)
BlogMemberDaoblogMember instance in the persistent store.update in interface BlogMemberDaoBlogMemberDao.update(com.communote.server.model.blog.BlogMember)public void update(Collection<BlogMember> entities)
BlogMemberDaoentities collection in the persistent store.update in interface BlogMemberDaocom.communote.server.persistence.blog.BlogMemberDao#update(java.util.Collection) Copyright © 2019 Communote team. All rights reserved.