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