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

org.noear.wood.generator.mapper.XmlSqlBlock Maven / Gradle / Ivy

There is a newer version: 1.3.16
Show newest version
package org.noear.wood.generator.mapper;

import org.w3c.dom.Node;

import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import java.util.LinkedHashMap;

public class XmlSqlBlock {
    private static final String _lock ="";

    public String _namespace;
    public String _className;
    public StringBuilder _classCode;

    public String _id;
    public String _param;
    public String _declare;
    public String _return;

    public String _remarks;

    public String _caching;
    public String _cacheClear;
    public String _cacheTag;
    public String _usingCache;

    //临时变量
    public Map __nodeMap;

    public Map varMap = new LinkedHashMap();
    public void varPut(XmlSqlVar dv) {
        if (dv.type == null || dv.type.length() == 0) {
            return;
        }

        if(dv.type.indexOf(".")>0){
            TypeBlock tBlock = new TypeBlock(dv.type);
            if(tBlock.impType!=null) {
                impTypeSet.add(tBlock.impType);
            }

            dv.type = tBlock.newType;
        }

        varMap.put(dv.name, dv);
    }
    public Set impTypeSet = new HashSet<>();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy