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

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

package com.dexcoder.dal.batis.build;

import com.dexcoder.dal.batis.reflection.MetaObject;
import com.dexcoder.dal.batis.xml.XNode;

import java.util.*;

/**
 * Created by liyd on 2015-11-24.
 */
public class Configuration {

    protected final Set loadedResources = new HashSet();

    protected final Map mappedStatements = new HashMap();

    protected final Map sqlFragments = new HashMap();

    protected Properties variables = new Properties();

    public Map getSqlFragments() {
        return sqlFragments;
    }

    public Map getMappedStatements() {
        return mappedStatements;
    }

    public boolean isResourceLoaded(String resource) {
        return loadedResources.contains(resource);
    }

    public void addLoadedResource(String resource) {
        loadedResources.add(resource);
    }

    public Properties getVariables() {
        return variables;
    }

    public void addMappedStatement(MappedStatement ms) {
        mappedStatements.put(ms.getId(), ms);
    }

    public MetaObject newMetaObject(Object object) {
        return MetaObject.forObject(object);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy