public class StoragePoolDAODbFacadeImpl extends BaseDAODbFacade implements StoragePoolDAO
StoragePoolDAODbFacadeImpl provides a concrete implementation of StoragePoolDAO based on code
from DbFacade.dbFacade, dialect, jdbcTemplate, RETURN_VALUE_PARAMETER| Constructor and Description |
|---|
StoragePoolDAODbFacadeImpl() |
| Modifier and Type | Method and Description |
|---|---|
storage_pool |
get(Guid id)
Retrieves the entity with the given id.
|
List<storage_pool> |
getAll()
Retrieves all the entities of type
T. |
List<storage_pool> |
getAllForStorageDomain(Guid id)
Retrieves all storage pools for the given storage domain.
|
List<storage_pool> |
getAllOfType(StorageType type)
Retrieves the list of all storage pools of a given type.
|
List<storage_pool> |
getAllWithQuery(String query)
Retrieves all storage pools that satisfy the given SQL query.
|
storage_pool |
getByName(String name)
Retrieves the storage pool with the given name.
|
List<storage_pool> |
getDataCentersWithPermittedActionOnClusters(Guid userId,
ActionGroup actionGroup)
Retrieves data centers containing clusters with permissions to perform the given action.
|
storage_pool |
getForVds(Guid vds)
Retrieves the storage pool for the specified VDS.
|
storage_pool |
getForVdsGroup(Guid id)
Retrieves the storage pool for the specified VDS group.
|
void |
remove(Guid id)
Removes the entity with the given id from the underlying store of data.
|
void |
save(storage_pool pool)
Persist a new instance of the entity.
|
void |
update(storage_pool pool)
Update an existing entity with data from the given instance.
|
void |
updatePartial(storage_pool pool)
The following method should update only part of storage pool.
|
void |
updateStatus(Guid id,
StoragePoolStatus status)
Update the entity's status field only.
|
getCallsHandler, getCustomMapSqlParameterSource, setDbFacade, setDialect, setTemplatepublic storage_pool get(Guid id)
ReadDaoget in interface ReadDao<storage_pool,Guid>id - The id to look by (can't be null).null if not found.public storage_pool getByName(String name)
StoragePoolDAOgetByName in interface StoragePoolDAOname - the storage pool namepublic storage_pool getForVds(Guid vds)
StoragePoolDAOgetForVds in interface StoragePoolDAOvds - the VDSpublic storage_pool getForVdsGroup(Guid id)
StoragePoolDAOgetForVdsGroup in interface StoragePoolDAOid - the VDS grouppublic List<storage_pool> getAll()
ReadDaoT.getAll in interface ReadDao<storage_pool,Guid>public List<storage_pool> getAllOfType(StorageType type)
StoragePoolDAOgetAllOfType in interface StoragePoolDAOtype - the storage pool typepublic List<storage_pool> getAllForStorageDomain(Guid id)
StoragePoolDAOgetAllForStorageDomain in interface StoragePoolDAOid - the storage domainpublic List<storage_pool> getAllWithQuery(String query)
StoragePoolDAOgetAllWithQuery in interface StoragePoolDAOquery - the querypublic void save(storage_pool pool)
ModificationDaosave in interface ModificationDao<storage_pool,Guid>pool - The entity to persist (can't be null).public void update(storage_pool pool)
ModificationDaoupdate in interface ModificationDao<storage_pool,Guid>pool - The entity instance, containing data to update (can't be null).public void updatePartial(storage_pool pool)
StoragePoolDAOupdatePartial in interface StoragePoolDAOpublic void updateStatus(Guid id, StoragePoolStatus status)
StatusAwareDaoupdateStatus in interface StatusAwareDao<Guid,StoragePoolStatus>id - The id of the entity for which to update the status field.status - The status to update to.public void remove(Guid id)
ModificationDaoremove in interface ModificationDao<storage_pool,Guid>id - The id of the entity to remove (can't be null).public List<storage_pool> getDataCentersWithPermittedActionOnClusters(Guid userId, ActionGroup actionGroup)
StoragePoolDAOgetDataCentersWithPermittedActionOnClusters in interface StoragePoolDAOCopyright © 2012. All Rights Reserved.