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.
PluginPropertyTRANSFORM_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 PluginPropertyDaoPluginPropertyDao#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 PluginPropertyDaoPluginPropertyDao.create(int transform, PluginProperty)public Collection<PluginProperty> create(Collection<PluginProperty> entities)
PluginPropertyDaoentities collectioncreate in interface PluginPropertyDaoentities - the collection of com.communote.server.persistence.property.PluginProperty
instances to create.PluginPropertyDao#create(java.util.Collection) public PluginProperty create(PluginProperty pluginProperty)
PluginPropertyDaocreate in interface PluginPropertyDaoPluginPropertyDao.create(PluginProperty)public void evict(PluginProperty entity)
evict in interface PluginPropertyDaoentity - the entity to evictpublic PluginProperty find(String symbolicName, String propertyKey)
find in interface PluginPropertyDaoPluginPropertyDao.find(String, String)public Map<String,String> getAllProperties(String symbolicName, boolean applicationProperty)
PluginPropertyDaogetAllProperties in interface PluginPropertyDaoPluginPropertyDao.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 PluginPropertyDaoid - the identifier of the entity to load.PluginPropertyDao.load(int, Long)public PluginProperty load(Long id)
PluginPropertyDaoload in interface PluginPropertyDaoPluginPropertyDao.load(Long)public Collection<PluginProperty> loadAll()
PluginPropertyDaoPluginProperty.loadAll in interface PluginPropertyDaoPluginPropertyDao.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 PluginPropertyDaotransform - the flag indicating what transformation to use.PluginPropertyDao.loadAll(int)public void remove(Collection<PluginProperty> entities)
PluginPropertyDaoentities collection.remove in interface PluginPropertyDaoPluginPropertyDao#remove(java.util.Collection) public void remove(Long id)
PluginPropertyDaoidentifier from the persistent store.remove in interface PluginPropertyDaoPluginPropertyDao.remove(Long)public void remove(PluginProperty pluginProperty)
PluginPropertyDaoremove in interface PluginPropertyDaoPluginPropertyDao.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 PluginPropertyDaoentities - 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 PluginPropertyDaoentity - an entity that was foundtransformEntities(int,java.util.Collection)public void update(Collection<PluginProperty> entities)
PluginPropertyDaoentities collection in the persistent store.update in interface PluginPropertyDaoPluginPropertyDao#update(java.util.Collection) public void update(PluginProperty pluginProperty)
PluginPropertyDaopluginProperty instance in the persistent store.update in interface PluginPropertyDaoPluginPropertyDao.update(PluginProperty)Copyright © 2019 Communote team. All rights reserved.