public class VmStaticDAODbFacadeImpl extends BaseDAODbFacade implements VmStaticDAO
dbFacade, dialect, jdbcTemplate, RETURN_VALUE_PARAMETER
Constructor and Description |
---|
VmStaticDAODbFacadeImpl() |
Modifier and Type | Method and Description |
---|---|
VmStatic |
get(Guid id)
Retrieves the entity with the given id.
|
List<VmStatic> |
getAll()
Retrieves all the entities of type
T . |
List<VmStatic> |
getAllByGroupAndNetworkName(Guid group,
String name)
Retrieves all static VMs for the specified group and name.
|
List<VmStatic> |
getAllByName(String name)
Gets all static VMs by name.
|
List<VmStatic> |
getAllByStoragePoolId(Guid spId)
Gets all static VMs by Storage Pool Id.
|
List<VmStatic> |
getAllByVdsGroup(Guid vdsGroup)
Retrieves all static VMs for the specified VDS group.
|
List<String> |
getAllNamesPinnedToHost(Guid host)
Get the names of VMs pinned to the specified host.
|
List<VmStatic> |
getAllWithFailbackByVds(Guid vds)
Not really sure what this method's doing.
|
void |
remove(Guid id)
Removes the entity with the given id from the underlying store of data.
|
void |
save(VmStatic vm)
Persist a new instance of the entity.
|
void |
update(VmStatic vm)
Update an existing entity with data from the given instance.
|
getCallsHandler, getCustomMapSqlParameterSource, setDbFacade, setDialect, setTemplate
public VmStatic get(Guid id)
ReadDao
public List<VmStatic> getAll()
ReadDao
T
.public void save(VmStatic vm)
ModificationDao
save
in interface ModificationDao<VmStatic,Guid>
vm
- The entity to persist (can't be null
).public void update(VmStatic vm)
ModificationDao
update
in interface ModificationDao<VmStatic,Guid>
vm
- The entity instance, containing data to update (can't be null
).public void remove(Guid id)
ModificationDao
remove
in interface ModificationDao<VmStatic,Guid>
id
- The id of the entity to remove (can't be null
).public List<VmStatic> getAllByName(String name)
VmStaticDAO
getAllByName
in interface VmStaticDAO
name
- the vm namepublic List<VmStatic> getAllByStoragePoolId(Guid spId)
VmStaticDAO
getAllByStoragePoolId
in interface VmStaticDAO
spId
- storage pool idpublic List<VmStatic> getAllByVdsGroup(Guid vdsGroup)
VmStaticDAO
getAllByVdsGroup
in interface VmStaticDAO
vdsGroup
- the VDS grouppublic List<VmStatic> getAllWithFailbackByVds(Guid vds)
VmStaticDAO
getAllWithFailbackByVds
in interface VmStaticDAO
vds
- the VDS idpublic List<VmStatic> getAllByGroupAndNetworkName(Guid group, String name)
VmStaticDAO
getAllByGroupAndNetworkName
in interface VmStaticDAO
group
- the groupname
- the namepublic List<String> getAllNamesPinnedToHost(Guid host)
VmStaticDAO
getAllNamesPinnedToHost
in interface VmStaticDAO
host
- The host's id.Copyright © 2012. All Rights Reserved.