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