All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.anwen.mongo.conditions.update.LambdaUpdateChainWrapper Maven / Gradle / Ivy

There is a newer version: 2.1.5
Show newest version
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);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy