public class FindMixedCaseUsernames extends Object
Constructor and Description |
---|
FindMixedCaseUsernames() |
Modifier and Type | Method and Description |
---|---|
static EntityListConsumer<org.ofbiz.core.entity.GenericValue,Map<String,String>> |
fromColumn(String columnName)
Consumer that returns a map of mixed-case usernames that were found from a
Select.columns(String...) query to their lowercase equivalents. |
static EntityListConsumer<org.ofbiz.core.entity.GenericValue,Map<String,List<Long>>> |
fromColumnAndReturnIds(String columnName)
Consumer that returns a map of lowercase versions of the mixed-case usernames
that were found from a
Select.columns(String...) query to a list of
the associated entity IDs for the rows that contained a mixed-case username. |
static EntityListConsumer<String,Map<String,String>> |
fromStrings()
Consumer that returns a map of mixed-case usernames that were found from a
Select.distinctString(String) query to their lowercase equivalents. |
public static EntityListConsumer<String,Map<String,String>> fromStrings()
Select.distinctString(String)
query to their lowercase equivalents.
The resulting map might, for example, have a key of "Fred"
with
a corresponding value of "fred"
.
public static EntityListConsumer<org.ofbiz.core.entity.GenericValue,Map<String,String>> fromColumn(String columnName)
Select.columns(String...)
query to their lowercase equivalents. The
column list must include the same columnName
, but need not include
any others.
The resulting map might, for example, have a key of "Fred"
with a
corresponding value of "fred"
.
public static EntityListConsumer<org.ofbiz.core.entity.GenericValue,Map<String,List<Long>>> fromColumnAndReturnIds(String columnName)
Select.columns(String...)
query to a list of
the associated entity IDs for the rows that contained a mixed-case username.
The column list must include the same columnName
and "id"
,
but need not include any others.
The resulting map might, for example, have a key of "fred"
with a
corresponding value list of [10100, 10300, 10201, 10210, 10200]
.
The list should not be assumed to be in any particular order.
Copyright © 2002-2022 Atlassian. All Rights Reserved.