public abstract class UserProfileDaoBase extends org.springframework.orm.hibernate3.support.HibernateDaoSupport implements UserProfileDao
Base Spring DAO Class: is able to create, update, remove, load, and find objects of type
com.communote.server.persistence.user.KenmeiUserProfile.
UserProfileTRANSFORM_KENMEIUSERPROFILEVO, TRANSFORM_NONE| Constructor and Description |
|---|
UserProfileDaoBase() |
| Modifier and Type | Method and Description |
|---|---|
Collection<UserProfile> |
create(Collection<UserProfile> entities)
Creates a new instance of com.communote.server.persistence.user.KenmeiUserProfile and adds
from the passed in
entities collection |
Collection<UserProfile> |
create(int transform,
Collection<UserProfile> entities)
Does the same thing as
UserProfileDao.create(com.communote.server.model.user.UserProfile) with an
additional flag called transform. |
Object |
create(int transform,
UserProfile kenmeiUserProfile)
Does the same thing as
UserProfileDao.create(com.communote.server.model.user.UserProfile) with an
additional flag called transform. |
UserProfile |
create(UserProfile kenmeiUserProfile)
Creates an instance of com.communote.server.persistence.user.KenmeiUserProfile and adds it to
the persistent store.
|
void |
evict(UserProfile entity)
Evicts (removes) the entity from the hibernate cache
|
void |
kenmeiUserProfileVOToEntityCollection(Collection instances)
Converts a Collection of instances of type
UserProfileVO to this DAO's entity. |
Object |
load(int transform,
Long id)
Does the same thing as
UserProfileDao.load(Long) with an additional flag called
transform. |
UserProfile |
load(Long id)
Loads an instance of com.communote.server.persistence.user.KenmeiUserProfile from the
persistent store.
|
Collection<UserProfile> |
loadAll()
Loads all entities of type
UserProfile. |
Collection<?> |
loadAll(int transform)
Does the same thing as
UserProfileDao.loadAll() with an additional flag called
transform. |
void |
remove(Collection<UserProfile> entities)
Removes all entities in the given
entities |
void |
remove(Long id)
Removes the instance of com.communote.server.persistence.user.KenmeiUserProfile having the
given
identifier from the persistent store. |
void |
remove(UserProfile kenmeiUserProfile)
Removes the instance of com.communote.server.persistence.user.KenmeiUserProfile from the
persistent store.
|
protected UserProfileVO |
toKenmeiUserProfileVO(Object[] row)
Default implementation for transforming the results of a report query into a value object.
|
void |
toKenmeiUserProfileVOCollection(Collection entities)
Converts this DAO's entity to a Collection of instances of type
UserProfileVO. |
UserProfileVO |
toUserProfileVO(UserProfile entity)
Converts this DAO's entity to an object of type
UserProfileVO. |
void |
toUserProfileVO(UserProfile source,
UserProfileVO target)
Copies the fields of the specified entity to the target value object.
|
protected void |
transformEntities(int transform,
Collection<?> entities)
Transforms a collection of entities using the
transformEntity(int,com.communote.server.model.user.UserProfile) method. |
protected Object |
transformEntity(int transform,
UserProfile 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.user.UserProfileDao, please note that the
UserProfileDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself will be
returned. |
void |
update(Collection<UserProfile> entities)
Updates all instances in the
entities collection in the persistent store. |
void |
update(UserProfile kenmeiUserProfile)
Updates the
kenmeiUserProfile instance in the persistent store. |
void |
userProfileVOToEntity(UserProfileVO source,
UserProfile target,
boolean copyIfNull)
Copies the fields of
UserProfileVO to the
specified entity. |
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waituserProfileVOToEntitypublic UserProfile create(UserProfile kenmeiUserProfile)
UserProfileDaocreate in interface UserProfileDaoUserProfileDao.create(com.communote.server.model.user.UserProfile)public Object create(int transform, UserProfile kenmeiUserProfile)
UserProfileDao
Does the same thing as UserProfileDao.create(com.communote.server.model.user.UserProfile) 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 UserProfileDaocom.communote.server.persistence.user.UserProfileDao#create(int transform,
com.communote.server.persistence.user.KenmeiUserProfile)public Collection<UserProfile> create(int transform, Collection<UserProfile> entities)
UserProfileDao
Does the same thing as UserProfileDao.create(com.communote.server.model.user.UserProfile) 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 UserProfileDaocom.communote.server.persistence.user.UserProfileDao#create(int,
java.util.Collection) public Collection<UserProfile> create(Collection<UserProfile> entities)
UserProfileDaoentities collectioncreate in interface UserProfileDaoentities - the collection of com.communote.server.persistence.user.KenmeiUserProfile
instances to create.com.communote.server.persistence.user.UserProfileDao#create(java.util.Collection) public void evict(UserProfile entity)
evict in interface UserProfileDaoentity - the entity to evictpublic final void kenmeiUserProfileVOToEntityCollection(Collection instances)
UserProfileDaoUserProfileVO to this DAO's entity.kenmeiUserProfileVOToEntityCollection in interface UserProfileDaoUserProfileDao.kenmeiUserProfileVOToEntityCollection(java.util.Collection)public Object load(int transform, Long id)
UserProfileDao
Does the same thing as UserProfileDao.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 UserProfileDaoid - the identifier of the entity to load.UserProfileDao.load(int, Long)public UserProfile load(Long id)
UserProfileDaoload in interface UserProfileDaoUserProfileDao.load(Long)public Collection<UserProfile> loadAll()
UserProfileDaoUserProfile.loadAll in interface UserProfileDaoUserProfileDao.loadAll()public Collection<?> loadAll(int transform)
UserProfileDao
Does the same thing as UserProfileDao.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 UserProfileDaotransform - the flag indicating what transformation to use.UserProfileDao.loadAll(int)public void remove(UserProfile kenmeiUserProfile)
UserProfileDaoremove in interface UserProfileDaoUserProfileDao.remove(com.communote.server.model.user.UserProfile)public void remove(Collection<UserProfile> entities)
UserProfileDaoentities collection.remove in interface UserProfileDaocom.communote.server.persistence.user.UserProfileDao#remove(java.util.Collection) public void remove(Long id)
UserProfileDaoidentifier from the persistent store.remove in interface UserProfileDaoUserProfileDao.remove(Long)protected UserProfileVO toKenmeiUserProfileVO(Object[] row)
UserProfileDaoImpl class if you intend to use reporting queries.public final void toKenmeiUserProfileVOCollection(Collection entities)
UserProfileDaoUserProfileVO.toKenmeiUserProfileVOCollection in interface UserProfileDaoUserProfileDao.toKenmeiUserProfileVOCollection(java.util.Collection)public UserProfileVO toUserProfileVO(UserProfile entity)
UserProfileDaoUserProfileVO.toUserProfileVO in interface UserProfileDaoUserProfileDao.toUserProfileVO(com.communote.server.model.user.UserProfile)public void toUserProfileVO(UserProfile source, UserProfileVO target)
UserProfileDaoprotected void transformEntities(int transform,
Collection<?> entities)
transformEntity(int,com.communote.server.model.user.UserProfile) 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.user.UserProfileDaoentities - the collection of entities to transformtransformEntity(int,com.communote.server.model.user.UserProfile)protected Object transformEntity(int transform, UserProfile entity)
transform flag is set to one of the constants defined in
com.communote.server.persistence.user.UserProfileDao, please note that the
UserProfileDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself will be
returned.
This method will return instances of these types:
UserProfile - UserProfileDao.TRANSFORM_NONEUserProfileVO -
TRANSFORM_KENMEIUSERPROFILEVOUserProfileDao.TRANSFORM_NONE is assumed.transform - one of the constants declared in
UserProfileDaoentity - an entity that was foundtransformEntities(int,java.util.Collection)public void update(UserProfile kenmeiUserProfile)
UserProfileDaokenmeiUserProfile instance in the persistent store.update in interface UserProfileDaoUserProfileDao.update(com.communote.server.model.user.UserProfile)public void update(Collection<UserProfile> entities)
UserProfileDaoentities collection in the persistent store.update in interface UserProfileDaocom.communote.server.persistence.user.UserProfileDao#update(java.util.Collection) public void userProfileVOToEntity(UserProfileVO source, UserProfile target, boolean copyIfNull)
UserProfileDaoUserProfileVO to the
specified entity.userProfileVOToEntity in interface UserProfileDaocopyIfNull - If FALSE, the value object's field will not be copied to the entity if the value
is NULL. If TRUE, it will be copied regardless of its value.com.communote.server.persistence.user.UserProfileDao#kenmeiUserProfileVOToEntity(com.communote.server.persistence.user.UserProfileVO,
com.communote.server.model.user.UserProfile)Copyright © 2019 Communote team. All rights reserved.