public class VmPoolDAODbFacadeImpl extends BaseDAODbFacade implements VmPoolDAO
VmPoolDAODbFacadeImpl
provides an implementation of VmPoolDAO
based on implementation code from
DbFacade
.dbFacade, dialect, jdbcTemplate, RETURN_VALUE_PARAMETER
Constructor and Description |
---|
VmPoolDAODbFacadeImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addTimeLeasedVmPoolMap(time_lease_vm_pool_map map) |
void |
addVmToPool(vm_pool_map map) |
vm_pools |
get(NGuid id)
Retrieves the VM pool with the specified ID.
|
List<vm_pools> |
getAll()
Gets all defined VM pools.
|
List<vm_pools> |
getAllForAdGroup(Guid id)
Gets all VM pools for the specified AD group.
|
List<vm_pools> |
getAllForUser(Guid id)
Gets all pools for the specified user.
|
List<time_lease_vm_pool_map> |
getAllTimeLeasedVmPoolMaps() |
List<vm_pools> |
getAllWithQuery(String query)
Retrieves all VM pools which satisfy the supplied query.
|
vm_pools |
getByName(String name)
Retrieves the VM pool with the given name.
|
time_lease_vm_pool_map |
getTimeLeasedVmPoolMapByIdForVmPool(Guid id,
NGuid vmPoolId) |
vm_pool_map |
getVmPoolMapByVmGuid(Guid vmId) |
List<vm_pool_map> |
getVmPoolsMapByVmPoolId(NGuid vmPoolId) |
void |
remove(NGuid id)
Removes the VM pool with the specified id.
|
void |
removeTimeLeasedVmPoolMap(Guid id,
Guid vmPoolId) |
void |
removeVmFromVmPool(Guid id)
Removes the specified VM from the pool.
|
void |
save(vm_pools pool)
Saves the specified pool.
|
void |
update(vm_pools pool)
Updates the specified pool.
|
void |
updateTimeLeasedVmPoolMap(time_lease_vm_pool_map map) |
getCallsHandler, getCustomMapSqlParameterSource, setDbFacade, setDialect, setTemplate
public void removeVmFromVmPool(Guid id)
VmPoolDAO
removeVmFromVmPool
in interface VmPoolDAO
id
- the VM idpublic vm_pools get(NGuid id)
VmPoolDAO
public vm_pools getByName(String name)
VmPoolDAO
public List<vm_pools> getAll()
VmPoolDAO
public List<vm_pools> getAllForUser(Guid id)
VmPoolDAO
getAllForUser
in interface VmPoolDAO
id
- the user idpublic List<vm_pools> getAllForAdGroup(Guid id)
VmPoolDAO
getAllForAdGroup
in interface VmPoolDAO
id
- the AD grouppublic List<vm_pools> getAllWithQuery(String query)
VmPoolDAO
getAllWithQuery
in interface VmPoolDAO
query
- the SQL querypublic void save(vm_pools pool)
VmPoolDAO
public void update(vm_pools pool)
VmPoolDAO
public void remove(NGuid id)
VmPoolDAO
public vm_pool_map getVmPoolMapByVmGuid(Guid vmId)
getVmPoolMapByVmGuid
in interface VmPoolDAO
public void addVmToPool(vm_pool_map map)
addVmToPool
in interface VmPoolDAO
public List<vm_pool_map> getVmPoolsMapByVmPoolId(NGuid vmPoolId)
getVmPoolsMapByVmPoolId
in interface VmPoolDAO
public time_lease_vm_pool_map getTimeLeasedVmPoolMapByIdForVmPool(Guid id, NGuid vmPoolId)
getTimeLeasedVmPoolMapByIdForVmPool
in interface VmPoolDAO
public void addTimeLeasedVmPoolMap(time_lease_vm_pool_map map)
addTimeLeasedVmPoolMap
in interface VmPoolDAO
public void updateTimeLeasedVmPoolMap(time_lease_vm_pool_map map)
updateTimeLeasedVmPoolMap
in interface VmPoolDAO
public void removeTimeLeasedVmPoolMap(Guid id, Guid vmPoolId)
removeTimeLeasedVmPoolMap
in interface VmPoolDAO
public List<time_lease_vm_pool_map> getAllTimeLeasedVmPoolMaps()
getAllTimeLeasedVmPoolMaps
in interface VmPoolDAO
Copyright © 2012. All Rights Reserved.