View Javadoc
1   package com.randomnoun.common.spring;
2   
3   import org.springframework.jdbc.core.ResultSetExtractor;
4   
5   /** A SelectFromResultSetExtractor is pretty much the same as a ResultSetExtractor, except 
6    * it knows what columns and tables to query (i.e. the 'SELECT' and 'FROM' clauses of the SQL), 
7    * so the caller only needs to supply WHERE and ORDER BY SQL clauses
8    * 
9    * @author knoxg
10   */
11  public interface SelectFromResultSetExtractor<T> extends ResultSetExtractor<T> {
12  
13  	default public String getCte() { return null; }
14  
15  	public String getSelect();
16  	
17  	public String getFrom();
18  	
19  	// this might be a good place to add pagination constraints as well, once we add that to the API
20  
21  	
22  }