public class VmDAODbFacadeImpl extends BaseDAODbFacade implements VmDAO
dbFacade, dialect, jdbcTemplate, RETURN_VALUE_PARAMETER
Constructor and Description |
---|
VmDAODbFacadeImpl() |
Modifier and Type | Method and Description |
---|---|
VM |
get(Guid id)
Returns the VM with the specified id.
|
List<VM> |
getAll()
Retrieves the list of all VMS.
|
List<VM> |
getAllForAdGroupByName(String name)
Retrieves all VMs for the specified ad group name.
|
List<VM> |
getAllForDedicatedPowerClientByVds(Guid id)
Finds those VMs associated with a specific power client by VDS.
|
List<VM> |
getAllForStorageDomain(Guid id)
Retrieves the list of VMs for the given storage domain.
|
List<VM> |
getAllForUser(Guid id)
Finds all VMs for the specified user.
|
List<VM> |
getAllForUserWithGroupsAndUserRoles(Guid id)
Retrieves the list of VMS for the given user.
|
Map<Guid,VM> |
getAllRunningByVds(Guid id)
Returns the list of virtual machines running on the specified VDS instance.
|
List<VM> |
getAllRunningForStorageDomain(Guid id)
Retrieves all running VMs for the given storage domain.
|
List<VM> |
getAllRunningForVds(Guid id)
Gets the list of virtual machines running on the specified VFDS instance.
|
List<VM> |
getAllUsingQuery(String query)
Finds the list of VMs using the supplied query.
|
List<VM> |
getAllWithTemplate(Guid id)
Retrieves all virtual machines associated with the given template.
|
VM |
getById(Guid id)
Retrieves the VM with the specified id.
|
VM |
getForHibernationImage(Guid id)
Retrieves the VM for the specified hibernate image.
|
VM |
getForImage(Guid id)
Retrieves the VM with the specified image id.
|
VM |
getForImageGroup(Guid id)
Retrieves the VM for the specified image group.
|
void |
remove(Guid id)
Removes the VM with the specified id.
|
void |
save(VM vm)
Saves the supplied VM.
|
getCallsHandler, getCustomMapSqlParameterSource, setDbFacade, setDialect, setTemplate
public VM get(Guid id)
VmDAO
public VM getById(Guid id)
VmDAO
public VM getForHibernationImage(Guid id)
VmDAO
getForHibernationImage
in interface VmDAO
id
- the hibernation imagepublic VM getForImage(Guid id)
VmDAO
getForImage
in interface VmDAO
id
- the image idpublic VM getForImageGroup(Guid id)
VmDAO
getForImageGroup
in interface VmDAO
id
- the image group idpublic List<VM> getAllForUser(Guid id)
VmDAO
getAllForUser
in interface VmDAO
id
- ' the user idpublic List<VM> getAllForUserWithGroupsAndUserRoles(Guid id)
VmDAO
getAllForUserWithGroupsAndUserRoles
in interface VmDAO
id
- the user idpublic List<VM> getAllForAdGroupByName(String name)
VmDAO
getAllForAdGroupByName
in interface VmDAO
name
- the ad group namepublic List<VM> getAllWithTemplate(Guid id)
VmDAO
getAllWithTemplate
in interface VmDAO
id
- the template idpublic List<VM> getAllRunningForVds(Guid id)
VmDAO
getAllRunningForVds
in interface VmDAO
id
- the VDS idpublic List<VM> getAllForDedicatedPowerClientByVds(Guid id)
VmDAO
getAllForDedicatedPowerClientByVds
in interface VmDAO
id
- the VDS idpublic Map<Guid,VM> getAllRunningByVds(Guid id)
VmDAO
getAllRunningByVds
in interface VmDAO
id
- the VDS idpublic List<VM> getAllUsingQuery(String query)
VmDAO
getAllUsingQuery
in interface VmDAO
query
- the SQL querypublic List<VM> getAllForStorageDomain(Guid id)
VmDAO
getAllForStorageDomain
in interface VmDAO
id
- the storage domain idpublic List<VM> getAllRunningForStorageDomain(Guid id)
VmDAO
getAllRunningForStorageDomain
in interface VmDAO
id
- the storage domainpublic List<VM> getAll()
VmDAO
Copyright © 2012. All Rights Reserved.