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
.
IpRangeChannel
TRANSFORM_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)
IpRangeChannelDao
create
in interface IpRangeChannelDao
IpRangeChannelDao.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 IpRangeChannelDao
com.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 IpRangeChannelDao
com.communote.server.persistence.security.iprange.IpRangeChannelDao#create(int,
java.util.Collection)
public Collection<IpRangeChannel> create(Collection<IpRangeChannel> entities)
IpRangeChannelDao
entities
collectioncreate
in interface IpRangeChannelDao
entities
- 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 IpRangeChannelDao
entity
- the entity to evictpublic List<IpRange> findEnabledExcludeRanges(ChannelType channel)
findEnabledExcludeRanges
in interface IpRangeChannelDao
IpRangeChannelDao.findEnabledExcludeRanges(com.communote.server.model.security.ChannelType)
public List<IpRange> findEnabledIncludeRanges(ChannelType channel)
findEnabledIncludeRanges
in interface IpRangeChannelDao
IpRangeChannelDao.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 IpRangeChannelDao
type
- the identifier of the entity to load.IpRangeChannelDao.load(int, String)
public IpRangeChannel load(String type)
IpRangeChannelDao
load
in interface IpRangeChannelDao
IpRangeChannelDao.load(String)
public Collection<IpRangeChannel> loadAll()
IpRangeChannelDao
IpRangeChannel
.loadAll
in interface IpRangeChannelDao
IpRangeChannelDao.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 IpRangeChannelDao
transform
- the flag indicating what transformation to use.IpRangeChannelDao.loadAll(int)
public void remove(IpRangeChannel ipRangeChannel)
IpRangeChannelDao
remove
in interface IpRangeChannelDao
IpRangeChannelDao.remove(com.communote.server.model.security.IpRangeChannel)
public void remove(Collection<IpRangeChannel> entities)
IpRangeChannelDao
entities collection.
remove
in interface IpRangeChannelDao
com.communote.server.persistence.security.iprange.IpRangeChannelDao#remove(java.util.
Collection)
public void remove(String type)
IpRangeChannelDao
identifier
from the persistent store.remove
in interface IpRangeChannelDao
IpRangeChannelDao.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.IpRangeChannelDao
entities
- 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
IpRangeChannelDao
entity
- an entity that was foundtransformEntities(int,java.util.Collection)
public void update(IpRangeChannel ipRangeChannel)
IpRangeChannelDao
ipRangeChannel
instance in the persistent store.update
in interface IpRangeChannelDao
IpRangeChannelDao.update(com.communote.server.model.security.IpRangeChannel)
public void update(Collection<IpRangeChannel> entities)
IpRangeChannelDao
entities
collection in the persistent store.update
in interface IpRangeChannelDao
com.communote.server.persistence.security.iprange.IpRangeChannelDao#update(java.util.
Collection)
Copyright © 2019 Communote team. All rights reserved.