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