public interface ExternalUserGroupDao
ExternalUserGroup
Modifier and Type | Field and Description |
---|---|
static int |
TRANSFORM_NONE
This constant is used as a transformation flag; entities can be converted automatically into
value objects or other types, different methods in a class implementing this interface
support this feature: look for an
int parameter called transform . |
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<?> |
create(int transform,
Collection<ExternalUserGroup> entities)
Does the same thing as
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
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.
|
Object |
load(int transform,
Long id)
Does the same thing as
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
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. |
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. |
static final int TRANSFORM_NONE
int
parameter called transform
.
This specific flag denotes no transformation will occur.ExternalUserGroup create(ExternalUserGroup externalUserGroup)
Object create(int transform, ExternalUserGroup externalUserGroup)
Does the same thing as
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.
Collection<?> create(int transform, Collection<ExternalUserGroup> entities)
Does the same thing as
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.
Collection<ExternalUserGroup> create(Collection<ExternalUserGroup> entities)
entities
collectionentities
- the collection of com.communote.server.persistence.user.group.ExternalUserGroup
instances to create.void evict(ExternalUserGroup entity)
entity
- the entity to evictExternalUserGroup findByAdditionalProperty(String additionalProperty, String externalSystemId)
additionalProperty
- the additional propertyexternalSystemId
- the ID of the external systemExternalUserGroup 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. Newest in this context means that the ID of the group is higher than the startId.
Object load(int transform, Long id)
Does the same thing as 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.
id
- the identifier of the entity to load.ExternalUserGroup load(Long id)
Collection<ExternalUserGroup> loadAll()
ExternalUserGroup
.Collection<?> loadAll(int transform)
Does the same thing as 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.
transform
- the flag indicating what transformation to use.void remove(ExternalUserGroup externalUserGroup)
void remove(Collection<ExternalUserGroup> entities)
entities collection.
void remove(Long id)
identifier
from the persistent store.void update(ExternalUserGroup externalUserGroup)
externalUserGroup
instance in the persistent store.void update(Collection<ExternalUserGroup> entities)
entities
collection in the persistent store.Copyright © 2019 Communote team. All rights reserved.