public class FormatExecutableStatementBuilder extends AbstractExecutableStatementBuilder
ExecutableSearchBuilder. It generates the SQL statement to
be executed by invoking String.format(String, Object...) with
AttributeResolutionContext.getPrincipal().| Modifier and Type | Field and Description |
|---|---|
private String |
sqlQuery
SQL query string.
|
| Constructor and Description |
|---|
FormatExecutableStatementBuilder()
Constructor.
|
FormatExecutableStatementBuilder(String query)
Deprecated.
- use the property setters
|
FormatExecutableStatementBuilder(String query,
int timeout)
Deprecated.
- use the property setters
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doInitialize() |
protected String |
getSQLQuery(AttributeResolutionContext resolutionContext,
Map<String,List<IdPAttributeValue<?>>> dependencyAttributes)
Method to return the query SQL.
|
void |
setQuery(String query)
Set the query to search the database.
|
void |
setTimeOut(int timeout)
Set the search timeout.
|
build, getQueryTimeout, setQueryTimeoutdestroy, doDestroy, initialize, isDestroyed, isInitializedprivate String sqlQuery
@Deprecated public FormatExecutableStatementBuilder(@Nonnull String query)
query - to search the database@Deprecated public FormatExecutableStatementBuilder(@Nonnull String query, @Nonnull int timeout)
query - to search the databasetimeout - search timeoutpublic FormatExecutableStatementBuilder()
protected void doInitialize()
throws ComponentInitializationException
doInitialize in class AbstractInitializableComponentComponentInitializationExceptionpublic void setQuery(@Nonnull String query)
query - query to search the databasepublic void setTimeOut(@Nonnull int timeout)
timeout - search timeoutprotected String getSQLQuery(@Nonnull AttributeResolutionContext resolutionContext, @Nonnull Map<String,List<IdPAttributeValue<?>>> dependencyAttributes)
getSQLQuery in class AbstractExecutableStatementBuilderresolutionContext - the context of the resolutiondependencyAttributes - made available to the executable searchCopyright © 1999–2017 Shibboleth Consortium. All rights reserved.