public class BlueprintDAO extends Object
Constructor and Description |
---|
BlueprintDAO() |
Modifier and Type | Method and Description |
---|---|
void |
create(BlueprintEntity blueprintEntity)
Make an instance managed and persistent.
|
List<BlueprintEntity> |
findAll()
Find all blueprints.
|
BlueprintEntity |
findByName(String blueprint_name)
Find a blueprint with a given name.
|
BlueprintEntity |
merge(BlueprintEntity blueprintEntity)
Merge the state of the given entity into the current persistence context.
|
void |
refresh(BlueprintEntity blueprintEntity)
Refresh the state of the instance from the database,
overwriting changes made to the entity, if any.
|
void |
remove(BlueprintEntity blueprintEntity)
Remove the entity instance.
|
void |
removeByName(String blueprint_name)
Remove entity instance by primary key
|
public BlueprintEntity findByName(String blueprint_name)
blueprint_name
- name of blueprint to findpublic List<BlueprintEntity> findAll()
public void refresh(BlueprintEntity blueprintEntity)
blueprintEntity
- entity to refreshpublic void create(BlueprintEntity blueprintEntity)
blueprintEntity
- entity to persistpublic BlueprintEntity merge(BlueprintEntity blueprintEntity)
blueprintEntity
- entity to mergepublic void remove(BlueprintEntity blueprintEntity)
blueprintEntity
- entity to removepublic void removeByName(String blueprint_name)
blueprint_name
- Primary key: blueprint nameCopyright © 2022 Apache Software Foundation. All rights reserved.