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.
|
updateAllcreateQueryCall, get, getAll, modify, remove, save, update, updategetCallsHandler, getCustomMapSqlParameterSource, setDbFacade, setDialect, setTemplateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitget, remove, save, updateupdateAllpublic List<VmDynamic> getAllRunningForVds(Guid id)
VmDynamicDAOgetAllRunningForVds in interface VmDynamicDAOid - the VDS idpublic void updateStatus(Guid vmGuid, VMStatus status)
StatusAwareDaoupdateStatus 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)
DefaultGenericDaoDbFacadecreateIdParameterMapper in class DefaultGenericDaoDbFacade<VmDynamic,Guid>id - The entity to map id for.protected org.springframework.jdbc.core.namedparam.MapSqlParameterSource createFullParametersMapper(VmDynamic vm)
DefaultGenericDaoDbFacadecreateFullParametersMapper in class DefaultGenericDaoDbFacade<VmDynamic,Guid>vm - The entity to map parameters for.protected org.springframework.jdbc.core.simple.ParameterizedRowMapper<VmDynamic> createEntityRowMapper()
DefaultGenericDaoDbFacadecreateEntityRowMapper in class DefaultGenericDaoDbFacade<VmDynamic,Guid>Copyright © 2012. All Rights Reserved.