org.shredzone.repowatch.repository.hib
Class BaseDAOHibImpl<T extends BaseModel>
java.lang.Object
org.shredzone.repowatch.repository.hib.BaseDAOHibImpl<T>
- Type Parameters:
T - Type of entity
- All Implemented Interfaces:
- BaseDAO<T>
- Direct Known Subclasses:
- BlacklistDAOHibImpl, ChangeDAOHibImpl, DomainDAOHibImpl, PackageDAOHibImpl, RepositoryDAOHibImpl, VersionDAOHibImpl
@Repository
@Transactional
public abstract class BaseDAOHibImpl<T extends BaseModel>
- extends Object
- implements BaseDAO<T>
Base implementation of BaseDAO.
|
Method Summary |
void |
delete(T data)
Deletes an entity. |
protected org.hibernate.Session |
getCurrentSession()
Gets the current Session. |
void |
insert(T data)
Inserts a new entity. |
T |
merge(T data)
Merges a detached entity. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.shredzone.repowatch.repository.BaseDAO |
fetch |
BaseDAOHibImpl
public BaseDAOHibImpl()
getCurrentSession
protected org.hibernate.Session getCurrentSession()
- Gets the current
Session.
- Returns:
- Current
Session
insert
public void insert(T data)
- Description copied from interface:
BaseDAO
- Inserts a new entity.
- Specified by:
insert in interface BaseDAO<T extends BaseModel>
- Parameters:
data - Entity to insert.
merge
public T merge(T data)
- Description copied from interface:
BaseDAO
- Merges a detached entity.
- Specified by:
merge in interface BaseDAO<T extends BaseModel>
- Parameters:
data - Entity to merge.
- Returns:
- Merged entity.
delete
public void delete(T data)
- Description copied from interface:
BaseDAO
- Deletes an entity.
- Specified by:
delete in interface BaseDAO<T extends BaseModel>
- Parameters:
data - Entity to be deleted.
Copyright © 2007-2011
shredzone.org. All Rights Reserved.