public class ResourceDAO extends Object
Constructor and Description |
---|
ResourceDAO() |
Modifier and Type | Method and Description |
---|---|
void |
create(ResourceEntity entity)
Make an instance managed and persistent.
|
List<ResourceEntity> |
findAll()
Find all resources.
|
ResourceEntity |
findAmbariResource()
Finds root level resource.
|
ResourceEntity |
findById(Long id)
Find a resource with the given id.
|
ResourceEntity |
findByResourceTypeId(Integer id)
Find a resource with the given resource type id.
|
ResourceEntity |
merge(ResourceEntity entity) |
public ResourceEntity findById(Long id)
id
- type idpublic ResourceEntity findByResourceTypeId(Integer id)
id
- type idpublic List<ResourceEntity> findAll()
public void create(ResourceEntity entity)
entity
- entity to storepublic ResourceEntity merge(ResourceEntity entity)
public ResourceEntity findAmbariResource()
Copyright © 2022 Apache Software Foundation. All rights reserved.