public interface ClientStatisticDao
ClientStatistic
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 |
---|---|
ClientStatistic |
create(ClientStatistic clientStatistic)
Creates an instance of com.communote.server.persistence.user.client.ClientStatistic and adds
it to the persistent store.
|
Collection<ClientStatistic> |
create(Collection<ClientStatistic> entities)
Creates a new instance of com.communote.server.persistence.user.client.ClientStatistic and
adds from the passed in
entities collection |
Object |
create(int transform,
ClientStatistic clientStatistic)
Does the same thing as
create(com.communote.server.model.client.ClientStatistic)
with an additional flag called transform . |
Collection<?> |
create(int transform,
Collection<ClientStatistic> entities)
Does the same thing as
create(com.communote.server.model.client.ClientStatistic)
with an additional flag called transform . |
long |
decrementRepositorySize(long value)
Decrements the repository size counter.
|
void |
evict(ClientStatistic entity)
Evicts (removes) the entity from the hibernate cache
|
long |
getRepositorySize()
Gets the current size of the repository.
|
long |
incrementRepositorySize(long value)
Increments the repository size counter.
|
void |
initialise()
Executes initialisations if a new client was created
|
Object |
load(int transform,
Long id)
Does the same thing as
load(Long) with an additional flag called
transform . |
ClientStatistic |
load(Long id)
Loads an instance of com.communote.server.persistence.user.client.ClientStatistic from the
persistent store.
|
Collection<ClientStatistic> |
loadAll()
Loads all entities of type
ClientStatistic . |
Collection<?> |
loadAll(int transform)
Does the same thing as
loadAll() with an additional flag called
transform . |
void |
remove(ClientStatistic clientStatistic)
Removes the instance of com.communote.server.persistence.user.client.ClientStatistic from the
persistent store.
|
void |
remove(Collection<ClientStatistic> entities)
Removes all entities in the given
entities |
void |
remove(Long id)
Removes the instance of com.communote.server.persistence.user.client.ClientStatistic having
the given
identifier from the persistent store. |
void |
resetRepositorySize()
Resets the counter for the repository size.
|
void |
update(ClientStatistic clientStatistic)
Updates the
clientStatistic instance in the persistent store. |
void |
update(Collection<ClientStatistic> entities)
Updates all instances in the
entities collection in the persistent store. |
static final int TRANSFORM_NONE
int
parameter called transform
.
This specific flag denotes no transformation will occur.ClientStatistic create(ClientStatistic clientStatistic)
Object create(int transform, ClientStatistic clientStatistic)
Does the same thing as create(com.communote.server.model.client.ClientStatistic)
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<ClientStatistic> entities)
Does the same thing as create(com.communote.server.model.client.ClientStatistic)
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<ClientStatistic> create(Collection<ClientStatistic> entities)
entities
collectionentities
- the collection of com.communote.server.persistence.user.client.ClientStatistic
instances to create.long decrementRepositorySize(long value)
Decrements the repository size counter.
void evict(ClientStatistic entity)
entity
- the entity to evictlong getRepositorySize()
Gets the current size of the repository.
long incrementRepositorySize(long value)
Increments the repository size counter.
void initialise()
Executes initialisations if a new client was created
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.ClientStatistic load(Long id)
Collection<ClientStatistic> loadAll()
ClientStatistic
.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(ClientStatistic clientStatistic)
void remove(Collection<ClientStatistic> entities)
entities collection.
void remove(Long id)
identifier
from the persistent store.void resetRepositorySize()
Resets the counter for the repository size.
void update(ClientStatistic clientStatistic)
clientStatistic
instance in the persistent store.void update(Collection<ClientStatistic> entities)
entities
collection in the persistent store.Copyright © 2019 Communote team. All rights reserved.