public abstract class ExternalUserGroupDaoBase extends org.springframework.orm.hibernate3.support.HibernateDaoSupport implements ExternalUserGroupDao
Base Spring DAO Class: is able to create, update, remove, load, and find objects of type
ExternalUserGroup
.
ExternalUserGroup
TRANSFORM_NONE
Constructor and Description |
---|
ExternalUserGroupDaoBase() |
Modifier and Type | Method and Description |
---|---|
Collection<ExternalUserGroup> |
create(Collection<ExternalUserGroup> entities)
Creates a new instance of com.communote.server.persistence.user.group.ExternalUserGroup and
adds from the passed in
entities collection |
ExternalUserGroup |
create(ExternalUserGroup externalUserGroup)
Creates an instance of com.communote.server.persistence.user.group.ExternalUserGroup and adds
it to the persistent store.
|
Collection<ExternalUserGroup> |
create(int transform,
Collection<ExternalUserGroup> entities)
Does the same thing as
ExternalUserGroupDao.create(com.communote.server.model.user.group.ExternalUserGroup) with an additional
flag called transform . |
Object |
create(int transform,
ExternalUserGroup externalUserGroup)
Does the same thing as
ExternalUserGroupDao.create(com.communote.server.model.user.group.ExternalUserGroup) with an additional
flag called transform . |
void |
evict(ExternalUserGroup entity)
Evicts (removes) the entity from the hibernate cache
|
ExternalUserGroup |
findByAdditionalProperty(String additionalProperty,
String externalSystemId)
Get an external group by the additional property.
|
ExternalUserGroup |
findByExternalId(String externalId,
String externalSystemId) |
List<ExternalUserGroup> |
findBySystemId(String systemId) |
List<ExternalUserGroup> |
findLatestBySystemId(String externalSystemId,
Long startId,
int maxCount)
Find the n newest external groups for the given external system ID.
|
protected abstract ExternalUserGroup |
handleFindByAdditionalProperty(String additionalProperty,
String externalSystemId) |
protected abstract ExternalUserGroup |
handleFindByExternalId(String externalId,
String externalSystemId)
Performs the core logic for
findByExternalId(String, String) |
protected abstract List<ExternalUserGroup> |
handleFindBySystemId(String systemId)
Performs the core logic for
findBySystemId(String) |
protected abstract List<ExternalUserGroup> |
handleFindLatestBySystemId(String externalSystemId,
Long startId,
int maxCount)
Performs the core logic for
findLatestBySystemId(String, Long, int) |
Object |
load(int transform,
Long id)
Does the same thing as
ExternalUserGroupDao.load(Long) with an additional flag called
transform . |
ExternalUserGroup |
load(Long id)
Loads an instance of com.communote.server.persistence.user.group.ExternalUserGroup from the
persistent store.
|
Collection<ExternalUserGroup> |
loadAll()
Loads all entities of type
ExternalUserGroup . |
Collection<?> |
loadAll(int transform)
Does the same thing as
ExternalUserGroupDao.loadAll() with an additional flag called
transform . |
void |
remove(Collection<ExternalUserGroup> entities)
Removes all entities in the given
entities |
void |
remove(ExternalUserGroup externalUserGroup)
Removes the instance of com.communote.server.persistence.user.group.ExternalUserGroup from
the persistent store.
|
void |
remove(Long id)
Removes the instance of com.communote.server.persistence.user.group.ExternalUserGroup having
the given
identifier from the persistent store. |
protected void |
transformEntities(int transform,
Collection<?> entities)
Transforms a collection of entities using the
transformEntity(int,ExternalUserGroup)
method. |
protected Object |
transformEntity(int transform,
ExternalUserGroup 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
ExternalUserGroupDao , please note that the ExternalUserGroupDao.TRANSFORM_NONE constant
denotes no transformation, so the entity itself will be returned. |
void |
update(Collection<ExternalUserGroup> entities)
Updates all instances in the
entities collection in the persistent store. |
void |
update(ExternalUserGroup externalUserGroup)
Updates the
externalUserGroup instance in the persistent store. |
public Collection<ExternalUserGroup> create(Collection<ExternalUserGroup> entities)
ExternalUserGroupDao
entities
collectioncreate
in interface ExternalUserGroupDao
entities
- the collection of com.communote.server.persistence.user.group.ExternalUserGroup
instances to create.ExternalUserGroupDao.create(Collection <ExternalUserGroup>)
public ExternalUserGroup create(ExternalUserGroup externalUserGroup)
ExternalUserGroupDao
create
in interface ExternalUserGroupDao
ExternalUserGroupDao.create(ExternalUserGroup)
public Collection<ExternalUserGroup> create(int transform, Collection<ExternalUserGroup> entities)
ExternalUserGroupDao
Does the same thing as
ExternalUserGroupDao.create(com.communote.server.model.user.group.ExternalUserGroup)
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 ExternalUserGroupDao
ExternalUserGroupDao#create(int, Collection)
public Object create(int transform, ExternalUserGroup externalUserGroup)
ExternalUserGroupDao
Does the same thing as
ExternalUserGroupDao.create(com.communote.server.model.user.group.ExternalUserGroup)
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 ExternalUserGroupDao
ExternalUserGroupDao.create(int transform, ExternalUserGroup)
public void evict(ExternalUserGroup entity)
evict
in interface ExternalUserGroupDao
entity
- the entity to evictpublic ExternalUserGroup findByAdditionalProperty(String additionalProperty, String externalSystemId)
ExternalUserGroupDao
findByAdditionalProperty
in interface ExternalUserGroupDao
additionalProperty
- the additional propertyexternalSystemId
- the ID of the external systempublic ExternalUserGroup findByExternalId(String externalId, String externalSystemId)
findByExternalId
in interface ExternalUserGroupDao
ExternalUserGroupDao.findByExternalId(String, String)
public List<ExternalUserGroup> findBySystemId(String systemId)
findBySystemId
in interface ExternalUserGroupDao
ExternalUserGroupDao.findBySystemId(String)
public List<ExternalUserGroup> findLatestBySystemId(String externalSystemId, Long startId, int maxCount)
ExternalUserGroupDao
Find the n newest external groups for the given external system ID. Newest in this context means that the ID of the group is higher than the startId.
findLatestBySystemId
in interface ExternalUserGroupDao
ExternalUserGroupDao.findLatestBySystemId(String, Long, int)
protected abstract ExternalUserGroup handleFindByAdditionalProperty(String additionalProperty, String externalSystemId)
protected abstract ExternalUserGroup handleFindByExternalId(String externalId, String externalSystemId)
findByExternalId(String, String)
protected abstract List<ExternalUserGroup> handleFindBySystemId(String systemId)
findBySystemId(String)
protected abstract List<ExternalUserGroup> handleFindLatestBySystemId(String externalSystemId, Long startId, int maxCount)
findLatestBySystemId(String, Long, int)
public Object load(int transform, Long id)
ExternalUserGroupDao
Does the same thing as ExternalUserGroupDao.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 ExternalUserGroupDao
id
- the identifier of the entity to load.ExternalUserGroupDao.load(int, Long)
public ExternalUserGroup load(Long id)
ExternalUserGroupDao
load
in interface ExternalUserGroupDao
ExternalUserGroupDao.load(Long)
public Collection<ExternalUserGroup> loadAll()
ExternalUserGroupDao
ExternalUserGroup
.loadAll
in interface ExternalUserGroupDao
ExternalUserGroupDao.loadAll()
public Collection<?> loadAll(int transform)
ExternalUserGroupDao
Does the same thing as ExternalUserGroupDao.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 ExternalUserGroupDao
transform
- the flag indicating what transformation to use.ExternalUserGroupDao.loadAll(int)
public void remove(Collection<ExternalUserGroup> entities)
ExternalUserGroupDao
entities collection.
remove
in interface ExternalUserGroupDao
ExternalUserGroupDao.remove(Collection <ExternalUserGroup>)
public void remove(ExternalUserGroup externalUserGroup)
ExternalUserGroupDao
remove
in interface ExternalUserGroupDao
ExternalUserGroupDao.remove(ExternalUserGroup)
public void remove(Long id)
ExternalUserGroupDao
identifier
from the persistent store.remove
in interface ExternalUserGroupDao
ExternalUserGroupDao.remove(Long)
protected void transformEntities(int transform, Collection<?> entities)
transformEntity(int,ExternalUserGroup)
method. This method does not instantiate a new collection.
This method is to be used internally only.transform
- one of the constants declared in ExternalUserGroupDao
entities
- the collection of entities to transformtransformEntity(int,ExternalUserGroup)
protected Object transformEntity(int transform, ExternalUserGroup entity)
transform
flag is set to one of the constants defined in
ExternalUserGroupDao
, please note that the ExternalUserGroupDao.TRANSFORM_NONE
constant
denotes no transformation, so the entity itself will be returned.
If the integer argument value is unknown ExternalUserGroupDao.TRANSFORM_NONE
is assumed.transform
- one of the constants declared in ExternalUserGroupDao
entity
- an entity that was foundtransformEntities(int,Collection)
public void update(Collection<ExternalUserGroup> entities)
ExternalUserGroupDao
entities
collection in the persistent store.update
in interface ExternalUserGroupDao
ExternalUserGroupDao.update(Collection <ExternalUserGroup>)
public void update(ExternalUserGroup externalUserGroup)
ExternalUserGroupDao
externalUserGroup
instance in the persistent store.update
in interface ExternalUserGroupDao
ExternalUserGroupDao.update(ExternalUserGroup)
Copyright © 2019 Communote team. All rights reserved.