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