public class StorageDomainDAODbFacadeImpl extends BaseDAODbFacade implements StorageDomainDAO
StorageDomainDAODbFacadeImpl
provides an implementation of StorageDomainDAO
based on code from
DbFacade
.dbFacade, dialect, jdbcTemplate, RETURN_VALUE_PARAMETER
Constructor and Description |
---|
StorageDomainDAODbFacadeImpl() |
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 group)
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) |
getCallsHandler, getCustomMapSqlParameterSource, setDbFacade, setDialect, setTemplate
public Guid getMasterStorageDomainIdForPool(Guid pool)
StorageDomainDAO
getMasterStorageDomainIdForPool
in interface StorageDomainDAO
pool
- the storage poolpublic storage_domains get(Guid id)
StorageDomainDAO
get
in interface StorageDomainDAO
id
- the storage domain idpublic storage_domains getForStoragePool(Guid id, NGuid storagepool)
StorageDomainDAO
getForStoragePool
in interface StorageDomainDAO
id
- the storage domain idstoragepool
- the storage poolpublic List<storage_domains> getAllForConnection(String connection)
StorageDomainDAO
getAllForConnection
in interface StorageDomainDAO
connection
- The connectionpublic List<storage_domains> getAllForStoragePool(Guid pool)
StorageDomainDAO
getAllForStoragePool
in interface StorageDomainDAO
pool
- the storage poolpublic List<storage_domains> getAllForImageGroup(NGuid group)
StorageDomainDAO
getAllForImageGroup
in interface StorageDomainDAO
group
- the image grouppublic List<storage_domains> getAllForStorageDomain(Guid id)
StorageDomainDAO
getAllForStorageDomain
in interface StorageDomainDAO
id
- the storage domain idpublic List<storage_domains> getAllWithQuery(String query)
StorageDomainDAO
getAllWithQuery
in interface StorageDomainDAO
query
- the SQL querypublic List<storage_domains> getAll()
StorageDomainDAO
getAll
in interface StorageDomainDAO
public List<Guid> getAllStorageDomainsByImageGroup(Guid imageGroupId)
StorageDomainDAO
getAllStorageDomainsByImageGroup
in interface StorageDomainDAO
public void remove(Guid id)
StorageDomainDAO
remove
in interface StorageDomainDAO
id
- the storage domainpublic image_group_storage_domain_map getImageGroupStorageDomainMapForImageGroupAndStorageDomain(image_group_storage_domain_map image_group_storage_domain_map)
getImageGroupStorageDomainMapForImageGroupAndStorageDomain
in interface StorageDomainDAO
public void addImageGroupStorageDomainMap(image_group_storage_domain_map image_group_storage_domain_map)
addImageGroupStorageDomainMap
in interface StorageDomainDAO
public void removeImageGroupStorageDomainMap(image_group_storage_domain_map image_group_storage_domain_map)
removeImageGroupStorageDomainMap
in interface StorageDomainDAO
public List<image_group_storage_domain_map> getAllImageGroupStorageDomainMapsForStorageDomain(Guid storage_domain_id)
getAllImageGroupStorageDomainMapsForStorageDomain
in interface StorageDomainDAO
public List<image_group_storage_domain_map> getAllImageGroupStorageDomainMapsForImage(Guid image_group_id)
getAllImageGroupStorageDomainMapsForImage
in interface StorageDomainDAO
public List<storage_domains> getAllByStoragePoolAndConnection(Guid storagePoolId, String connection)
StorageDomainDAO
getAllByStoragePoolAndConnection
in interface StorageDomainDAO
storagePoolId
- The storage pool idconnection
- The connectionCopyright © 2012. All Rights Reserved.