|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.userban.service.AbstractService<K,E>
K - the bean primary keyE - the bean classpublic abstract class AbstractService<K,E extends AbstractBean<K>>
The abstract class service
| Constructor Summary | |
|---|---|
AbstractService()
|
|
| Method Summary | |
|---|---|
void |
doDeleteBean(K id)
Delete user in database |
void |
doSaveBean(E bean)
Create or update user in database |
List<E> |
find(AbstractFilter<K> filter,
PaginationProperties paginationProperties)
Get all the bean matching the filter from dao |
List<E> |
findAll(PaginationProperties paginationProperties)
Get all the bean from dao |
E |
findByPrimaryKey(K id)
Find an entity by its Id |
protected abstract Class<E> |
getBeanClass()
Get the class type of the bean |
protected abstract IAbstractDAO<K,E> |
getDAO()
Get the bean dao |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractService()
| Method Detail |
|---|
protected abstract IAbstractDAO<K,E> getDAO()
protected abstract Class<E> getBeanClass()
public E findByPrimaryKey(K id)
IAbstractService
findByPrimaryKey in interface IAbstractService<K,E extends AbstractBean<K>>id - The entity key
public List<E> findAll(PaginationProperties paginationProperties)
IAbstractService
findAll in interface IAbstractService<K,E extends AbstractBean<K>>paginationProperties - the pagination properties
public List<E> find(AbstractFilter<K> filter,
PaginationProperties paginationProperties)
IAbstractService
find in interface IAbstractService<K,E extends AbstractBean<K>>filter - the filterpaginationProperties - the pagination properties
public void doSaveBean(E bean)
IAbstractService
doSaveBean in interface IAbstractService<K,E extends AbstractBean<K>>bean - the bean to savepublic void doDeleteBean(K id)
IAbstractService
doDeleteBean in interface IAbstractService<K,E extends AbstractBean<K>>id - the bean to delete
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||