public interface BlogMemberDao
BlogMember
Modifier and Type | Field and Description |
---|---|
static int |
TRANSFORM_NONE
This constant is used as a transformation flag; entities can be converted automatically into
value objects or other types, different methods in a class implementing this interface
support this feature: look for an
int parameter called transform . |
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
create(com.communote.server.model.blog.BlogMember) with an
additional flag called transform . |
Collection<?> |
create(int transform,
Collection<BlogMember> entities)
Does the same thing as
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.
|
Object |
load(int transform,
Long id)
Does the same thing as
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
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. |
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. |
static final int TRANSFORM_NONE
int
parameter called transform
.
This specific flag denotes no transformation will occur.BlogMember create(BlogMember blogMember)
Object create(int transform, BlogMember blogMember)
Does the same thing as 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.
Collection<?> create(int transform, Collection<BlogMember> entities)
Does the same thing as 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.
Collection<BlogMember> create(Collection<BlogMember> entities)
entities
collectionentities
- the collection of com.communote.server.persistence.blog.BlogMember instances to
create.void evict(BlogMember entity)
entity
- the entity to evictList<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.
Object load(int transform, Long id)
Does the same thing as 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.
id
- the identifier of the entity to load.BlogMember load(Long id)
Collection<BlogMember> loadAll()
BlogMember
.Collection<?> loadAll(int transform)
Does the same thing as 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.
transform
- the flag indicating what transformation to use.void remove(BlogMember blogMember)
void remove(Collection<BlogMember> entities)
entities collection.
void remove(Long id)
identifier
from the persistent store.void update(BlogMember blogMember)
blogMember
instance in the persistent store.void update(Collection<BlogMember> entities)
entities
collection in the persistent store.Copyright © 2019 Communote team. All rights reserved.