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

com.dream.tdengine.factory.TdChainFlexInsertFactory Maven / Gradle / Ivy

package com.dream.tdengine.factory;

import com.dream.antlr.smt.InsertStatement;
import com.dream.flex.factory.FlexInsertFactory;
import com.dream.flex.mapper.FlexMapper;
import com.dream.tdengine.def.TdChainInsertDef;
import com.dream.tdengine.def.TdChainInsertIntoColumnsDef;
import com.dream.tdengine.def.TdChainInsertIntoTableDef;
import com.dream.tdengine.def.TdChainInsertIntoValuesDef;

public class TdChainFlexInsertFactory implements FlexInsertFactory {
    private FlexMapper flexMapper;

    public TdChainFlexInsertFactory(FlexMapper flexMapper) {
        this.flexMapper = flexMapper;
    }

    @Override
    public TdChainInsertDef newInsertDef(InsertStatement statement) {
        return new TdChainInsertDef(statement, this, flexMapper);
    }

    @Override
    public TdChainInsertIntoTableDef newInsertIntoTableDef() {
        return new TdChainInsertIntoTableDef(this, flexMapper);
    }

    @Override
    public TdChainInsertIntoColumnsDef newInsertIntoColumnsDef(InsertStatement statement) {
        return new TdChainInsertIntoColumnsDef(statement, this, flexMapper);
    }

    @Override
    public TdChainInsertIntoValuesDef newInsertIntoValuesDef(InsertStatement statement) {
        return new TdChainInsertIntoValuesDef(statement, this, flexMapper);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy