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