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
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 instanceps - The PreparedSQL instance
- Returns:
- The result Object
Copyright © 2018. All rights reserved.