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