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