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

com.dexcoder.dal.batis.build.MappedStatement Maven / Gradle / Ivy

package com.dexcoder.dal.batis.build;

/**
 * Created by liyd on 2015-11-26.
 */
public final class MappedStatement {

    private Configuration configuration;
    private String        id;
    private SqlSource     sqlSource;

    MappedStatement() {
        // constructor disabled
    }

    public static class Builder {
        private MappedStatement mappedStatement = new MappedStatement();

        public Builder(Configuration configuration, String id, SqlSource sqlSource) {
            mappedStatement.configuration = configuration;
            mappedStatement.id = id;
            mappedStatement.sqlSource = sqlSource;
        }

        public MappedStatement build() {
            assert mappedStatement.configuration != null;
            assert mappedStatement.id != null;
            assert mappedStatement.sqlSource != null;
            return mappedStatement;
        }
    }

    public String getId() {
        return id;
    }

    public SqlSource getSqlSource() {
        return sqlSource;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy