T - The type of the Persistable.@Status(stage=PRODUCTION, unitTests=NOT_APPLICABLE) @Review(by="Kees Schotanus", at="2009-09-24") public interface CrudChildActions<T extends Persistable>
RuntimeException is thrown, it will be wrapped in an
EJBException before thrown to the client. In addition. the
transaction will be marked for read-only.| Modifier and Type | Method and Description |
|---|---|
List<T> |
findByCriteria(Searchable criteria)
Finds Entities based upon criteria.
|
T |
findById(Long objectId)
Finds the Entity.
|
T |
merge(T entity)
Merges the Entity.
|
void |
persist(T childEntity,
Long parentId)
Persists the Entity.
|
void |
remove(T entity)
Removes the Entity.
|
void persist(T childEntity, Long parentId)
childEntity - The child entity to persist.parentId - The Object ID of the parent entity.NullPointerException - When the supplied entity is null.javax.persistence.PersistenceException - When the persist operation
failed.T findById(Long objectId)
objectId - The Object ID of the entity to find.NullPointerException - When the supplied objectId is null.T merge(T entity)
entity - The entity to merge.
NullPointerException - When the supplied entity is null.javax.persistence.PersistenceException - when the merge operation
failed.void remove(T entity)
entity - The entity to merge.
NullPointerException - When the supplied entity is null.javax.persistence.PersistenceException - when the remove operation
failed.List<T> findByCriteria(Searchable criteria)
criteria - The search criteria.NullPointerException - When the supplied criteria object is null.Copyright © 2008–2017. All rights reserved.