@Singleton public class ComponentDao extends AbstractDao
jpa
Modifier and Type | Method and Description |
---|---|
void |
changeActive(Component component,
boolean active)
Change and persist active property of a Component.
|
void |
create(Component component) |
Component |
findById(java.lang.Long id) |
java.util.List<Component> |
findByTitle(java.lang.String title)
Finds all components with the given title and returns them in a list.
|
java.util.Optional<Component> |
findByUuid(java.lang.String uuid)
Finds the component with this UUID
|
java.util.Optional<Component> |
findByUuid(java.lang.String uuid,
Study study)
Searches for components with this UUID within the given study.
|
void |
remove(Component component) |
void |
update(Component component) |
merge, persist, refresh, remove
public void create(Component component)
public void update(Component component)
public void changeActive(Component component, boolean active)
public void remove(Component component)
public Component findById(java.lang.Long id)
public java.util.Optional<Component> findByUuid(java.lang.String uuid)
public java.util.Optional<Component> findByUuid(java.lang.String uuid, Study study)
public java.util.List<Component> findByTitle(java.lang.String title)