public interface VmPoolDAO extends DAO
VmPoolDAO
defines a type that performs CRUD operations on instances of vm_pool
.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 adGroup)
Gets all VM pools for the specified AD group.
|
List<vm_pools> |
getAllForUser(Guid user)
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 vmPool)
Removes the VM pool with the specified id.
|
void |
removeTimeLeasedVmPoolMap(Guid id,
Guid vmPoolId) |
void |
removeVmFromVmPool(Guid vm)
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) |
void removeVmFromVmPool(Guid vm)
vm
- the VM idvm_pools get(NGuid id)
id
- the pool idvm_pools getByName(String name)
name
- the pool nameList<vm_pools> getAllForUser(Guid user)
user
- the user idList<vm_pools> getAllForAdGroup(Guid adGroup)
adGroup
- the AD groupList<vm_pools> getAllWithQuery(String query)
query
- the SQL queryvoid save(vm_pools pool)
pool
- the VM poolvoid update(vm_pools pool)
pool
- the VM poolvoid remove(NGuid vmPool)
vmPool
- the pool idvm_pool_map getVmPoolMapByVmGuid(Guid vmId)
void addVmToPool(vm_pool_map map)
List<vm_pool_map> getVmPoolsMapByVmPoolId(NGuid vmPoolId)
time_lease_vm_pool_map getTimeLeasedVmPoolMapByIdForVmPool(Guid id, NGuid vmPoolId)
void addTimeLeasedVmPoolMap(time_lease_vm_pool_map map)
void updateTimeLeasedVmPoolMap(time_lease_vm_pool_map map)
List<time_lease_vm_pool_map> getAllTimeLeasedVmPoolMaps()
Copyright © 2012. All Rights Reserved.