Yair Zaslavsky has posted comments on this change.

Change subject: core: Migrate RuntimeInfo to use Batch Updates
......................................................................


Patch Set 1: (2 inline comments)

....................................................
File 
backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/MassOperationsDao.java
Line 45:     /**
Line 46:      * Calls an update stored procedure multiple timse in a batch
Line 47:      * @param procedureName
Line 48:      * @param entities
Line 49:      */
They use MapSqlParameterSourcre in the impelementation (see VmDynamicDao and 
his implementation).
Actually, at past we had a Hibernate POC, so our DAOs interfaces had to 
spring-jdbc agnostic/hibernate agnostic
Line 50:     void updateAllInBatch(String procedureName, 
List<MapSqlParameterSource> paramValues);


....................................................
File 
backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/MassOperationsGenericDaoDbFacade.java
Line 46:      * Enables to send update procedure name as a parameter that 
overrides the default
Line 47:      * one.
Line 48:      * In case this parameter is null the default procedure is used.
Line 49:      */
Line 50:     public void updateAllInBatch(String procedureName, 
List<MapSqlParameterSource> paramValues) {
Right, but i can have an:

abstract MapSqlParameterSource map(T source) , and have classes that extend 
this class implement it
Line 51:         getCallsHandler().executeStoredProcAsBatch(procedureName == 
null ? getProcedureNameForUpdate() : procedureName,
Line 52:                 paramValues);
Line 53:     }
Line 54: 


-- 
To view, visit http://gerrit.ovirt.org/16018
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I96dd3a2f407e36194c0ccf07a5a9c7e83be61d48
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Liran Zelkha <[email protected]>
Gerrit-Reviewer: Eli Mesika <[email protected]>
Gerrit-Reviewer: Liran Zelkha <[email protected]>
Gerrit-Reviewer: Yair Zaslavsky <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to