public class HostDAO extends Object
| Constructor and Description |
|---|
HostDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
create(HostEntity hostEntity) |
List<HostEntity> |
findAll() |
HostEntity |
findById(long hostId)
Looks for Host by ID
|
HostEntity |
findByName(String hostName) |
List<HostEntity> |
findByStage(StageEntity stageEntity) |
List<String> |
getHostNamesByHostIds(List<Long> hostIds) |
HostEntity |
merge(HostEntity hostEntity) |
void |
refresh(HostEntity hostEntity)
Refreshes entity state from database
|
void |
remove(HostEntity hostEntity) |
public HostEntity findById(long hostId)
hostId - ID of Hostpublic HostEntity findByName(String hostName)
public List<HostEntity> findAll()
public List<HostEntity> findByStage(StageEntity stageEntity)
public void refresh(HostEntity hostEntity)
hostEntity - entity to refreshpublic void create(HostEntity hostEntity)
public HostEntity merge(HostEntity hostEntity)
public void remove(HostEntity hostEntity)
Copyright © 2022 Apache Software Foundation. All rights reserved.