public class DiskDaoDbFacadeImpl extends DefaultGenericDaoDbFacade<Disk,Guid> implements DiskDao
dbFacade, dialect, jdbcTemplate, RETURN_VALUE_PARAMETER
Constructor and Description |
---|
DiskDaoDbFacadeImpl() |
Modifier and Type | Method and Description |
---|---|
protected org.springframework.jdbc.core.simple.ParameterizedRowMapper<Disk> |
createEntityRowMapper()
Create a row mapper to map results to the entity.
|
protected org.springframework.jdbc.core.namedparam.MapSqlParameterSource |
createFullParametersMapper(Disk entity)
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.
|
boolean |
exists(Guid id)
Check if the
Disk with the given id exists or not. |
protected String |
getProcedureNameForGet() |
protected String |
getProcedureNameForGetAll() |
protected String |
getProcedureNameForRemove() |
protected String |
getProcedureNameForSave() |
protected String |
getProcedureNameForUpdate() |
createQueryCall, get, getAll, modify, remove, save, update, update
getCallsHandler, getCustomMapSqlParameterSource, setDbFacade, setDialect, setTemplate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
remove, save, update
protected String getProcedureNameForUpdate()
getProcedureNameForUpdate
in class DefaultGenericDaoDbFacade<Disk,Guid>
protected String getProcedureNameForGet()
getProcedureNameForGet
in class DefaultGenericDaoDbFacade<Disk,Guid>
protected String getProcedureNameForGetAll()
getProcedureNameForGetAll
in class DefaultGenericDaoDbFacade<Disk,Guid>
protected String getProcedureNameForSave()
getProcedureNameForSave
in class DefaultGenericDaoDbFacade<Disk,Guid>
protected String getProcedureNameForRemove()
getProcedureNameForRemove
in class DefaultGenericDaoDbFacade<Disk,Guid>
protected org.springframework.jdbc.core.namedparam.MapSqlParameterSource createIdParameterMapper(Guid id)
DefaultGenericDaoDbFacade
createIdParameterMapper
in class DefaultGenericDaoDbFacade<Disk,Guid>
id
- The entity to map id for.protected org.springframework.jdbc.core.namedparam.MapSqlParameterSource createFullParametersMapper(Disk entity)
DefaultGenericDaoDbFacade
createFullParametersMapper
in class DefaultGenericDaoDbFacade<Disk,Guid>
entity
- The entity to map parameters for.protected org.springframework.jdbc.core.simple.ParameterizedRowMapper<Disk> createEntityRowMapper()
DefaultGenericDaoDbFacade
createEntityRowMapper
in class DefaultGenericDaoDbFacade<Disk,Guid>
Copyright © 2012. All Rights Reserved.