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

com.jn.sqlhelper.common.batch.xjdbc.XjdbcBatchStatement Maven / Gradle / Ivy

package com.jn.sqlhelper.common.batch.xjdbc;

import com.jn.sqlhelper.common.batch.BatchMode;
import com.jn.sqlhelper.common.batch.BatchStatement;

public class XjdbcBatchStatement implements BatchStatement {
    private BatchMode batchMode;
    private String sql;

    public XjdbcBatchStatement(String sql) {
        this(sql, null);
    }

    public XjdbcBatchStatement(String sql, BatchMode batchMode) {
        if (batchMode == null) {
            batchMode = BatchMode.JDBC_BATCH;
        }
        this.batchMode = batchMode;
        this.sql = sql;
    }

    @Override
    public BatchMode getBatchMode() {
        return batchMode;
    }

    @Override
    public void setBatchMode(BatchMode batchMode) {
        this.batchMode = batchMode;
    }

    @Override
    public String getSql() {
        return sql;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy