public class VmDynamicDAODbFacadeImpl extends MassOperationsGenericDaoDbFacade<VmDynamic,Guid> implements VmDynamicDAO
dbFacade, dialect, jdbcTemplate, RETURN_VALUE_PARAMETER
Constructor and Description |
---|
VmDynamicDAODbFacadeImpl() |
Modifier and Type | Method and Description |
---|---|
protected org.springframework.jdbc.core.simple.ParameterizedRowMapper<VmDynamic> |
createEntityRowMapper()
Create a row mapper to map results to the entity.
|
protected org.springframework.jdbc.core.namedparam.MapSqlParameterSource |
createFullParametersMapper(VmDynamic vm)
Create a parameter mapper to map all entity fields to procedure parameters.
|
protected org.springframework.jdbc.core.namedparam.MapSqlParameterSource |
createIdParameterMapper(Guid id)
Create a parameter mapper to map the entity id to the id in the procedure parameters.
|
List<VmDynamic> |
getAllRunningForVds(Guid id)
Retrieves all running dynamic VMs for the given VDS instance.
|
protected String |
getProcedureNameForGet() |
protected String |
getProcedureNameForGetAll() |
protected String |
getProcedureNameForRemove() |
protected String |
getProcedureNameForSave() |
protected String |
getProcedureNameForUpdate() |
void |
updateStatus(Guid vmGuid,
VMStatus status)
Update the entity's status field only.
|
updateAll
createQueryCall, get, getAll, modify, remove, save, update, update
getCallsHandler, getCustomMapSqlParameterSource, setDbFacade, setDialect, setTemplate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
get, remove, save, update
updateAll
public List<VmDynamic> getAllRunningForVds(Guid id)
VmDynamicDAO
getAllRunningForVds
in interface VmDynamicDAO
id
- the VDS idpublic void updateStatus(Guid vmGuid, VMStatus status)
StatusAwareDao
updateStatus
in interface StatusAwareDao<Guid,VMStatus>
vmGuid
- The id of the entity for which to update the status field.status
- The status to update to.protected String getProcedureNameForUpdate()
getProcedureNameForUpdate
in class DefaultGenericDaoDbFacade<VmDynamic,Guid>
protected String getProcedureNameForGet()
getProcedureNameForGet
in class DefaultGenericDaoDbFacade<VmDynamic,Guid>
protected String getProcedureNameForGetAll()
getProcedureNameForGetAll
in class DefaultGenericDaoDbFacade<VmDynamic,Guid>
protected String getProcedureNameForSave()
getProcedureNameForSave
in class DefaultGenericDaoDbFacade<VmDynamic,Guid>
protected String getProcedureNameForRemove()
getProcedureNameForRemove
in class DefaultGenericDaoDbFacade<VmDynamic,Guid>
protected org.springframework.jdbc.core.namedparam.MapSqlParameterSource createIdParameterMapper(Guid id)
DefaultGenericDaoDbFacade
createIdParameterMapper
in class DefaultGenericDaoDbFacade<VmDynamic,Guid>
id
- The entity to map id for.protected org.springframework.jdbc.core.namedparam.MapSqlParameterSource createFullParametersMapper(VmDynamic vm)
DefaultGenericDaoDbFacade
createFullParametersMapper
in class DefaultGenericDaoDbFacade<VmDynamic,Guid>
vm
- The entity to map parameters for.protected org.springframework.jdbc.core.simple.ParameterizedRowMapper<VmDynamic> createEntityRowMapper()
DefaultGenericDaoDbFacade
createEntityRowMapper
in class DefaultGenericDaoDbFacade<VmDynamic,Guid>
Copyright © 2012. All Rights Reserved.