T
- Klasa obiektu, który jest zmapowany w hibernatePK
- Klasa klucza głównego obiektu@Repository public abstract class HibernateEditableDao<T,PK extends Serializable> extends HibernateBaseDao<T,PK> implements EditableDao<T,PK>
type
Constructor and Description |
---|
HibernateEditableDao() |
Modifier and Type | Method and Description |
---|---|
void |
delete(T entity)
Usuwa podany obiekt z bazy danych
|
T |
merge(T entity)
Wywołuje metodę
Session.merge(Object) |
PK |
save(T entity)
Zapisuje obiekt w bazie danych
|
void |
update(T entity)
Modyfikuje informacje o obiekcie
|
countAll, countByCriteria, findByCriteria, findByCriteria, findByProperty, findOne, findOneByProperty, get, get, getAll, getAll, getByField, getSession, getSessionFactory, propertyList, setSessionFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
countAll, countByCriteria, findByCriteria, findByCriteria, findByProperty, findOne, findOneByProperty, get, get, getAll, getAll, getByField, propertyList
public void update(T entity)
EditableDao
update
in interface EditableDao<T,PK extends Serializable>
entity
- Obiekt, który chcemy zmodyfikowaćpublic void delete(T entity)
EditableDao
delete
in interface EditableDao<T,PK extends Serializable>
entity
- Obiekt bazodanowypublic PK save(T entity)
EditableDao
save
in interface EditableDao<T,PK extends Serializable>
entity
- Obiekt, który chcemy zapisaćpublic T merge(T entity)
EditableDao
Session.merge(Object)
merge
in interface EditableDao<T,PK extends Serializable>
entity
- encjaCopyright © 2023 Suncode. All rights reserved.