public abstract class AbstractExecutableStatementBuilder extends AbstractInitializableComponent implements ExecutableSearchBuilder<ExecutableStatement>
| Modifier and Type | Field and Description |
|---|---|
private int |
queryTimeout
Query timeout.
|
| Constructor and Description |
|---|
AbstractExecutableStatementBuilder() |
| Modifier and Type | Method and Description |
|---|---|
ExecutableStatement |
build(AttributeResolutionContext resolutionContext,
Map<String,List<IdPAttributeValue<?>>> dependencyAttributes)
Creates an executable search that can be executed against a data source in order to produce results.
|
int |
getQueryTimeout()
Gets the timeout of the SQL query.
|
protected abstract String |
getSQLQuery(AttributeResolutionContext resolutionContext,
Map<String,List<IdPAttributeValue<?>>> dependencyAttributes)
Method to return the query SQL.
|
void |
setQueryTimeout(int timeout)
Sets the timeout of the SQL query.
|
destroy, doDestroy, doInitialize, initialize, isDestroyed, isInitializedpublic int getQueryTimeout()
public void setQueryTimeout(int timeout)
timeout - of the SQL query in secondsprotected abstract String getSQLQuery(@Nonnull AttributeResolutionContext resolutionContext, @Nonnull Map<String,List<IdPAttributeValue<?>>> dependencyAttributes) throws ResolutionException
resolutionContext - the context of the resolutiondependencyAttributes - made available to the executable searchResolutionException - if we get an error building the exception.public ExecutableStatement build(@Nonnull AttributeResolutionContext resolutionContext, @Nonnull Map<String,List<IdPAttributeValue<?>>> dependencyAttributes) throws ResolutionException
build in interface ExecutableSearchBuilder<ExecutableStatement>resolutionContext - current request contextdependencyAttributes - made available to the executable searchResolutionException - throw if their is a problem creating the executable searchCopyright © 1999–2017 Shibboleth Consortium. All rights reserved.