com.github.drinkjava2.jsqlbox.handler
Class SSTitleArrayListHandler

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.SSTitleArrayListHandler
All Implemented Interfaces:
SqlHandler
Direct Known Subclasses:
EntityNetHandler

public class SSTitleArrayListHandler
extends SSHandler

SSTitleArrayListHandler is a SqlHandler used to explain alias.** to real columns in SQL and return a List, first row is titles, 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
SSTitleArrayListHandler()
           
 
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

SSTitleArrayListHandler

public SSTitleArrayListHandler()
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.