Class FormatExecutableStatementBuilder
java.lang.Object
net.shibboleth.utilities.java.support.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
- Direct Known Subclasses:
FormatExecutableStatementBuilder
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 void
protected String
getSQLQuery
(AttributeResolutionContext resolutionContext, Map<String, List<IdPAttributeValue>> dependencyAttributes) Method to return the query SQL.void
Set the query to search the database.Methods inherited from class net.shibboleth.idp.attribute.resolver.dc.rdbms.AbstractExecutableStatementBuilder
build, getQueryTimeout, setQueryTimeout
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, 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:
doInitialize
in classAbstractInitializableComponent
- Throws:
ComponentInitializationException
-
getSQLQuery
protected String getSQLQuery(@Nonnull AttributeResolutionContext resolutionContext, @Nonnull Map<String, List<IdPAttributeValue>> dependencyAttributes) Method to return the query SQL.- Specified by:
getSQLQuery
in classAbstractExecutableStatementBuilder
- Parameters:
resolutionContext
- the context of the resolutiondependencyAttributes
- made available to the executable search- Returns:
- the SQL string
-