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

com.github.andyshaox.jdbc.FindSql Maven / Gradle / Ivy

There is a newer version: 3.2.10.RELEASE
Show newest version
package com.github.andyshaox.jdbc;

import java.lang.reflect.Method;

import com.github.andyshao.reflect.ClassOperation;

/**
 * 
 * Title:
* Descript:
* Copyright: Copryright(c) Mar 10, 2016
* Encoding:UNIX UTF-8 * * @author Andy.Shao * */ public class FindSql implements SqlAssembly { @Override public String assemble(Dao dao , Method method , Object... args) { Sql sql = dao.getSqls().get(method); if (sql.getSqlAssembly() != SqlAssembly.class) { SqlAssembly sqlAssembly = ClassOperation.newInstance(sql.getSqlAssembly()); return sqlAssembly.assemble(dao , method , args); } return SqlAssembly.DEFAUL.assemble(dao , method , args); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy