com.dream.chain.def.AbstractChainUpdateDef Maven / Gradle / Ivy
The newest version!
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