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
.
UserProfile
TRANSFORM_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, setSessionFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
userProfileVOToEntity
public UserProfile create(UserProfile kenmeiUserProfile)
UserProfileDao
create
in interface UserProfileDao
UserProfileDao.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 UserProfileDao
com.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 UserProfileDao
com.communote.server.persistence.user.UserProfileDao#create(int,
java.util.Collection)
public Collection<UserProfile> create(Collection<UserProfile> entities)
UserProfileDao
entities
collectioncreate
in interface UserProfileDao
entities
- 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 UserProfileDao
entity
- the entity to evictpublic final void kenmeiUserProfileVOToEntityCollection(Collection instances)
UserProfileDao
UserProfileVO
to this DAO's entity.kenmeiUserProfileVOToEntityCollection
in interface UserProfileDao
UserProfileDao.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 UserProfileDao
id
- the identifier of the entity to load.UserProfileDao.load(int, Long)
public UserProfile load(Long id)
UserProfileDao
load
in interface UserProfileDao
UserProfileDao.load(Long)
public Collection<UserProfile> loadAll()
UserProfileDao
UserProfile
.loadAll
in interface UserProfileDao
UserProfileDao.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 UserProfileDao
transform
- the flag indicating what transformation to use.UserProfileDao.loadAll(int)
public void remove(UserProfile kenmeiUserProfile)
UserProfileDao
remove
in interface UserProfileDao
UserProfileDao.remove(com.communote.server.model.user.UserProfile)
public void remove(Collection<UserProfile> entities)
UserProfileDao
entities collection.
remove
in interface UserProfileDao
com.communote.server.persistence.user.UserProfileDao#remove(java.util.Collection)
public void remove(Long id)
UserProfileDao
identifier
from the persistent store.remove
in interface UserProfileDao
UserProfileDao.remove(Long)
protected UserProfileVO toKenmeiUserProfileVO(Object[] row)
UserProfileDaoImpl
class if you intend to use reporting queries.public final void toKenmeiUserProfileVOCollection(Collection entities)
UserProfileDao
UserProfileVO
.toKenmeiUserProfileVOCollection
in interface UserProfileDao
UserProfileDao.toKenmeiUserProfileVOCollection(java.util.Collection)
public UserProfileVO toUserProfileVO(UserProfile entity)
UserProfileDao
UserProfileVO
.toUserProfileVO
in interface UserProfileDao
UserProfileDao.toUserProfileVO(com.communote.server.model.user.UserProfile)
public void toUserProfileVO(UserProfile source, UserProfileVO target)
UserProfileDao
protected 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.UserProfileDao
entities
- 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_NONE
UserProfileVO
-
TRANSFORM_KENMEIUSERPROFILEVO
UserProfileDao.TRANSFORM_NONE
is assumed.transform
- one of the constants declared in
UserProfileDao
entity
- an entity that was foundtransformEntities(int,java.util.Collection)
public void update(UserProfile kenmeiUserProfile)
UserProfileDao
kenmeiUserProfile
instance in the persistent store.update
in interface UserProfileDao
UserProfileDao.update(com.communote.server.model.user.UserProfile)
public void update(Collection<UserProfile> entities)
UserProfileDao
entities
collection in the persistent store.update
in interface UserProfileDao
com.communote.server.persistence.user.UserProfileDao#update(java.util.Collection)
public void userProfileVOToEntity(UserProfileVO source, UserProfile target, boolean copyIfNull)
UserProfileDao
UserProfileVO
to the
specified entity.userProfileVOToEntity
in interface UserProfileDao
copyIfNull
- 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.