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

com.dream.chain.def.AbstractChainUpdateDef Maven / Gradle / Ivy

package com.dream.chain.def;

import com.dream.antlr.smt.UpdateStatement;
import com.dream.flex.def.AbstractUpdateDef;
import com.dream.flex.def.UpdateDef;
import com.dream.flex.factory.FlexUpdateFactory;
import com.dream.flex.mapper.FlexMapper;

public abstract class AbstractChainUpdateDef extends AbstractUpdateDef implements UpdateDef, ChainUpdate {
    private FlexMapper flexMapper;

    public AbstractChainUpdateDef(UpdateStatement statement, FlexUpdateFactory creatorFactory, FlexMapper flexMapper) {
        super(statement, creatorFactory);
        this.flexMapper = flexMapper;
    }

    @Override
    public int execute() {
        return flexMapper.update(this);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy