public abstract class ExternalUserAuthenticationDaoBase extends org.springframework.orm.hibernate3.support.HibernateDaoSupport implements ExternalUserAuthenticationDao
Base Spring DAO Class: is able to create, update, remove, load, and find objects of type
com.communote.server.persistence.user.ExternalUserAuthentication
.
ExternalUserAuthentication
TRANSFORM_NONE
Constructor and Description |
---|
ExternalUserAuthenticationDaoBase() |
Modifier and Type | Method and Description |
---|---|
Collection<ExternalUserAuthentication> |
create(Collection<ExternalUserAuthentication> entities)
Creates a new instance of com.communote.server.persistence.user.ExternalUserAuthentication
and adds from the passed in
entities collection |
ExternalUserAuthentication |
create(ExternalUserAuthentication externalUserAuthentication)
Creates an instance of com.communote.server.persistence.user.ExternalUserAuthentication and
adds it to the persistent store.
|
Collection<ExternalUserAuthentication> |
create(int transform,
Collection<ExternalUserAuthentication> entities)
Does the same thing as
ExternalUserAuthenticationDao.create(com.communote.server.model.user.ExternalUserAuthentication) with an
additional flag called transform . |
Object |
create(int transform,
ExternalUserAuthentication externalUserAuthentication)
Does the same thing as
ExternalUserAuthenticationDao.create(com.communote.server.model.user.ExternalUserAuthentication) with an
additional flag called transform . |
void |
evict(ExternalUserAuthentication entity)
Evicts (removes) the entity from the hibernate cache
|
List<ExternalUserAuthentication> |
findBySystemId(String systemId)
find all external authentications by the external systemId
|
Long |
findUserByPermanentId(String externalSystemId,
String permanentId)
returns the ID of the user that has the provided permanent ID for the given system or null if
there is no such user.
|
protected abstract List<ExternalUserAuthentication> |
handleFindBySystemId(String systemId)
Performs the core logic for
findBySystemId(String) |
protected abstract Long |
handleFindUserByPermanentId(String externalSystemId,
String permanentId)
Performs the core logic for
findUserByPermanentId(String, String) |
Object |
load(int transform,
Long id)
Does the same thing as
ExternalUserAuthenticationDao.load(Long) with an additional flag called
transform . |
ExternalUserAuthentication |
load(Long id)
Loads an instance of com.communote.server.persistence.user.ExternalUserAuthentication from
the persistent store.
|
Collection<ExternalUserAuthentication> |
loadAll()
Loads all entities of type
ExternalUserAuthentication
. |
Collection<?> |
loadAll(int transform)
Does the same thing as
ExternalUserAuthenticationDao.loadAll() with an additional flag called
transform . |
void |
remove(Collection<ExternalUserAuthentication> entities)
Removes all entities in the given
entities |
void |
remove(ExternalUserAuthentication externalUserAuthentication)
Removes the instance of com.communote.server.persistence.user.ExternalUserAuthentication from
the persistent store.
|
void |
remove(Long id)
Removes the instance of com.communote.server.persistence.user.ExternalUserAuthentication
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.ExternalUserAuthentication)
method. |
protected Object |
transformEntity(int transform,
ExternalUserAuthentication 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.ExternalUserAuthenticationDao , please note
that the ExternalUserAuthenticationDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself
will be returned. |
void |
update(Collection<ExternalUserAuthentication> entities)
Updates all instances in the
entities collection in the persistent store. |
void |
update(ExternalUserAuthentication externalUserAuthentication)
Updates the
externalUserAuthentication instance in the persistent store. |
public ExternalUserAuthentication create(ExternalUserAuthentication externalUserAuthentication)
ExternalUserAuthenticationDao
create
in interface ExternalUserAuthenticationDao
ExternalUserAuthenticationDao.create(com.communote.server.model.user.ExternalUserAuthentication)
public Object create(int transform, ExternalUserAuthentication externalUserAuthentication)
ExternalUserAuthenticationDao
Does the same thing as
ExternalUserAuthenticationDao.create(com.communote.server.model.user.ExternalUserAuthentication)
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 ExternalUserAuthenticationDao
com.communote.server.persistence.user.ExternalUserAuthenticationDao#create(int
transform, com.communote.server.persistence.user.ExternalUserAuthentication)
public Collection<ExternalUserAuthentication> create(int transform, Collection<ExternalUserAuthentication> entities)
ExternalUserAuthenticationDao
Does the same thing as
ExternalUserAuthenticationDao.create(com.communote.server.model.user.ExternalUserAuthentication)
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 ExternalUserAuthenticationDao
com.communote.server.persistence.user.ExternalUserAuthenticationDao#create(int,
java.util.Collection)
public Collection<ExternalUserAuthentication> create(Collection<ExternalUserAuthentication> entities)
ExternalUserAuthenticationDao
entities
collectioncreate
in interface ExternalUserAuthenticationDao
entities
- the collection of com.communote.server.persistence.user.ExternalUserAuthentication
instances to create.com.communote.server.persistence.user.ExternalUserAuthenticationDao#create(java.util.
Collection)
public void evict(ExternalUserAuthentication entity)
evict
in interface ExternalUserAuthenticationDao
entity
- the entity to evictpublic List<ExternalUserAuthentication> findBySystemId(String systemId)
ExternalUserAuthenticationDao
find all external authentications by the external systemId
findBySystemId
in interface ExternalUserAuthenticationDao
ExternalUserAuthenticationDao.findBySystemId(String)
public Long findUserByPermanentId(String externalSystemId, String permanentId)
ExternalUserAuthenticationDao
returns the ID of the user that has the provided permanent ID for the given system or null if there is no such user.
findUserByPermanentId
in interface ExternalUserAuthenticationDao
ExternalUserAuthenticationDao.findUserByPermanentId(String,
String)
protected abstract List<ExternalUserAuthentication> handleFindBySystemId(String systemId)
findBySystemId(String)
protected abstract Long handleFindUserByPermanentId(String externalSystemId, String permanentId)
findUserByPermanentId(String, String)
public Object load(int transform, Long id)
ExternalUserAuthenticationDao
Does the same thing as ExternalUserAuthenticationDao.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 ExternalUserAuthenticationDao
id
- the identifier of the entity to load.ExternalUserAuthenticationDao.load(int, Long)
public ExternalUserAuthentication load(Long id)
ExternalUserAuthenticationDao
load
in interface ExternalUserAuthenticationDao
ExternalUserAuthenticationDao.load(Long)
public Collection<ExternalUserAuthentication> loadAll()
ExternalUserAuthenticationDao
ExternalUserAuthentication
.loadAll
in interface ExternalUserAuthenticationDao
ExternalUserAuthenticationDao.loadAll()
public Collection<?> loadAll(int transform)
ExternalUserAuthenticationDao
Does the same thing as ExternalUserAuthenticationDao.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 ExternalUserAuthenticationDao
transform
- the flag indicating what transformation to use.ExternalUserAuthenticationDao.loadAll(int)
public void remove(ExternalUserAuthentication externalUserAuthentication)
ExternalUserAuthenticationDao
remove
in interface ExternalUserAuthenticationDao
ExternalUserAuthenticationDao.remove(com.communote.server.model.user.ExternalUserAuthentication)
public void remove(Collection<ExternalUserAuthentication> entities)
ExternalUserAuthenticationDao
entities collection.
remove
in interface ExternalUserAuthenticationDao
com.communote.server.persistence.user.ExternalUserAuthenticationDao#remove(java.util.
Collection)
public void remove(Long id)
ExternalUserAuthenticationDao
identifier
from the persistent store.remove
in interface ExternalUserAuthenticationDao
ExternalUserAuthenticationDao.remove(Long)
protected void transformEntities(int transform, Collection<?> entities)
transformEntity(int,com.communote.server.model.user.ExternalUserAuthentication)
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.ExternalUserAuthenticationDao
entities
- the collection of entities to transformtransformEntity(int,com.communote.server.model.user.ExternalUserAuthentication)
protected Object transformEntity(int transform, ExternalUserAuthentication entity)
transform
flag is set to one of the constants defined in
com.communote.server.persistence.user.ExternalUserAuthenticationDao
, please note
that the ExternalUserAuthenticationDao.TRANSFORM_NONE
constant denotes no transformation, so the entity itself
will be returned.
If the integer argument value is unknown ExternalUserAuthenticationDao.TRANSFORM_NONE
is assumed.transform
- one of the constants declared in
ExternalUserAuthenticationDao
entity
- an entity that was foundtransformEntities(int,java.util.Collection)
public void update(ExternalUserAuthentication externalUserAuthentication)
ExternalUserAuthenticationDao
externalUserAuthentication
instance in the persistent store.update
in interface ExternalUserAuthenticationDao
ExternalUserAuthenticationDao.update(com.communote.server.model.user.ExternalUserAuthentication)
public void update(Collection<ExternalUserAuthentication> entities)
ExternalUserAuthenticationDao
entities
collection in the persistent store.update
in interface ExternalUserAuthenticationDao
com.communote.server.persistence.user.ExternalUserAuthenticationDao#update(java.util.
Collection)
Copyright © 2019 Communote team. All rights reserved.