public abstract class BinaryPropertyDaoBase extends org.springframework.orm.hibernate3.support.HibernateDaoSupport implements BinaryPropertyDao
Base Spring DAO Class: is able to create, update, remove, load, and find objects of type
BinaryProperty.
BinaryPropertyTRANSFORM_NONE| Constructor and Description |
|---|
BinaryPropertyDaoBase() |
| Modifier and Type | Method and Description |
|---|---|
BinaryProperty |
create(BinaryProperty binaryProperty)
Creates an instance of BinaryProperty and adds it to the persistent store.
|
Collection<BinaryProperty> |
create(Collection<BinaryProperty> entities)
Creates a new instance of BinaryProperty and adds from the passed in
entities
collection |
Object |
create(int transform,
BinaryProperty binaryProperty)
Does the same thing as
BinaryPropertyDao.create(BinaryProperty) with an additional flag called
transform. |
Collection<BinaryProperty> |
create(int transform,
Collection<BinaryProperty> entities)
Does the same thing as
BinaryPropertyDao.create(BinaryProperty) with an additional flag called
transform. |
void |
evict(BinaryProperty entity)
Evicts (removes) the entity from the hibernate cache
|
IdDateTO |
findIdByKey(String keyGroup,
String key)
Retrieve the ID of the property that has the given group and key.
|
protected abstract IdDateTO |
handleFindIdByKey(String keyGroup,
String key)
Performs the core logic for
findIdByKey(String, String) |
Object |
load(int transform,
Long id)
Does the same thing as
BinaryPropertyDao.load(Long) with an additional flag called
transform. |
BinaryProperty |
load(Long id)
Loads an instance of BinaryProperty from the persistent store.
|
Collection<BinaryProperty> |
loadAll()
Loads all entities of type
BinaryProperty. |
Collection<?> |
loadAll(int transform)
Does the same thing as
BinaryPropertyDao.loadAll() with an additional flag called
transform. |
void |
remove(BinaryProperty binaryProperty)
Removes the instance of BinaryProperty from the persistent store.
|
void |
remove(Collection<BinaryProperty> entities)
Removes all entities in the given
entities |
void |
remove(Long id)
Removes the instance of BinaryProperty having the given
identifier from the
persistent store. |
protected void |
transformEntities(int transform,
Collection<?> entities)
Transforms a collection of entities using the
transformEntity(int,BinaryProperty)
method. |
protected Object |
transformEntity(int transform,
BinaryProperty 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
BinaryPropertyDao, please note that the BinaryPropertyDao.TRANSFORM_NONE constant denotes
no transformation, so the entity itself will be returned. |
void |
update(BinaryProperty binaryProperty)
Updates the
binaryProperty instance in the persistent store. |
void |
update(Collection<BinaryProperty> entities)
Updates all instances in the
entities collection in the persistent store. |
public BinaryProperty create(BinaryProperty binaryProperty)
BinaryPropertyDaocreate in interface BinaryPropertyDaoBinaryPropertyDao.create(BinaryProperty)public Collection<BinaryProperty> create(Collection<BinaryProperty> entities)
BinaryPropertyDaoentities
collectioncreate in interface BinaryPropertyDaoentities - the collection of BinaryProperty instances to create.BinaryPropertyDao#create(Collection) public Object create(int transform, BinaryProperty binaryProperty)
BinaryPropertyDao
Does the same thing as BinaryPropertyDao.create(BinaryProperty) 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 BinaryPropertyDaoBinaryPropertyDao.create(int transform, BinaryProperty)public Collection<BinaryProperty> create(int transform, Collection<BinaryProperty> entities)
BinaryPropertyDao
Does the same thing as BinaryPropertyDao.create(BinaryProperty) 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 BinaryPropertyDaoBinaryPropertyDao#create(int, Collection) public void evict(BinaryProperty entity)
evict in interface BinaryPropertyDaoentity - the entity to evictpublic IdDateTO findIdByKey(String keyGroup, String key)
BinaryPropertyDaofindIdByKey in interface BinaryPropertyDaokeyGroup - the group of the property to findkey - the key of the property to findBinaryPropertyDao.findIdByKey(String, String)protected abstract IdDateTO handleFindIdByKey(String keyGroup, String key)
findIdByKey(String, String)public Object load(int transform, Long id)
BinaryPropertyDao
Does the same thing as BinaryPropertyDao.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 BinaryPropertyDaoid - the identifier of the entity to load.BinaryPropertyDao.load(int, Long)public BinaryProperty load(Long id)
BinaryPropertyDaoload in interface BinaryPropertyDaoBinaryPropertyDao.load(Long)public Collection<BinaryProperty> loadAll()
BinaryPropertyDaoBinaryProperty.loadAll in interface BinaryPropertyDaoBinaryPropertyDao.loadAll()public Collection<?> loadAll(int transform)
BinaryPropertyDao
Does the same thing as BinaryPropertyDao.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 BinaryPropertyDaotransform - the flag indicating what transformation to use.BinaryPropertyDao.loadAll(int)public void remove(BinaryProperty binaryProperty)
BinaryPropertyDaoremove in interface BinaryPropertyDaoBinaryPropertyDao.remove(BinaryProperty)public void remove(Collection<BinaryProperty> entities)
BinaryPropertyDaoentities collection.remove in interface BinaryPropertyDaoBinaryPropertyDao#remove(Collection) public void remove(Long id)
BinaryPropertyDaoidentifier from the
persistent store.remove in interface BinaryPropertyDaoBinaryPropertyDao.remove(Long)protected void transformEntities(int transform,
Collection<?> entities)
transformEntity(int,BinaryProperty)
method. This method does not instantiate a new collection.
This method is to be used internally only.transform - one of the constants declared in BinaryPropertyDaoentities - the collection of entities to transformtransformEntity(int,BinaryProperty)protected Object transformEntity(int transform, BinaryProperty entity)
transform flag is set to one of the constants defined in
BinaryPropertyDao, please note that the BinaryPropertyDao.TRANSFORM_NONE constant denotes
no transformation, so the entity itself will be returned.
If the integer argument value is unknown BinaryPropertyDao.TRANSFORM_NONE is assumed.transform - one of the constants declared in BinaryPropertyDaoentity - an entity that was foundtransformEntities(int,Collection)public void update(BinaryProperty binaryProperty)
BinaryPropertyDaobinaryProperty instance in the persistent store.update in interface BinaryPropertyDaoBinaryPropertyDao.update(BinaryProperty)public void update(Collection<BinaryProperty> entities)
BinaryPropertyDaoentities collection in the persistent store.update in interface BinaryPropertyDaoBinaryPropertyDao#update(Collection) Copyright © 2019 Communote team. All rights reserved.