BaseDAO<T>
ComponentDAOImpl
, ConfigurationDAOImpl
, CustomFieldDAOImpl
, CustomFieldValueDAOImpl
, IssueActivityDAOImpl
, IssueAttachmentDAOImpl
, IssueDAOImpl
, IssueHistoryDAOImpl
, IssueRelationDAOImpl
, LanguageDAOImpl
, NotificationDAOImpl
, PermissionDAOImpl
, ProjectDAOImpl
, ProjectScriptDAOImpl
, ReportDAOImpl
, UserDAOImpl
, UserPreferencesDAOImpl
, VersionDAOImpl
, WorkflowScriptDAOImpl
public abstract class BaseHibernateDAOImpl<T extends Entity> extends org.springframework.orm.hibernate3.support.HibernateDaoSupport implements BaseDAO<T>
Constructor | Description |
---|---|
BaseHibernateDAOImpl() |
Modifier and Type | Method | Description |
---|---|---|
void |
delete(T entity) |
Deletes entity from persistence store.
|
void |
detach(T entity) |
Remove this instance from the session cache.
|
T |
merge(T entity) |
Copy the state of the given object onto the persistent object with the same
identifier.
|
void |
refresh(T entity) |
Reloads an entity from persistance.
|
void |
save(T entity) |
insert a new entity.
|
void |
saveOrUpdate(T entity) |
inserts a new detached entity or updates if it already exists.
|
public void save(T entity)
public void saveOrUpdate(T entity)
saveOrUpdate
in interface BaseDAO<T extends Entity>
entity
- - entity object to be inserted or updatedSession.saveOrUpdate(Object)
public void delete(T entity)
BaseDAO
public void detach(T entity)
BaseDAO
public void refresh(T entity)
BaseDAO
Copyright © 2002–2019 itracker. All rights reserved.