public interface DiskImageDAO extends GenericDao<DiskImage,Guid>
DiskImageDAO
defines a type for performing CRUD operations on instances of DiskImage
.Modifier and Type | Method and Description |
---|---|
void |
addImageVmPoolMap(image_vm_pool_map map) |
void |
addStatelessVmImageMap(stateless_vm_image_map map) |
List<DiskImage> |
getAllForVm(Guid id)
Retrieves all disk images for the specified virtual machine id.
|
List<DiskImage> |
getAllSnapshotsForImageGroup(Guid id)
Retrieves all snapshots associated with the given image group.
|
List<DiskImage> |
getAllSnapshotsForParent(Guid id)
Retrieves all snapshots with the given parent id.
|
List<DiskImage> |
getAllSnapshotsForStorageDomain(Guid id)
Retrieves all snapshots associated with the given storage domain.
|
List<DiskImage> |
getAllSnapshotsForVmSnapshot(Guid id)
Retrieves all snapshots associated with given snapshot id.
|
List<stateless_vm_image_map> |
getAllStatelessVmImageMapsForVm(Guid vmId) |
DiskImage |
getAncestor(Guid id)
Retrieves the ancestor of the given image (or the image itself, if it has no ancestors).
|
image_vm_pool_map |
getImageVmPoolMapByImageId(Guid imageId) |
List<image_vm_pool_map> |
getImageVmPoolMapByVmId(Guid vmId) |
DiskImage |
getSnapshotById(Guid id)
Retrieves the snapshot with the specified id.
|
stateless_vm_image_map |
getStatelessVmImageMapForImageId(Guid imageId) |
void |
removeAllForVmId(Guid id)
Removes all disk images for the specified virtual machine id.
|
void |
removeImageVmPoolMap(Guid imageId) |
void |
removeStatelessVmImageMap(Guid imageId) |
remove, save, update
DiskImage getSnapshotById(Guid id)
id
- the idList<DiskImage> getAllForVm(Guid id)
id
- the VM idList<DiskImage> getAllSnapshotsForParent(Guid id)
id
- the parent idList<DiskImage> getAllSnapshotsForStorageDomain(Guid id)
id
- the storage domain idList<DiskImage> getAllSnapshotsForVmSnapshot(Guid id)
id
- the snapshot idList<DiskImage> getAllSnapshotsForImageGroup(Guid id)
id
- the image group idvoid removeAllForVmId(Guid id)
id
- the virtual machine idDiskImage getAncestor(Guid id)
id
- The id of the image to get the ancestor for.image_vm_pool_map getImageVmPoolMapByImageId(Guid imageId)
void addImageVmPoolMap(image_vm_pool_map map)
void removeImageVmPoolMap(Guid imageId)
List<image_vm_pool_map> getImageVmPoolMapByVmId(Guid vmId)
stateless_vm_image_map getStatelessVmImageMapForImageId(Guid imageId)
void addStatelessVmImageMap(stateless_vm_image_map map)
void removeStatelessVmImageMap(Guid imageId)
List<stateless_vm_image_map> getAllStatelessVmImageMapsForVm(Guid vmId)
Copyright © 2012. All Rights Reserved.