com.jpattern.orm.query.delete.DeleteQueryOrm Maven / Gradle / Ivy
package com.jpattern.orm.query.delete;
import java.util.List;
import com.jpattern.orm.mapper.IOrmClassToolMap;
import com.jpattern.orm.persistor.type.TypeFactory;
import com.jpattern.orm.persistor.type.ext.WrapperTypeList;
import com.jpattern.orm.query.NameSolver;
import com.jpattern.orm.query.NameSolverConsumer;
import com.jpattern.orm.query.SmartRenderableSqlQuery;
import com.jpattern.orm.session.SessionSqlPerformer;
import com.jpattern.orm.session.SqlPerformer;
/**
*
* @author Francesco Cina
*
* 10/lug/2011
*/
public class DeleteQueryOrm extends SmartRenderableSqlQuery implements DeleteQuery, NameSolverConsumer {
private final DeleteWhereImpl where = new DeleteWhereImpl(this);
private final IOrmClassToolMap ormClassToolMap;
private final SessionSqlPerformer session;
private int queryTimeout = 0;
private final Class> clazz;
private final TypeFactory typeFactory;
public DeleteQueryOrm(final Class> clazz, final IOrmClassToolMap ormClassToolMap, final SessionSqlPerformer session, final TypeFactory typeFactory) {
this.clazz = clazz;
this.ormClassToolMap = ormClassToolMap;
this.session = session;
this.typeFactory = typeFactory;
}
@Override
public DeleteWhere where() {
return this.where;
}
@Override
public int perform() {
final List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy