| Package | Description |
|---|---|
| org.fryske_akademy.ejb |
This package contains interfaces and base classes for the development of EJB crud beans.
|
| org.fryske_akademy.jpa |
This package contains an interface and a mapped superclass for entities, classes to support revisions (history) of entities and
a helper class.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends EntityInterface> |
CrudWriteService.batchSave(Collection<T> entities,
Integer flushCount)
save multiple entities
|
<T extends EntityInterface> |
AbstractCrudService.batchSave(Collection<T> entities,
Integer flushCount)
updates multiple entities, when flushCount != null flushes and clears the entitymanager every flushCount entities.
|
<T extends EntityInterface> |
CrudWriteService.save(T t)
create or update depending on
isTransient(). |
<T extends EntityInterface> |
AbstractCrudService.save(T t)
create or update depending on
isTransient(). |
| Modifier and Type | Method and Description |
|---|---|
void |
CrudWriteService.delete(EntityInterface t) |
void |
AbstractCrudService.delete(EntityInterface t)
When overriding look into
Transactional and roles to use, these
are not inherited. |
| Modifier and Type | Method and Description |
|---|---|
int |
CrudWriteService.batchDelete(Collection<? extends EntityInterface> entities,
Integer flushCount)
delete multiple entities
|
int |
AbstractCrudService.batchDelete(Collection<? extends EntityInterface> t,
Integer flushCount)
deletes multiple entities, when flushCount != null flushes and clears the entitymanager every flushCount entities.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractEntity
superclass for entities, defines auto generated id (
GenerationType.IDENTITY), a version column and a function to check if the entity is transient (not in db yet). |
Copyright © 2018 Fryske Akademy. All rights reserved.