public class SingleRowJdbcPersonAttributeDao extends AbstractJdbcPersonAttributeDao<java.util.Map<java.lang.String,java.lang.Object>>
IPersonAttributeDao
implementation that maps from column names in the result of a SQL query
to attribute names. | Property | Description | Required | Default |
|---|---|---|---|
| columnsToAttributes |
The Map of String columns names to String or Sets
of Strings to use as attribute names in the returned Map. If a column name
is not in the map the column name will be used in as the returned attribute name.
|
No | Collections.EMPTY_MAP |
DEFAULT_CASE_CANONICALIZATION_MODE, DEFAULT_USERNAME_CASE_CANONICALIZATION_MODEloggerWILDCARD, WILDCARD_PATTERN| Constructor and Description |
|---|
SingleRowJdbcPersonAttributeDao() |
SingleRowJdbcPersonAttributeDao(javax.sql.DataSource ds,
java.lang.String sql)
Creates a new MultiRowJdbcPersonAttributeDao specifying the DataSource and SQL to use.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.jdbc.core.RowMapper<java.util.Map<java.lang.String,java.lang.Object>> |
getRowMapper() |
protected java.util.List<IPersonAttributes> |
parseAttributeMapFromResults(java.util.List<java.util.Map<java.lang.String,java.lang.Object>> queryResults,
java.lang.String queryUserName)
Takes the
List from the query and parses it into the List of IPersonAttributes attributes to be returned. |
appendAttributeToQuery, canonicalizeDataAttributeForSql, getCaseInsensitiveDataAttributes, getDataAttributeCaseCanonicalizationFunctions, getPeopleForQuery, getQueryTemplate, getQueryType, setCaseInsensitiveDataAttributes, setCaseInsensitiveDataAttributesAsCollection, setDataAttributeCaseCanonicalizationFunctions, setQueryTypeappendCanonicalizedAttributeToQuery, canonicalizeAttribute, generateQuery, getAvailableQueryAttributes, getCaseCanonicalizationLocale, getCaseInsensitiveQueryAttributes, getCaseInsensitiveResultAttributes, getConfiguredUserNameAttribute, getDefaultCaseCanonicalizationMode, getPeopleWithMultivaluedAttributes, getPossibleUserAttributeNames, getQueryAttributeMapping, getResultAttributeMapping, getUnmappedUsernameAttribute, getUsernameCaseCanonicalizationMode, isRequireAllQueryAttributes, isUseAllQueryAttributes, isUserNameAttributeConfigured, mapPersonAttributes, setCaseCanonicalizationLocale, setCaseInsensitiveQueryAttributes, setCaseInsensitiveQueryAttributesAsCollection, setCaseInsensitiveResultAttributes, setCaseInsensitiveResultAttributesAsCollection, setDefaultCaseCanonicalizationMode, setQueryAttributeMapping, setRequireAllQueryAttributes, setResultAttributeMapping, setUnmappedUsernameAttribute, setUseAllQueryAttributes, setUsernameCaseCanonicalizationModegetPerson, getUsernameAttributeProvider, setUsernameAttributeProvider, toSeedMapgetPeople, toMultivaluedSeedcompareTo, flattenResults, getMultivaluedUserAttributes, getMultivaluedUserAttributes, getOrder, getUserAttributes, getUserAttributes, setOrderpublic SingleRowJdbcPersonAttributeDao()
public SingleRowJdbcPersonAttributeDao(javax.sql.DataSource ds,
java.lang.String sql)
ds - The DataSource to get connections from for executing queries, may not be null.sql - The SQL to execute for user attributes, may not be null.protected org.springframework.jdbc.core.RowMapper<java.util.Map<java.lang.String,java.lang.Object>> getRowMapper()
getRowMapper in class AbstractJdbcPersonAttributeDao<java.util.Map<java.lang.String,java.lang.Object>>protected java.util.List<IPersonAttributes> parseAttributeMapFromResults(java.util.List<java.util.Map<java.lang.String,java.lang.Object>> queryResults, java.lang.String queryUserName)
AbstractJdbcPersonAttributeDaoList from the query and parses it into the List of IPersonAttributes attributes to be returned.parseAttributeMapFromResults in class AbstractJdbcPersonAttributeDao<java.util.Map<java.lang.String,java.lang.Object>>queryResults - Results from the query.queryUserName - The username passed in the query map, if no username attribute existed in the query Map null is provided.Copyright © 2005-2018. All Rights Reserved.