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
public class FormatExecutableStatementBuilder extends AbstractExecutableStatementBuilder
AnExecutableSearchBuilder. It generates the SQL statement to be executed by invokingString.format(String, Object...)withAttributeResolutionContext.getPrincipal().
-
-
Constructor Summary
Constructors Constructor Description FormatExecutableStatementBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoInitialize()protected StringgetSQLQuery(AttributeResolutionContext resolutionContext, Map<String,List<IdPAttributeValue>> dependencyAttributes)Method to return the query SQL.voidsetQuery(String query)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 Detail
-
sqlQuery
@NonnullAfterInit private String sqlQuery
SQL query string.
-
-
Method Detail
-
setQuery
public void setQuery(@Nonnull String query)Set the query to search the database.- Parameters:
query- query to search the database
-
doInitialize
protected void doInitialize() throws ComponentInitializationException- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
getSQLQuery
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
-
-