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