public class ClusterDAO extends Object
| Constructor and Description |
|---|
ClusterDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
create(ClusterEntity clusterEntity)
Create Cluster entity in Database
|
void |
createConfig(ClusterConfigEntity entity)
Creates a cluster configuration in the DB.
|
List<ClusterEntity> |
findAll() |
ClusterEntity |
findById(long id)
Looks for Cluster by ID
|
ClusterEntity |
findByName(String clusterName) |
ClusterConfigEntity |
findConfig(ClusterConfigEntityPK configEntityPK) |
ClusterEntity |
merge(ClusterEntity clusterEntity) |
void |
refresh(ClusterEntity clusterEntity)
Retrieve entity data from DB
|
void |
remove(ClusterEntity clusterEntity) |
void |
removeByName(String clusterName) |
void |
removeByPK(long id) |
public ClusterEntity findById(long id)
id - ID of Clusterpublic ClusterEntity findByName(String clusterName)
public List<ClusterEntity> findAll()
public ClusterConfigEntity findConfig(ClusterConfigEntityPK configEntityPK)
public void create(ClusterEntity clusterEntity)
clusterEntity - entity to createpublic void createConfig(ClusterConfigEntity entity)
public void refresh(ClusterEntity clusterEntity)
clusterEntity - entity to refreshpublic ClusterEntity merge(ClusterEntity clusterEntity)
public void remove(ClusterEntity clusterEntity)
public void removeByName(String clusterName)
public void removeByPK(long id)
Copyright © 2016. All rights reserved.