public class StorageDomainStaticDAODbFacadeImpl extends BaseDAODbFacade implements StorageDomainStaticDAO
dbFacade, dialect, jdbcTemplate, RETURN_VALUE_PARAMETER
Constructor and Description |
---|
StorageDomainStaticDAODbFacadeImpl() |
Modifier and Type | Method and Description |
---|---|
storage_domain_static |
get(Guid id)
Retrieves the entity with the given id.
|
List<storage_domain_static> |
getAll()
Retrieves all the entities of type
T . |
List<storage_domain_static> |
getAllForStoragePool(Guid id)
Retrieves all storage domains for the given storage pool.
|
List<storage_domain_static> |
getAllForStoragePoolOfStorageType(StorageType type,
Guid pool)
Retrieves all domains of the specified type for the specified pool.
|
List<Guid> |
getAllIds(Guid pool,
StorageDomainStatus status)
Return all the domains of the given status which belong to the given pool.
|
List<storage_domain_static> |
getAllOfStorageType(StorageType type)
Retrieves all domains for the given type.
|
storage_domain_static |
getByName(String name)
Retrieves the instance with the specified name.
|
void |
remove(Guid id)
Removes the entity with the given id from the underlying store of data.
|
void |
save(storage_domain_static domain)
Persist a new instance of the entity.
|
void |
update(storage_domain_static domain)
Update an existing entity with data from the given instance.
|
getCallsHandler, getCustomMapSqlParameterSource, setDbFacade, setDialect, setTemplate
public storage_domain_static get(Guid id)
ReadDao
get
in interface ReadDao<storage_domain_static,Guid>
id
- The id to look by (can't be null
).null
if not found.public storage_domain_static getByName(String name)
StorageDomainStaticDAO
getByName
in interface StorageDomainStaticDAO
name
- the domain namepublic List<storage_domain_static> getAllOfStorageType(StorageType type)
StorageDomainStaticDAO
getAllOfStorageType
in interface StorageDomainStaticDAO
type
- the domain typepublic List<storage_domain_static> getAllForStoragePoolOfStorageType(StorageType type, Guid pool)
StorageDomainStaticDAO
getAllForStoragePoolOfStorageType
in interface StorageDomainStaticDAO
type
- the domain typepool
- the storage poolpublic List<storage_domain_static> getAllForStoragePool(Guid id)
StorageDomainStaticDAO
getAllForStoragePool
in interface StorageDomainStaticDAO
id
- the poolpublic void save(storage_domain_static domain)
ModificationDao
save
in interface ModificationDao<storage_domain_static,Guid>
domain
- The entity to persist (can't be null
).public void update(storage_domain_static domain)
ModificationDao
update
in interface ModificationDao<storage_domain_static,Guid>
domain
- The entity instance, containing data to update (can't be null
).public void remove(Guid id)
ModificationDao
remove
in interface ModificationDao<storage_domain_static,Guid>
id
- The id of the entity to remove (can't be null
).public List<storage_domain_static> getAll()
ReadDao
T
.getAll
in interface ReadDao<storage_domain_static,Guid>
public List<Guid> getAllIds(Guid pool, StorageDomainStatus status)
StorageDomainStaticDAO
getAllIds
in interface StorageDomainStaticDAO
pool
- The pool id.status
- The desired status.Copyright © 2012. All Rights Reserved.