public abstract class AbstractExtDirectCrudService<E extends de.terrestris.shogun2.model.PersistentObject> extends AbstractCrudService<E>
dao| Constructor and Description |
|---|
AbstractExtDirectCrudService() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(E e)
Just calls the parent method, but is annotated with
ExtDirectMethod. |
void |
deleteCollection(Collection<E> c)
Used for the destroy-method in the api of a Ext-model-proxy, which
usually will also be used by the stores the models are used in.
|
List<E> |
findAll()
Just calls the parent method, but is annotated with
ExtDirectMethod. |
E |
findById(Integer id)
Just calls the parent method, but is annotated with
ExtDirectMethod. |
ch.ralscha.extdirectspring.bean.ExtDirectStoreResult<E> |
findWithSortingAndPagingExtDirect(ch.ralscha.extdirectspring.bean.ExtDirectStoreReadRequest request)
Read method supporting sorting and paging.
|
E |
formLoadById(Integer id)
Method to use as load method in the api of a Ext.form.Panel.
|
E |
saveOrUpdate(E e)
Just calls the parent method, but is annotated with
ExtDirectMethod. |
Collection<E> |
saveOrUpdateCollection(Collection<E> c)
Used for the create- and update methods in the api of a Ext-model-proxy,
which usually will also be used by the stores the models are used in.
|
loadById@ExtDirectMethod public E saveOrUpdate(E e)
ExtDirectMethod.
The Transactional annotation is required here, because we are
overriding the method from the parent class (which actually has this
annotation, too).saveOrUpdate in class AbstractCrudService<E extends de.terrestris.shogun2.model.PersistentObject>@ExtDirectMethod public E findById(Integer id)
ExtDirectMethod.findById in class AbstractCrudService<E extends de.terrestris.shogun2.model.PersistentObject>id - @ExtDirectMethod public List<E> findAll()
ExtDirectMethod.findAll in class AbstractCrudService<E extends de.terrestris.shogun2.model.PersistentObject>@ExtDirectMethod public void delete(E e)
ExtDirectMethod.
The Transactional annotation is required here, because we are
overriding the method from the parent class (which actually has this
annotation, too).delete in class AbstractCrudService<E extends de.terrestris.shogun2.model.PersistentObject>e - @ExtDirectMethod(value=STORE_READ) public ch.ralscha.extdirectspring.bean.ExtDirectStoreResult<E> findWithSortingAndPagingExtDirect(ch.ralscha.extdirectspring.bean.ExtDirectStoreReadRequest request)
request - Ext direct request sent by the client.@ExtDirectMethod(value=FORM_LOAD) public E formLoadById(@RequestParam Integer id)
findById(Integer) is, that the argument
of this method is annotated with link RequestParam, which is
needed to use this method as the load method in the api definition.id - @ExtDirectMethod(value=STORE_MODIFY) public Collection<E> saveOrUpdateCollection(Collection<E> c)
e - @ExtDirectMethod(value=STORE_MODIFY) public void deleteCollection(Collection<E> c)
e - Copyright © 2016 terrestris GmbH & Co. KG. All rights reserved.