com.github.drinkjava2.jdbpro
Interface SqlHandler

All Known Implementing Classes:
DefaultOrderSqlHandler, EntityListHandler, EntityNetHandler, PaginHandler, PrintSqlHandler, SimpleCacheHandler, SSHandler, SSMapListHandler, SSTitleArrayListHandler

public interface SqlHandler

SqlHandler is the Interceptor to do some intercept operation instead of direct access database

Since:
1.7.0.2

Method Summary
 Integer getOrder()
           
 Object handle(ImprovedQueryRunner runner, PreparedSQL ps)
          handle method is an intercept method, subClass should implement this method
 void setOrder(Integer order)
           
 

Method Detail

getOrder

Integer getOrder()
Returns:
The order number, usually when add a SqlHandler into a existed SqlHandlers list, will sort according this order number

setOrder

void setOrder(Integer order)
Parameters:
order - Usually when add a SqlHandler into a existed SqlHandlers list, will sort according this order number

handle

Object handle(ImprovedQueryRunner runner,
              PreparedSQL ps)
handle method is an intercept method, subClass should implement this method

Parameters:
runner - The ImprovedQueryRunner instance
ps - The PreparedSQL instance
Returns:
The result Object


Copyright © 2018. All rights reserved.