Package com.suncode.pwfl.support
Class CustomService<T,PK>
java.lang.Object
com.suncode.pwfl.support.CustomService<T,PK>
- Type Parameters:
T- Zmapowana klasaPK- Typ klucza głównego
Klasa umożliwia w łatwy sposób wykonywanie operacji bazodanowych na obiekcie
zmapowanym za pomocą Hibernate
- Author:
- Paweł Rosolak 16 paź 2013
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidfindByCriteria(org.hibernate.criterion.DetachedCriteria dc) findByCriteria(org.hibernate.criterion.DetachedCriteria dc, int start, int limit) getAll()getAll(int start, int limit) getByField(String field, Object value, String... joins) org.hibernate.SessionUłatwia pobranie sesjiorg.hibernate.SessionFactoryvoidsetSessionFactory(org.hibernate.SessionFactory sessionFactory) void
-
Field Details
-
type
-
-
Constructor Details
-
CustomService
-
-
Method Details
-
update
-
delete
-
save
-
getSessionFactory
public org.hibernate.SessionFactory getSessionFactory()- Returns:
- Zwraca sessionFactory
-
setSessionFactory
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory) -
getSession
public org.hibernate.Session getSession()Ułatwia pobranie sesji- Returns:
- Zwraca sesje hibernate
-
findByCriteria
-
findByCriteria
-
get
-
getAll
-
getAll
-
getAll
-
getAll
-
get
-
getByField
-
delete
-