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