1 | private FromElement findIntendedAliasedFromElementBasedOnCrazyJPARequirements(String specifiedAlias) {↵ | | 1 | public EntityMode guessEntityMode(Object object) {
↵
|
2 | Iterator itr = fromElementByClassAlias.entrySet().iterator();↵ | | 2 | Iterator itr = tuplizers.entrySet().iterator();
↵
|
3 | while ( itr.hasNext() ) {↵ | | 3 | while( itr.hasNext() ) {
↵
|
4 | Map.Entry entry = ( Map.Entry ) itr.next();↵ | | 4 | Map.Entry entry = ( Map.Entry ) itr.next();
↵
|
5 | String alias = ( String ) entry.getKey();↵ | | 5 | Tuplizer tuplizer = ( Tuplizer ) entry.getValue();
↵
|
6 | if ( alias.equalsIgnoreCase( specifiedAlias ) ) {↵ | | 6 | if ( tuplizer.isInstance( object ) ) {
↵
|
7 | return ( FromElement ) entry.getValue();↵ | | 7 | return ( EntityMode ) entry.getKey();
↵
|
8 | }↵ | | 8 | }
↵
|
9 | }↵ | | 9 | }
↵
|
10 | return null;↵ | | 10 | return null;
↵
|
11 | | | 11 |
|