T
- The type of entity.ID
- The type of the entity's id.public abstract class MassOperationsGenericDaoDbFacade<T extends BusinessEntity<ID>,ID extends Serializable> extends DefaultGenericDaoDbFacade<T,ID> implements MassOperationsDao<T>
MassOperationsDao
which provides a default
MassOperationsDao.updateAll(Collection)
method that uses the
DefaultGenericDaoDbFacade.update(SimpleJdbcCallOperations, BusinessEntity)
method in a more smart way,
reusing the SimpleJdbcCallOperations
.dbFacade, dialect, jdbcTemplate, RETURN_VALUE_PARAMETER
Constructor and Description |
---|
MassOperationsGenericDaoDbFacade() |
Modifier and Type | Method and Description |
---|---|
void |
updateAll(Collection<T> entities)
Updates the given entities using a more efficient method to update all of them at once, rather than each at a
time.
|
createEntityRowMapper, createFullParametersMapper, createIdParameterMapper, createQueryCall, get, getAll, getProcedureNameForGet, getProcedureNameForGetAll, getProcedureNameForRemove, getProcedureNameForSave, getProcedureNameForUpdate, modify, remove, save, update, update
getCallsHandler, getCustomMapSqlParameterSource, setDbFacade, setDialect, setTemplate
public void updateAll(Collection<T> entities)
MassOperationsDao
updateAll
in interface MassOperationsDao<T extends BusinessEntity<ID>>
entities
- The entities to update.Copyright © 2012. All Rights Reserved.