com.s24.search.solr.analysis.jdbc.JdbcReader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of solr-jdbc Show documentation
Show all versions of solr-jdbc Show documentation
A simple Solr JDBC connection holder that can be injected by JNDI.
package com.s24.search.solr.analysis.jdbc;
import java.io.Reader;
import org.apache.commons.dbutils.QueryRunner;
/**
* Reads "lines" of configuration out of JDBC.
*
* @author Shopping24 GmbH, Torsten Bøgh Köster (@tboeghk)
*/
public interface JdbcReader {
/**
*
* @return a {@linkplain Reader}, never null
*/
Reader getReader();
/**
* @return direct {@link QueryRunner} to execute query. If no datasource is defined, it could be null.
*/
QueryRunner getJdbcRunner();
/**
* @return plain SQL query.
*/
String getSql();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy