public abstract class ClientStatisticDaoBase extends org.springframework.orm.hibernate3.support.HibernateDaoSupport implements ClientStatisticDao
Base Spring DAO Class: is able to create, update, remove, load, and find objects of type
com.communote.server.persistence.user.client.ClientStatistic
.
ClientStatistic
TRANSFORM_NONE
Constructor and Description |
---|
ClientStatisticDaoBase() |
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
ClientStatisticDao.create(com.communote.server.model.client.ClientStatistic)
with an additional flag called transform . |
Collection<ClientStatistic> |
create(int transform,
Collection<ClientStatistic> entities)
Does the same thing as
ClientStatisticDao.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.
|
protected abstract long |
handleDecrementRepositorySize(long value)
Performs the core logic for
decrementRepositorySize(long) |
protected abstract long |
handleGetRepositorySize()
Performs the core logic for
getRepositorySize() |
protected abstract long |
handleIncrementRepositorySize(long value)
Performs the core logic for
incrementRepositorySize(long) |
protected abstract void |
handleInitialise()
Performs the core logic for
initialise() |
protected abstract void |
handleResetRepositorySize()
Performs the core logic for
resetRepositorySize() |
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
ClientStatisticDao.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
ClientStatisticDao.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.
|
protected void |
transformEntities(int transform,
Collection<?> entities)
Transforms a collection of entities using the
transformEntity(int,com.communote.server.model.client.ClientStatistic) method. |
protected Object |
transformEntity(int transform,
ClientStatistic 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.client.ClientStatisticDao , please note
that the ClientStatisticDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself
will be returned. |
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. |
public ClientStatistic create(ClientStatistic clientStatistic)
ClientStatisticDao
create
in interface ClientStatisticDao
ClientStatisticDao.create(com.communote.server.model.client.ClientStatistic)
public Object create(int transform, ClientStatistic clientStatistic)
ClientStatisticDao
Does the same thing as ClientStatisticDao.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.
create
in interface ClientStatisticDao
com.communote.server.persistence.user.client.ClientStatisticDao#create(int transform,
com.communote.server.persistence.user.client.ClientStatistic)
public Collection<ClientStatistic> create(int transform, Collection<ClientStatistic> entities)
ClientStatisticDao
Does the same thing as ClientStatisticDao.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.
create
in interface ClientStatisticDao
com.communote.server.persistence.user.client.ClientStatisticDao#create(int,
java.util.Collection)
public Collection<ClientStatistic> create(Collection<ClientStatistic> entities)
ClientStatisticDao
entities
collectioncreate
in interface ClientStatisticDao
entities
- the collection of com.communote.server.persistence.user.client.ClientStatistic
instances to create.ClientStatisticDao.create(java.util.Collection
<com.communote.server.persistence.user.client.ClientStatistic>)
public long decrementRepositorySize(long value)
ClientStatisticDao
Decrements the repository size counter.
decrementRepositorySize
in interface ClientStatisticDao
ClientStatisticDao.decrementRepositorySize(long)
public void evict(ClientStatistic entity)
evict
in interface ClientStatisticDao
entity
- the entity to evictpublic long getRepositorySize()
ClientStatisticDao
Gets the current size of the repository.
getRepositorySize
in interface ClientStatisticDao
ClientStatisticDao.getRepositorySize()
protected abstract long handleDecrementRepositorySize(long value)
decrementRepositorySize(long)
protected abstract long handleGetRepositorySize()
getRepositorySize()
protected abstract long handleIncrementRepositorySize(long value)
incrementRepositorySize(long)
protected abstract void handleInitialise()
initialise()
protected abstract void handleResetRepositorySize()
resetRepositorySize()
public long incrementRepositorySize(long value)
ClientStatisticDao
Increments the repository size counter.
incrementRepositorySize
in interface ClientStatisticDao
ClientStatisticDao.incrementRepositorySize(long)
public void initialise()
ClientStatisticDao
Executes initialisations if a new client was created
initialise
in interface ClientStatisticDao
ClientStatisticDao.initialise()
public Object load(int transform, Long id)
ClientStatisticDao
Does the same thing as ClientStatisticDao.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 ClientStatisticDao
id
- the identifier of the entity to load.ClientStatisticDao.load(int, Long)
public ClientStatistic load(Long id)
ClientStatisticDao
load
in interface ClientStatisticDao
ClientStatisticDao.load(Long)
public Collection<ClientStatistic> loadAll()
ClientStatisticDao
ClientStatistic
.loadAll
in interface ClientStatisticDao
ClientStatisticDao.loadAll()
public Collection<?> loadAll(int transform)
ClientStatisticDao
Does the same thing as ClientStatisticDao.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 ClientStatisticDao
transform
- the flag indicating what transformation to use.ClientStatisticDao.loadAll(int)
public void remove(ClientStatistic clientStatistic)
ClientStatisticDao
remove
in interface ClientStatisticDao
ClientStatisticDao.remove(com.communote.server.model.client.ClientStatistic)
public void remove(Collection<ClientStatistic> entities)
ClientStatisticDao
entities collection.
remove
in interface ClientStatisticDao
ClientStatisticDao.remove(java.util.Collection
<com.communote.server.persistence.user.client.ClientStatistic>)
public void remove(Long id)
ClientStatisticDao
identifier
from the persistent store.remove
in interface ClientStatisticDao
ClientStatisticDao.remove(Long)
public void resetRepositorySize()
ClientStatisticDao
Resets the counter for the repository size.
resetRepositorySize
in interface ClientStatisticDao
ClientStatisticDao.resetRepositorySize()
protected void transformEntities(int transform, Collection<?> entities)
transformEntity(int,com.communote.server.model.client.ClientStatistic)
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.client.ClientStatisticDao
entities
- the collection of entities to transformtransformEntity(int,com.communote.server.model.client.ClientStatistic)
protected Object transformEntity(int transform, ClientStatistic entity)
transform
flag is set to one of the constants defined in
com.communote.server.persistence.user.client.ClientStatisticDao
, please note
that the ClientStatisticDao.TRANSFORM_NONE
constant denotes no transformation, so the entity itself
will be returned.
If the integer argument value is unknown ClientStatisticDao.TRANSFORM_NONE
is assumed.transform
- one of the constants declared in
ClientStatisticDao
entity
- an entity that was foundtransformEntities(int,java.util.Collection)
public void update(ClientStatistic clientStatistic)
ClientStatisticDao
clientStatistic
instance in the persistent store.update
in interface ClientStatisticDao
ClientStatisticDao.update(com.communote.server.model.client.ClientStatistic)
public void update(Collection<ClientStatistic> entities)
ClientStatisticDao
entities
collection in the persistent store.update
in interface ClientStatisticDao
ClientStatisticDao.update(java.util.Collection
<com.communote.server.persistence.user.client.ClientStatistic>)
Copyright © 2019 Communote team. All rights reserved.