com.anwen.mongo.conditions.update.LambdaUpdateChainWrapper Maven / Gradle / Ivy
package com.anwen.mongo.conditions.update;
import com.anwen.mongo.mapper.BaseMapper;
public class LambdaUpdateChainWrapper extends UpdateChainWrapper> implements ChainUpdate {
private final BaseMapper baseMapper;
private final Class clazz;
public LambdaUpdateChainWrapper(BaseMapper baseMapper, Class clazz) {
this.baseMapper = baseMapper;
this.clazz = clazz;
}
@Override
public boolean update(){
return baseMapper.update(this,clazz);
}
@Override
public boolean remove() {
return baseMapper.remove(this,clazz);
}
}