001package com.randomnoun.common.spring; 002 003import org.springframework.jdbc.core.ResultSetExtractor; 004 005/** A SelectFromResultSetExtractor is pretty much the same as a ResultSetExtractor, except 006 * it knows what columns and tables to query (i.e. the 'SELECT' and 'FROM' clauses of the SQL), 007 * so the caller only needs to supply WHERE and ORDER BY SQL clauses 008 * 009 * @author knoxg 010 */ 011public interface SelectFromResultSetExtractor<T> extends ResultSetExtractor<T> { 012 013 default public String getCte() { return null; } 014 015 public String getSelect(); 016 017 public String getFrom(); 018 019 // this might be a good place to add pagination constraints as well, once we add that to the API 020 021 022}