| 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, NOTE that normally only after commit or flush
entitymanagers will reflect changes caused by saving all entities, this
may cause entitylisteners to fail.
|
<T extends EntityInterface> |
AbstractCrudService.batchSave(Collection<T> entities,
Integer flushCount) |
<T extends EntityInterface> |
CrudWriteService.save(T t)
create or update depending on
isTransient(). |
<T extends EntityInterface> |
AbstractCrudService.save(T t)
When overriding look into roles to use, these
are not inherited.
|
| Modifier and Type | Method and Description |
|---|---|
EntityInterface |
EntityException.getFailed() |
| Modifier and Type | Method and Description |
|---|---|
static Optional<EntityInterface> |
EntityException.fromException(Throwable ex)
get hold of an entity in the exception chain.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CrudWriteService.delete(EntityInterface t) |
void |
AbstractCrudService.delete(EntityInterface t)
When overriding look into roles to use, these
are not inherited.
|
| Modifier and Type | Method and Description |
|---|---|
int |
CrudWriteService.batchDelete(Collection<? extends EntityInterface> entities,
Integer flushCount)
save multiple entities, NOTE that normally only after commit or flush
entitymanagers will reflect changes caused by saving all entities, this
may cause entitylisteners to fail.
|
int |
AbstractCrudService.batchDelete(Collection<? extends EntityInterface> t,
Integer flushCount) |
| Constructor and Description |
|---|
EntityException(EntityInterface failed) |
EntityException(EntityInterface failed,
Exception ex) |
EntityException(EntityInterface failed,
String message) |
EntityException(EntityInterface failed,
String message,
Exception ex) |
| 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.