public static synchronized < T > String getOrCreateAlias ( Selection < T > selection ) { // reset alias count if ( aliasCount > 1000 ) aliasCount = 0 ; String alias = selection . getAlias ( ) ; if ( alias == null ) { alias = "JDAL_generatedAlias" + aliasCount ++ ; selection . alias ( alias ) ; } return alias ; }
Gets The result alias if none set a default one and return it