1 | private String locateAppropriateDialectFunctionNameForAliasTest() {
↵ | | 1 | private String locateAppropriateDialectFunctionNameForAliasTest() {↵
|
2 | for (Iterator itr = getDialect().getFunctions().entrySet().iterator(); itr.hasNext(); ) {
↵ | | 2 | for (Iterator itr = getDialect().getFunctions().entrySet().iterator(); itr.hasNext(); ) {↵
|
3 | final Map.Entry entry = (Map.Entry) itr.next();
↵ | | 3 | final Map.Entry entry = (Map.Entry) itr.next();↵
|
4 | final SQLFunction function = (SQLFunction) entry.getValue();
↵ | | 4 | final SQLFunction function = (SQLFunction) entry.getValue();↵
|
5 | if ( !function.hasArguments() && !function.hasParenthesesIfNoArguments() ) {
↵ | | 5 | if ( !function.hasArguments() && !function.hasParenthesesIfNoArguments() ) {↵
|
6 | return (String) entry.getKey();
↵ | | 6 | return (String) entry.getKey();↵
|
7 | }
↵ | | 7 | }↵
|
8 | }
↵ | | 8 | }↵
|
9 | return null;
↵ | | 9 | return null;↵
|
10 | | | 10 |
|