public abstract class IpRangeDaoBase extends org.springframework.orm.hibernate3.support.HibernateDaoSupport implements IpRangeDao
Base Spring DAO Class: is able to create, update, remove, load, and find objects of type
com.communote.server.persistence.security.iprange.IpRange.
IpRangeTRANSFORM_NONE| Constructor and Description |
|---|
IpRangeDaoBase() |
| Modifier and Type | Method and Description |
|---|---|
Collection<IpRange> |
create(Collection<IpRange> entities)
Creates a new instance of com.communote.server.persistence.security.iprange.IpRange and adds
from the passed in
entities collection |
Collection<IpRange> |
create(int transform,
Collection<IpRange> entities)
Does the same thing as
IpRangeDao.create(com.communote.server.model.security.IpRange) with an
additional flag called transform. |
Object |
create(int transform,
IpRange ipRange)
Does the same thing as
IpRangeDao.create(com.communote.server.model.security.IpRange) with an
additional flag called transform. |
IpRange |
create(IpRange ipRange)
Creates an instance of com.communote.server.persistence.security.iprange.IpRange and adds it
to the persistent store.
|
void |
evict(IpRange entity)
Evicts (removes) the entity from the hibernate cache
|
Object |
load(int transform,
Long id)
Does the same thing as
IpRangeDao.load(Long) with an additional flag called
transform. |
IpRange |
load(Long id)
Loads an instance of com.communote.server.persistence.security.iprange.IpRange from the
persistent store.
|
Collection<IpRange> |
loadAll()
Loads all entities of type
IpRange. |
Collection<?> |
loadAll(int transform)
Does the same thing as
IpRangeDao.loadAll() with an additional flag called
transform. |
void |
remove(Collection<IpRange> entities)
Removes all entities in the given
entities |
void |
remove(IpRange ipRange)
Removes the instance of com.communote.server.persistence.security.iprange.IpRange from the
persistent store.
|
void |
remove(Long id)
Removes the instance of com.communote.server.persistence.security.iprange.IpRange 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.security.IpRange) method. |
protected Object |
transformEntity(int transform,
IpRange 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.security.iprange.IpRangeDao, please note that
the IpRangeDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself will be
returned. |
void |
update(Collection<IpRange> entities)
Updates all instances in the
entities collection in the persistent store. |
void |
update(IpRange ipRange)
Updates the
ipRange instance in the persistent store. |
public IpRange create(IpRange ipRange)
IpRangeDaocreate in interface IpRangeDaoIpRangeDao.create(com.communote.server.model.security.IpRange)public Object create(int transform, IpRange ipRange)
IpRangeDao
Does the same thing as IpRangeDao.create(com.communote.server.model.security.IpRange) 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 IpRangeDaocom.communote.server.persistence.security.iprange.IpRangeDao#create(int transform,
com.communote.server.persistence.security.iprange.IpRange)public Collection<IpRange> create(int transform, Collection<IpRange> entities)
IpRangeDao
Does the same thing as IpRangeDao.create(com.communote.server.model.security.IpRange) 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 IpRangeDaocom.communote.server.persistence.security.iprange.IpRangeDao#create(int,
java.util.Collection) public Collection<IpRange> create(Collection<IpRange> entities)
IpRangeDaoentities collectioncreate in interface IpRangeDaoentities - the collection of com.communote.server.persistence.security.iprange.IpRange
instances to create.IpRangeDao.create(java.util.Collection<
com.communote.server.persistence.security.iprange.IpRange>)public void evict(IpRange entity)
evict in interface IpRangeDaoentity - the entity to evictpublic Object load(int transform, Long id)
IpRangeDao
Does the same thing as IpRangeDao.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 IpRangeDaoid - the identifier of the entity to load.IpRangeDao.load(int, Long)public IpRange load(Long id)
IpRangeDaoload in interface IpRangeDaoIpRangeDao.load(Long)public Collection<IpRange> loadAll()
IpRangeDaoIpRange.loadAll in interface IpRangeDaoIpRangeDao.loadAll()public Collection<?> loadAll(int transform)
IpRangeDao
Does the same thing as IpRangeDao.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 IpRangeDaotransform - the flag indicating what transformation to use.IpRangeDao.loadAll(int)public void remove(IpRange ipRange)
IpRangeDaoremove in interface IpRangeDaoIpRangeDao.remove(com.communote.server.model.security.IpRange)public void remove(Collection<IpRange> entities)
IpRangeDaoentities collection.remove in interface IpRangeDaoIpRangeDao.remove(java.util.Collection<
com.communote.server.persistence.security.iprange.IpRange>)public void remove(Long id)
IpRangeDaoidentifier from the persistent store.remove in interface IpRangeDaoIpRangeDao.remove(Long)protected void transformEntities(int transform,
Collection<?> entities)
transformEntity(int,com.communote.server.model.security.IpRange) 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.security.iprange.IpRangeDaoentities - the collection of entities to transformtransformEntity(int,com.communote.server.model.security.IpRange)protected Object transformEntity(int transform, IpRange entity)
transform flag is set to one of the constants defined in
com.communote.server.persistence.security.iprange.IpRangeDao, please note that
the IpRangeDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself will be
returned.
If the integer argument value is unknown IpRangeDao.TRANSFORM_NONE is assumed.transform - one of the constants declared in
IpRangeDaoentity - an entity that was foundtransformEntities(int,java.util.Collection)public void update(IpRange ipRange)
IpRangeDaoipRange instance in the persistent store.update in interface IpRangeDaoIpRangeDao.update(com.communote.server.model.security.IpRange)public void update(Collection<IpRange> entities)
IpRangeDaoentities collection in the persistent store.update in interface IpRangeDaoIpRangeDao.update(java.util.Collection<
com.communote.server.persistence.security.iprange.IpRange>)Copyright © 2019 Communote team. All rights reserved.