public class VdsDAODbFacadeImpl extends BaseDAODbFacade implements VdsDAO
VdsDAODbFacadeImpl
provides an implementation of VdsDAO
that uses previously written code from
DbFacade
.dbFacade, dialect, jdbcTemplate, RETURN_VALUE_PARAMETER
Constructor and Description |
---|
VdsDAODbFacadeImpl() |
Modifier and Type | Method and Description |
---|---|
VDS |
get(NGuid id)
Retrieves the instance with the given id.
|
List<VDS> |
getAll()
Retrieves all VDS instances.
|
List<VDS> |
getAllForHostname(String hostname)
Finds all instances for the given host.
|
List<VDS> |
getAllForVdsGroup(Guid vdsGroupID)
Retrieves all VDS instances by vds group id (cluster ID)
|
List<VDS> |
getAllForVdsGroupWithoutMigrating(Guid id)
Retrieves all instances by group id.
|
List<VDS> |
getAllOfType(VDSType type)
Retrieves all instances for the specified type.
|
List<VDS> |
getAllOfTypes(VDSType[] types)
Retrieves all instances for the given list of types.
|
List<VDS> |
getAllWithIpAddress(String address)
Retrieves all instances with the given address.
|
List<VDS> |
getAllWithName(String name)
Finds all instances with the given name.
|
List<VDS> |
getAllWithQuery(String query)
Retrieves all instances using the supplied SQL query.
|
List<VDS> |
getAllWithUniqueId(String id)
Retrieves all instances with the given unique id.
|
List<VDS> |
getListForSpmSelection(Guid storagePoolId)
Retrieves all VDS instances in the given Storage Pool, that are in status "UP"
ordered by their vds_spm_priority, not including -1
|
getCallsHandler, getCustomMapSqlParameterSource, setDbFacade, setDialect, setTemplate
public VDS get(NGuid id)
VdsDAO
public List<VDS> getAllWithName(String name)
VdsDAO
getAllWithName
in interface VdsDAO
name
- the namepublic List<VDS> getAllForHostname(String hostname)
VdsDAO
getAllForHostname
in interface VdsDAO
hostname
- the hostnamepublic List<VDS> getAllWithIpAddress(String address)
VdsDAO
getAllWithIpAddress
in interface VdsDAO
address
- the addresspublic List<VDS> getAllWithUniqueId(String id)
VdsDAO
getAllWithUniqueId
in interface VdsDAO
id
- the unique idpublic List<VDS> getAllOfTypes(VDSType[] types)
VdsDAO
getAllOfTypes
in interface VdsDAO
types
- the type filterpublic List<VDS> getAllOfType(VDSType type)
VdsDAO
getAllOfType
in interface VdsDAO
type
- the typepublic List<VDS> getAllForVdsGroupWithoutMigrating(Guid id)
VdsDAO
getAllForVdsGroupWithoutMigrating
in interface VdsDAO
id
- the group idpublic List<VDS> getAllWithQuery(String query)
VdsDAO
getAllWithQuery
in interface VdsDAO
query
- the querypublic List<VDS> getAll()
VdsDAO
public List<VDS> getAllForVdsGroup(Guid vdsGroupID)
VdsDAO
getAllForVdsGroup
in interface VdsDAO
public List<VDS> getListForSpmSelection(Guid storagePoolId)
VdsDAO
getListForSpmSelection
in interface VdsDAO
Copyright © 2012. All Rights Reserved.