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

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

package com.dream.chain.def;

import com.dream.antlr.smt.InsertStatement;
import com.dream.flex.def.AbstractInsert;
import com.dream.flex.def.Insert;
import com.dream.flex.factory.InsertCreatorFactory;
import com.dream.flex.mapper.FlexMapper;

public abstract class AbstractChainInsert extends AbstractInsert implements Insert, ChainInsert {
    private FlexMapper flexMapper;

    public AbstractChainInsert(InsertStatement statement, InsertCreatorFactory creatorFactory, FlexMapper flexMapper) {
        super(statement, creatorFactory);
        this.flexMapper = flexMapper;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy