Class QueryConfiguration
- java.lang.Object
-
- org.wildfly.security.auth.realm.jdbc.QueryConfiguration
-
public class QueryConfiguration extends Object
Holds the configuration for a specific query.- Author:
- Pedro Igor
-
-
Field Summary
Fields Modifier and Type Field Description private List<ColumnMapper>
columnMappers
private DataSource
dataSource
private String
sql
-
Constructor Summary
Constructors Constructor Description QueryConfiguration(String sql, DataSource dataSource, List<ColumnMapper> columnMappers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) List<ColumnMapper>
getColumnMappers()
Returns allColumnMapper
instances associated with this query.(package private) <T extends ColumnMapper>
List<T>getColumnMappers(Class<T> mapperType)
(package private) DataSource
getDataSource()
Returns theDataSource
from where connections are obtained.(package private) String
getSql()
Returns the SQL used by this query.
-
-
-
Field Detail
-
dataSource
private final DataSource dataSource
-
sql
private String sql
-
columnMappers
private List<ColumnMapper> columnMappers
-
-
Constructor Detail
-
QueryConfiguration
QueryConfiguration(String sql, DataSource dataSource, List<ColumnMapper> columnMappers)
-
-
Method Detail
-
getSql
String getSql()
Returns the SQL used by this query.- Returns:
-
getDataSource
DataSource getDataSource()
Returns theDataSource
from where connections are obtained.- Returns:
-
getColumnMappers
List<ColumnMapper> getColumnMappers()
Returns allColumnMapper
instances associated with this query.- Returns:
-
getColumnMappers
<T extends ColumnMapper> List<T> getColumnMappers(Class<T> mapperType)
-
-