com.jpattern.orm.query.OrmUpdate Maven / Gradle / Ivy
package com.jpattern.orm.query;
import java.util.ArrayList;
import java.util.List;
import com.jpattern.orm.classtool.IOrmClassToolMap;
import com.jpattern.orm.session.ISessionSqlPerformer;
import com.jpattern.orm.session.ISqlPerformer;
/**
*
* @author Francesco Cina
*
* 10/lug/2011
*/
public class OrmUpdate implements IUpdate, INameSolverConsumer {
/**
*
*/
private ISetClause set = new SetClause();
private IExpression whereExpression = new Expression();
// private INameSolver nameSolver = new NullNameSolver();
private int queryTimeout = 0;
private final Class> clazz;
private final IOrmClassToolMap ormClassToolMap;
private final ISessionSqlPerformer session;
public OrmUpdate(Class> clazz, IOrmClassToolMap ormClassToolMap, ISessionSqlPerformer session) {
this.clazz = clazz;
this.ormClassToolMap = ormClassToolMap;
this.session = session;
}
@Override
public IExpression where() {
return whereExpression;
}
@Override
public int perform() {
List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy