Class MiniDaoHandler

java.lang.Object
org.jeecgframework.minidao.aop.MiniDaoHandler
All Implemented Interfaces:
InvocationHandler

public class MiniDaoHandler extends Object implements InvocationHandler
Version:
V1.0
Author:
张代浩
  • Field Details

    • dataSource

      @Autowired(required=false) @Qualifier("minidaoDataSource") public DataSource dataSource
      自定义的数据源
    • pageAutoDialect

      protected PageAutoDialect pageAutoDialect
    • SEQ_NEXTVAL_SQL

      public static final String SEQ_NEXTVAL_SQL
      See Also:
  • Constructor Details

    • MiniDaoHandler

      public MiniDaoHandler()
  • Method Details

    • invoke

      public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
      Specified by:
      invoke in interface InvocationHandler
      Throws:
      Throwable
    • getJdbcTemplate

      public org.springframework.jdbc.core.JdbcTemplate getJdbcTemplate()
    • getKeyType

      public String getKeyType()
    • getNamedParameterJdbcTemplate

      public org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate getNamedParameterJdbcTemplate()
    • isFormatSql

      public boolean isFormatSql()
    • procedureParamsList

      public List<Object> procedureParamsList(Method method, Object[] args) throws Exception
      将解析参数的代码单独抽取出来
      Parameters:
      method -
      args -
      Returns:
      Throws:
      Exception
    • setFormatSql

      public void setFormatSql(boolean formatSql)
    • setJdbcTemplate

      public void setJdbcTemplate(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
    • setNamedParameterJdbcTemplate

      public void setNamedParameterJdbcTemplate(org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate namedParameterJdbcTemplate)
    • setKeyType

      public void setKeyType(String keyType)
    • setShowSql

      public void setShowSql(boolean showSql)
    • getEmptyInterceptor

      public EmptyInterceptor getEmptyInterceptor()
    • setEmptyInterceptor

      public void setEmptyInterceptor(EmptyInterceptor emptyInterceptor)
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)