public class RemoveDao extends Object implements Removable
HibernateException,
Session,
ConstraintViolationException,
Removable,
Entitable,
LogicDeletable,
SessionConfigAbstract| Constructor and Description |
|---|
RemoveDao(SessionConfigAbstract sessionConfig)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
remove(Entitable entity)
Remove an entity permanently
|
boolean |
remove(LogicDeletable entity,
boolean logical)
Remove a entity setting the deleted attribute with true.
|
public RemoveDao(SessionConfigAbstract sessionConfig)
sessionConfig - set the class that implements the Hibernate session
factory configurationpublic boolean remove(Entitable entity) throws org.hibernate.exception.ConstraintViolationException, org.hibernate.HibernateException, Exception
Removablepublic boolean remove(LogicDeletable entity, boolean logical) throws org.hibernate.exception.ConstraintViolationException, org.hibernate.HibernateException, Exception
Removableremove in interface Removableentity - the entity that will be removedlogical - sets true if this remove action is of the logical wayorg.hibernate.exception.ConstraintViolationExceptionorg.hibernate.HibernateExceptionExceptionCopyright © 2016. All rights reserved.