public interface StorageDomainDAO extends DAO
StorageDomainDAO
defines a type for performing CRUD operations on instances of storage_domains
.Modifier and Type | Method and Description |
---|---|
void |
addImageGroupStorageDomainMap(image_group_storage_domain_map image_group_storage_domain_map) |
storage_domains |
get(Guid id)
Retrieves the storage domain with specified id.
|
List<storage_domains> |
getAll()
Retrieves all storage domains.
|
List<storage_domains> |
getAllByStoragePoolAndConnection(Guid storagePoolId,
String connection)
Retrieves all storage domains for the specified connection.
|
List<storage_domains> |
getAllForConnection(String connection)
Retrieves all storage domains for the specified connection.
|
List<storage_domains> |
getAllForImageGroup(NGuid imageGroup)
Retrieves all storage domains for the specified image group.
|
List<storage_domains> |
getAllForStorageDomain(Guid id)
Retrieves all storage domains for the specified storage domain id.
|
List<storage_domains> |
getAllForStoragePool(Guid pool)
Retrieves all storage domains for the specified storage pool.
|
List<image_group_storage_domain_map> |
getAllImageGroupStorageDomainMapsForImage(Guid image_group_id) |
List<image_group_storage_domain_map> |
getAllImageGroupStorageDomainMapsForStorageDomain(Guid storage_domain_id) |
List<Guid> |
getAllStorageDomainsByImageGroup(Guid imageGroupId)
Retrieves all domain which contains any image from provided group
|
List<storage_domains> |
getAllWithQuery(String query)
Retrieves all domains that fulfill the supplied query.
|
storage_domains |
getForStoragePool(Guid id,
NGuid storagepool)
Retrieves the storage domain for the given pool with the specified id.
|
image_group_storage_domain_map |
getImageGroupStorageDomainMapForImageGroupAndStorageDomain(image_group_storage_domain_map image_group_storage_domain_map) |
Guid |
getMasterStorageDomainIdForPool(Guid pool)
Retrieves the master storage domain for the specified pool.
|
void |
remove(Guid id)
Removes the specified storage domain.
|
void |
removeImageGroupStorageDomainMap(image_group_storage_domain_map image_group_storage_domain_map) |
Guid getMasterStorageDomainIdForPool(Guid pool)
pool
- the storage poolstorage_domains get(Guid id)
id
- the storage domain idstorage_domains getForStoragePool(Guid id, NGuid storagepool)
id
- the storage domain idstoragepool
- the storage poolList<storage_domains> getAllForConnection(String connection)
connection
- The connectionList<storage_domains> getAllForStoragePool(Guid pool)
pool
- the storage poolList<storage_domains> getAllForImageGroup(NGuid imageGroup)
imageGroup
- the image groupList<storage_domains> getAllForStorageDomain(Guid id)
id
- the storage domain idList<storage_domains> getAllWithQuery(String query)
query
- the SQL queryList<storage_domains> getAll()
List<Guid> getAllStorageDomainsByImageGroup(Guid imageGroupId)
imageGroupId
- void remove(Guid id)
id
- the storage domainimage_group_storage_domain_map getImageGroupStorageDomainMapForImageGroupAndStorageDomain(image_group_storage_domain_map image_group_storage_domain_map)
void addImageGroupStorageDomainMap(image_group_storage_domain_map image_group_storage_domain_map)
void removeImageGroupStorageDomainMap(image_group_storage_domain_map image_group_storage_domain_map)
List<image_group_storage_domain_map> getAllImageGroupStorageDomainMapsForStorageDomain(Guid storage_domain_id)
List<image_group_storage_domain_map> getAllImageGroupStorageDomainMapsForImage(Guid image_group_id)
List<storage_domains> getAllByStoragePoolAndConnection(Guid storagePoolId, String connection)
storagePoolId
- The storage pool idconnection
- The connectionCopyright © 2012. All Rights Reserved.