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