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

com.base4j.mybatis.sql.template.ProcedureSqlTemplate Maven / Gradle / Ivy

There is a newer version: 1.3.0
Show newest version
package com.base4j.mybatis.sql.template;

import com.base4j.mybatis.base.Procedure;

import java.io.ByteArrayInputStream;
import java.io.InputStream;

/**
 * Created by panlc on 2017-04-17.
 */
public class ProcedureSqlTemplate {

    /**
     *生成存储过程
     * @param procedure
     * @return
     */
    public static InputStream createSqlInputStream(Procedure procedure) {

        String process = FreeMarkerUtil.process("procedure", procedure);
        InputStream inputStream = new ByteArrayInputStream(process.getBytes());
        return inputStream;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy