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

org.onetwo.common.db.spi.SqlFileScanner Maven / Gradle / Ivy

package org.onetwo.common.db.spi;

import java.util.Map;

import org.onetwo.common.propconf.ResourceAdapter;

public interface SqlFileScanner {
	public String SQL_POSTFIX = ".sql";
	/*public String JFISH_SQL_POSTFIX = ".jfish"+SQL_POSTFIX;*/

	/****
	 * 根据配置扫描文件
	 * @param conf
	 * @return
	 */
	Map> scanMatchSqlFiles(String dialectDir);
	
	/***
	 * 根据数据库和类路径加载对应是sql文件,如果dialet为null,默认会查找.jfish.sql后缀
	 * @param dialect
	 * @param classPath
	 * @return
	 */
	public > T getClassPathResource(String dialect, String classPath);
	
	String getSqlPostfix();

	String getJfishPostfix();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy