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