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