public class DiskImageDAODbFacadeImpl extends BaseDAODbFacade implements DiskImageDAO
DiskImageDAODbFacadeImpl provides an implementation of DiskImageDAO that uses previously
developed code from DbFacade.dbFacade, dialect, jdbcTemplate, RETURN_VALUE_PARAMETER| Constructor and Description |
|---|
DiskImageDAODbFacadeImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addImageVmPoolMap(image_vm_pool_map map) |
void |
addStatelessVmImageMap(stateless_vm_image_map map) |
DiskImage |
get(Guid id)
Retrieves the entity with the given id.
|
List<DiskImage> |
getAll()
Retrieves all the entities of type
T. |
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 |
remove(Guid id)
Removes the entity with the given id from the underlying store of data.
|
void |
removeAllForVmId(Guid id)
Removes all disk images for the specified virtual machine id.
|
void |
removeImageVmPoolMap(Guid imageId) |
void |
removeStatelessVmImageMap(Guid imageId) |
void |
save(DiskImage image)
Persist a new instance of the entity.
|
void |
update(DiskImage image)
Update an existing entity with data from the given instance.
|
getCallsHandler, getCustomMapSqlParameterSource, setDbFacade, setDialect, setTemplatepublic DiskImage get(Guid id)
ReadDaopublic DiskImage getSnapshotById(Guid id)
DiskImageDAOgetSnapshotById in interface DiskImageDAOid - the idpublic List<DiskImage> getAllForVm(Guid id)
DiskImageDAOgetAllForVm in interface DiskImageDAOid - the VM idpublic List<DiskImage> getAllSnapshotsForParent(Guid id)
DiskImageDAOgetAllSnapshotsForParent in interface DiskImageDAOid - the parent idpublic List<DiskImage> getAllSnapshotsForStorageDomain(Guid id)
DiskImageDAOgetAllSnapshotsForStorageDomain in interface DiskImageDAOid - the storage domain idpublic List<DiskImage> getAllSnapshotsForVmSnapshot(Guid id)
DiskImageDAOgetAllSnapshotsForVmSnapshot in interface DiskImageDAOid - the snapshot idpublic List<DiskImage> getAllSnapshotsForImageGroup(Guid id)
DiskImageDAOgetAllSnapshotsForImageGroup in interface DiskImageDAOid - the image group idpublic List<DiskImage> getAll()
ReadDaoT.public void save(DiskImage image)
ModificationDaosave in interface ModificationDao<DiskImage,Guid>image - The entity to persist (can't be null).public void update(DiskImage image)
ModificationDaoupdate in interface ModificationDao<DiskImage,Guid>image - The entity instance, containing data to update (can't be null).public void remove(Guid id)
ModificationDaoremove in interface ModificationDao<DiskImage,Guid>id - The id of the entity to remove (can't be null).public void removeAllForVmId(Guid id)
DiskImageDAOremoveAllForVmId in interface DiskImageDAOid - the virtual machine idpublic image_vm_pool_map getImageVmPoolMapByImageId(Guid imageId)
getImageVmPoolMapByImageId in interface DiskImageDAOpublic void addImageVmPoolMap(image_vm_pool_map map)
addImageVmPoolMap in interface DiskImageDAOpublic void removeImageVmPoolMap(Guid imageId)
removeImageVmPoolMap in interface DiskImageDAOpublic List<image_vm_pool_map> getImageVmPoolMapByVmId(Guid vmId)
getImageVmPoolMapByVmId in interface DiskImageDAOpublic stateless_vm_image_map getStatelessVmImageMapForImageId(Guid imageId)
getStatelessVmImageMapForImageId in interface DiskImageDAOpublic void addStatelessVmImageMap(stateless_vm_image_map map)
addStatelessVmImageMap in interface DiskImageDAOpublic void removeStatelessVmImageMap(Guid imageId)
removeStatelessVmImageMap in interface DiskImageDAOpublic List<stateless_vm_image_map> getAllStatelessVmImageMapsForVm(Guid vmId)
getAllStatelessVmImageMapsForVm in interface DiskImageDAOpublic DiskImage getAncestor(Guid id)
DiskImageDAOgetAncestor in interface DiskImageDAOid - The id of the image to get the ancestor for.Copyright © 2012. All Rights Reserved.