public abstract class IpRangeChannelDaoBase extends org.springframework.orm.hibernate3.support.HibernateDaoSupport implements IpRangeChannelDao
Base Spring DAO Class: is able to create, update, remove, load, and find objects of type
com.communote.server.persistence.security.iprange.IpRangeChannel.
IpRangeChannelTRANSFORM_NONE| Constructor and Description |
|---|
IpRangeChannelDaoBase() |
| Modifier and Type | Method and Description |
|---|---|
Collection<IpRangeChannel> |
create(Collection<IpRangeChannel> entities)
Creates a new instance of com.communote.server.persistence.security.iprange.IpRangeChannel
and adds from the passed in
entities collection |
Collection<IpRangeChannel> |
create(int transform,
Collection<IpRangeChannel> entities)
Does the same thing as
IpRangeChannelDao.create(com.communote.server.model.security.IpRangeChannel)
with an additional flag called transform. |
Object |
create(int transform,
IpRangeChannel ipRangeChannel)
Does the same thing as
IpRangeChannelDao.create(com.communote.server.model.security.IpRangeChannel)
with an additional flag called transform. |
IpRangeChannel |
create(IpRangeChannel ipRangeChannel)
Creates an instance of com.communote.server.persistence.security.iprange.IpRangeChannel and
adds it to the persistent store.
|
void |
evict(IpRangeChannel entity)
Evicts (removes) the entity from the hibernate cache
|
List<IpRange> |
findEnabledExcludeRanges(ChannelType channel) |
List<IpRange> |
findEnabledIncludeRanges(ChannelType channel) |
protected abstract List<IpRange> |
handleFindEnabledExcludeRanges(ChannelType channel)
Performs the core logic for
findEnabledExcludeRanges(com.communote.server.model.security.ChannelType) |
protected abstract List<IpRange> |
handleFindEnabledIncludeRanges(ChannelType channel)
Performs the core logic for
findEnabledIncludeRanges(com.communote.server.model.security.ChannelType) |
Object |
load(int transform,
String type)
Does the same thing as
IpRangeChannelDao.load(String) with an additional flag called
transform. |
IpRangeChannel |
load(String type)
Loads an instance of com.communote.server.persistence.security.iprange.IpRangeChannel from
the persistent store.
|
Collection<IpRangeChannel> |
loadAll()
Loads all entities of type
IpRangeChannel. |
Collection<?> |
loadAll(int transform)
Does the same thing as
IpRangeChannelDao.loadAll() with an additional flag called
transform. |
void |
remove(Collection<IpRangeChannel> entities)
Removes all entities in the given
entities |
void |
remove(IpRangeChannel ipRangeChannel)
Removes the instance of com.communote.server.persistence.security.iprange.IpRangeChannel from
the persistent store.
|
void |
remove(String type)
Removes the instance of com.communote.server.persistence.security.iprange.IpRangeChannel
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.IpRangeChannel) method. |
protected Object |
transformEntity(int transform,
IpRangeChannel 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.IpRangeChannelDao, please note
that the IpRangeChannelDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself
will be returned. |
void |
update(Collection<IpRangeChannel> entities)
Updates all instances in the
entities collection in the persistent store. |
void |
update(IpRangeChannel ipRangeChannel)
Updates the
ipRangeChannel instance in the persistent store. |
public IpRangeChannel create(IpRangeChannel ipRangeChannel)
IpRangeChannelDaocreate in interface IpRangeChannelDaoIpRangeChannelDao.create(com.communote.server.model.security.IpRangeChannel)public Object create(int transform, IpRangeChannel ipRangeChannel)
IpRangeChannelDao
Does the same thing as IpRangeChannelDao.create(com.communote.server.model.security.IpRangeChannel)
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 IpRangeChannelDaocom.communote.server.persistence.security.iprange.IpRangeChannelDao#create(int
transform, com.communote.server.persistence.security.iprange.IpRangeChannel)public Collection<IpRangeChannel> create(int transform, Collection<IpRangeChannel> entities)
IpRangeChannelDao
Does the same thing as IpRangeChannelDao.create(com.communote.server.model.security.IpRangeChannel)
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 IpRangeChannelDaocom.communote.server.persistence.security.iprange.IpRangeChannelDao#create(int,
java.util.Collection) public Collection<IpRangeChannel> create(Collection<IpRangeChannel> entities)
IpRangeChannelDaoentities collectioncreate in interface IpRangeChannelDaoentities - the collection of com.communote.server.persistence.security.iprange.IpRangeChannel
instances to create.com.communote.server.persistence.security.iprange.IpRangeChannelDao#create(java.util.
Collection) public void evict(IpRangeChannel entity)
evict in interface IpRangeChannelDaoentity - the entity to evictpublic List<IpRange> findEnabledExcludeRanges(ChannelType channel)
findEnabledExcludeRanges in interface IpRangeChannelDaoIpRangeChannelDao.findEnabledExcludeRanges(com.communote.server.model.security.ChannelType)public List<IpRange> findEnabledIncludeRanges(ChannelType channel)
findEnabledIncludeRanges in interface IpRangeChannelDaoIpRangeChannelDao.findEnabledIncludeRanges(com.communote.server.model.security.ChannelType)protected abstract List<IpRange> handleFindEnabledExcludeRanges(ChannelType channel)
findEnabledExcludeRanges(com.communote.server.model.security.ChannelType)protected abstract List<IpRange> handleFindEnabledIncludeRanges(ChannelType channel)
findEnabledIncludeRanges(com.communote.server.model.security.ChannelType)public Object load(int transform, String type)
IpRangeChannelDao
Does the same thing as IpRangeChannelDao.load(String) 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 IpRangeChannelDaotype - the identifier of the entity to load.IpRangeChannelDao.load(int, String)public IpRangeChannel load(String type)
IpRangeChannelDaoload in interface IpRangeChannelDaoIpRangeChannelDao.load(String)public Collection<IpRangeChannel> loadAll()
IpRangeChannelDaoIpRangeChannel.loadAll in interface IpRangeChannelDaoIpRangeChannelDao.loadAll()public Collection<?> loadAll(int transform)
IpRangeChannelDao
Does the same thing as IpRangeChannelDao.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 IpRangeChannelDaotransform - the flag indicating what transformation to use.IpRangeChannelDao.loadAll(int)public void remove(IpRangeChannel ipRangeChannel)
IpRangeChannelDaoremove in interface IpRangeChannelDaoIpRangeChannelDao.remove(com.communote.server.model.security.IpRangeChannel)public void remove(Collection<IpRangeChannel> entities)
IpRangeChannelDaoentities collection.remove in interface IpRangeChannelDaocom.communote.server.persistence.security.iprange.IpRangeChannelDao#remove(java.util.
Collection) public void remove(String type)
IpRangeChannelDaoidentifier from the persistent store.remove in interface IpRangeChannelDaoIpRangeChannelDao.remove(String)protected void transformEntities(int transform,
Collection<?> entities)
transformEntity(int,com.communote.server.model.security.IpRangeChannel) 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.IpRangeChannelDaoentities - the collection of entities to transformtransformEntity(int,com.communote.server.model.security.IpRangeChannel)protected Object transformEntity(int transform, IpRangeChannel entity)
transform flag is set to one of the constants defined in
com.communote.server.persistence.security.iprange.IpRangeChannelDao, please note
that the IpRangeChannelDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself
will be returned.
If the integer argument value is unknown IpRangeChannelDao.TRANSFORM_NONE is assumed.transform - one of the constants declared in
IpRangeChannelDaoentity - an entity that was foundtransformEntities(int,java.util.Collection)public void update(IpRangeChannel ipRangeChannel)
IpRangeChannelDaoipRangeChannel instance in the persistent store.update in interface IpRangeChannelDaoIpRangeChannelDao.update(com.communote.server.model.security.IpRangeChannel)public void update(Collection<IpRangeChannel> entities)
IpRangeChannelDaoentities collection in the persistent store.update in interface IpRangeChannelDaocom.communote.server.persistence.security.iprange.IpRangeChannelDao#update(java.util.
Collection) Copyright © 2019 Communote team. All rights reserved.