public abstract class ContactDaoBase extends org.springframework.orm.hibernate3.support.HibernateDaoSupport implements ContactDao
Base Spring DAO Class: is able to create, update, remove, load, and find objects of type
com.communote.server.persistence.user.Contact.
ContactTRANSFORM_NONE| Constructor and Description |
|---|
ContactDaoBase() |
| Modifier and Type | Method and Description |
|---|---|
Collection<Contact> |
create(Collection<Contact> entities)
Creates a new instance of com.communote.server.persistence.user.Contact and adds from the
passed in
entities collection |
Contact |
create(Contact contact)
Creates an instance of com.communote.server.persistence.user.Contact and adds it to the
persistent store.
|
Collection<Contact> |
create(int transform,
Collection<Contact> entities)
Does the same thing as
ContactDao.create(com.communote.server.model.user.Contact) with an
additional flag called transform. |
Object |
create(int transform,
Contact contact)
Does the same thing as
ContactDao.create(com.communote.server.model.user.Contact) with an
additional flag called transform. |
void |
evict(Contact entity)
Evicts (removes) the entity from the hibernate cache
|
Object |
load(int transform,
Long id)
Does the same thing as
ContactDao.load(Long) with an additional flag called
transform. |
Contact |
load(Long id)
Loads an instance of com.communote.server.persistence.user.Contact from the persistent store.
|
Collection<Contact> |
loadAll()
Loads all entities of type
Contact. |
Collection<?> |
loadAll(int transform)
Does the same thing as
ContactDao.loadAll() with an additional flag called
transform. |
void |
remove(Collection<Contact> entities)
Removes all entities in the given
entities |
void |
remove(Contact contact)
Removes the instance of com.communote.server.persistence.user.Contact from the persistent
store.
|
void |
remove(Long id)
Removes the instance of com.communote.server.persistence.user.Contact 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.user.Contact) method. |
protected Object |
transformEntity(int transform,
Contact 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.ContactDao, please note that the
ContactDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself will be
returned. |
void |
update(Collection<Contact> entities)
Updates all instances in the
entities collection in the persistent store. |
void |
update(Contact contact)
Updates the
contact instance in the persistent store. |
public Contact create(Contact contact)
ContactDaocreate in interface ContactDaoContactDao.create(com.communote.server.model.user.Contact)public Object create(int transform, Contact contact)
ContactDao
Does the same thing as ContactDao.create(com.communote.server.model.user.Contact) 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 ContactDaocom.communote.server.persistence.user.ContactDao#create(int transform,
com.communote.server.persistence.user.Contact)public Collection<Contact> create(int transform, Collection<Contact> entities)
ContactDao
Does the same thing as ContactDao.create(com.communote.server.model.user.Contact) 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 ContactDaocom.communote.server.persistence.user.ContactDao#create(int,
java.util.Collection) public Collection<Contact> create(Collection<Contact> entities)
ContactDaoentities collectioncreate in interface ContactDaoentities - the collection of com.communote.server.persistence.user.Contact instances to
create.com.communote.server.persistence.user.ContactDao#create(java.util.Collection) public void evict(Contact entity)
evict in interface ContactDaoentity - the entity to evictpublic Object load(int transform, Long id)
ContactDao
Does the same thing as ContactDao.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 ContactDaoid - the identifier of the entity to load.ContactDao.load(int, Long)public Contact load(Long id)
ContactDaoload in interface ContactDaoContactDao.load(Long)public Collection<Contact> loadAll()
ContactDaoContact.loadAll in interface ContactDaoContactDao.loadAll()public Collection<?> loadAll(int transform)
ContactDao
Does the same thing as ContactDao.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 ContactDaotransform - the flag indicating what transformation to use.ContactDao.loadAll(int)public void remove(Contact contact)
ContactDaoremove in interface ContactDaoContactDao.remove(com.communote.server.model.user.Contact)public void remove(Collection<Contact> entities)
ContactDaoentities collection.remove in interface ContactDaocom.communote.server.persistence.user.ContactDao#remove(java.util.Collection) public void remove(Long id)
ContactDaoidentifier from the persistent store.remove in interface ContactDaoContactDao.remove(Long)protected void transformEntities(int transform,
Collection<?> entities)
transformEntity(int,com.communote.server.model.user.Contact) 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.ContactDaoentities - the collection of entities to transformtransformEntity(int,com.communote.server.model.user.Contact)protected Object transformEntity(int transform, Contact entity)
transform flag is set to one of the constants defined in
com.communote.server.persistence.user.ContactDao, please note that the
ContactDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself will be
returned.
If the integer argument value is unknown ContactDao.TRANSFORM_NONE is assumed.transform - one of the constants declared in
ContactDaoentity - an entity that was foundtransformEntities(int,java.util.Collection)public void update(Contact contact)
ContactDaocontact instance in the persistent store.update in interface ContactDaoContactDao.update(com.communote.server.model.user.Contact)public void update(Collection<Contact> entities)
ContactDaoentities collection in the persistent store.update in interface ContactDaocom.communote.server.persistence.user.ContactDao#update(java.util.Collection) Copyright © 2019 Communote team. All rights reserved.