Class FormatExecutableStatementBuilder
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.idp.attribute.resolver.dc.rdbms.AbstractExecutableStatementBuilder
net.shibboleth.idp.attribute.resolver.dc.rdbms.FormatExecutableStatementBuilder
- All Implemented Interfaces:
ExecutableSearchBuilder<ExecutableStatement>,Component,DestructableComponent,InitializableComponent
An
ExecutableSearchBuilder. It generates the SQL statement to
be executed by invoking String.format(String, Object...) with
AttributeResolutionContext.getPrincipal().-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected StringgetSQLQuery(AttributeResolutionContext resolutionContext, Map<String, List<IdPAttributeValue>> dependencyAttributes) Method to return the query SQL.voidSet the query to search the database.Methods inherited from class net.shibboleth.idp.attribute.resolver.dc.rdbms.AbstractExecutableStatementBuilder
build, getQueryTimeout, setQueryTimeoutMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitialized
-
Field Details
-
sqlQuery
SQL query string.
-
-
Constructor Details
-
FormatExecutableStatementBuilder
public FormatExecutableStatementBuilder()
-
-
Method Details
-
setQuery
Set the query to search the database.- Parameters:
query- query to search the database
-
doInitialize
- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
getSQLQuery
@Nonnull protected String getSQLQuery(@Nonnull AttributeResolutionContext resolutionContext, @Nonnull Map<String, List<IdPAttributeValue>> dependencyAttributes) Method to return the query SQL.- Specified by:
getSQLQueryin classAbstractExecutableStatementBuilder- Parameters:
resolutionContext- the context of the resolutiondependencyAttributes- made available to the executable search- Returns:
- the SQL string
-