com.github.drinkjava2.jsqlbox.handler
Class SSMapListHandler

java.lang.Object
  extended by com.github.drinkjava2.jdbpro.DefaultOrderSqlHandler
      extended by com.github.drinkjava2.jsqlbox.handler.SSHandler
          extended by com.github.drinkjava2.jsqlbox.handler.SSMapListHandler
All Implemented Interfaces:
SqlHandler

public class SSMapListHandler
extends SSHandler

SSMapListHandler is a SqlHandler used to explain alias.** to real columns in SQL and return a Map List, SS means star-star, example: select u.** from users u ==> select u.name as u_name, u.address as u_address from users u

Since:
1.0.0
Author:
Yong Zhu

Field Summary
 
Fields inherited from class com.github.drinkjava2.jdbpro.DefaultOrderSqlHandler
DEFAULT_ORDER, order
 
Constructor Summary
SSMapListHandler()
           
 
Method Summary
 Object handle(ImprovedQueryRunner runner, PreparedSQL ps)
          handle method is an intercept method, subClass should implement this method
 
Methods inherited from class com.github.drinkjava2.jdbpro.DefaultOrderSqlHandler
getOrder, setOrder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSMapListHandler

public SSMapListHandler()
Method Detail

handle

public Object handle(ImprovedQueryRunner runner,
                     PreparedSQL ps)
Description copied from interface: SqlHandler
handle method is an intercept method, subClass should implement this method

Specified by:
handle in interface SqlHandler
Overrides:
handle in class SSHandler
Parameters:
runner - The ImprovedQueryRunner instance
ps - The PreparedSQL instance
Returns:
The result Object


Copyright © 2018. All rights reserved.