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.
GroupPropertyTRANSFORM_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)
GroupPropertyDaocreate in interface GroupPropertyDaoGroupPropertyDao.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 GroupPropertyDaoGroupPropertyDao.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 GroupPropertyDaoGroupPropertyDao#create(int, java.util.Collection) public Collection<GroupProperty> create(Collection<GroupProperty> entities)
GroupPropertyDaoentities
collectioncreate in interface GroupPropertyDaoentities - the collection of GroupProperty instances to create.GroupPropertyDao#create(java.util. Collection) public void evict(GroupProperty entity)
evict in interface GroupPropertyDaoentity - 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 GroupPropertyDaoid - the identifier of the entity to load.GroupPropertyDao.load(int, Long)public GroupProperty load(Long id)
GroupPropertyDaoload in interface GroupPropertyDaoGroupPropertyDao.load(Long)public Collection<GroupProperty> loadAll()
GroupPropertyDaoGroupProperty.loadAll in interface GroupPropertyDaoGroupPropertyDao.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 GroupPropertyDaotransform - the flag indicating what transformation to use.GroupPropertyDao.loadAll(int)public void remove(GroupProperty entityGroupProperty)
GroupPropertyDaoremove in interface GroupPropertyDaoGroupPropertyDao.remove(GroupProperty)public void remove(Collection<GroupProperty> entities)
GroupPropertyDaoentities collection.remove in interface GroupPropertyDaoGroupPropertyDao#remove(java.util. Collection) public void remove(Long id)
GroupPropertyDaoidentifier from the
persistent store.remove in interface GroupPropertyDaoGroupPropertyDao.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 GroupPropertyDaoentities - 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 GroupPropertyDaoentity - an entity that was foundtransformEntities(int,java.util.Collection)public void update(GroupProperty entityGroupProperty)
GroupPropertyDaoentityGroupProperty instance in the persistent store.update in interface GroupPropertyDaoGroupPropertyDao.update(GroupProperty)public void update(Collection<GroupProperty> entities)
GroupPropertyDaoentities collection in the persistent store.update in interface GroupPropertyDaoGroupPropertyDao#update(java.util. Collection) Copyright © 2019 Communote team. All rights reserved.