create a row count criteriaquery from a criteriaquery concode_field_sep String FROM_PATTERN_STRING concode_elem_sep String ALIAS_PATTERN_STRING concode_elem_sep Pattern FROM_PATTERN concode_elem_sep Pattern ALIAS_PATTERN concode_elem_sep long aliasCount concode_field_sep void copyJoins concode_elem_sep String getOrCreateAlias concode_elem_sep Join<T,K> findJoinedType concode_elem_sep Join<T,K> findJoinedType concode_elem_sep Long count concode_elem_sep String getKeyQuery concode_elem_sep void copyCriteriaNoSelection concode_elem_sep String createCountQueryString concode_elem_sep void copyFetches concode_elem_sep Root<T> findRoot concode_elem_sep Root<T> findRoot concode_elem_sep Path<?> getPath concode_elem_sep String addOrder concode_elem_sep String getAlias concode_elem_sep void copyCriteria
CriteriaQuery < Long > function ( EntityManager arg0 , CriteriaQuery < T > arg1 ) { CriteriaBuilder loc0 = arg0 . getCriteriaBuilder ( ) ; CriteriaQuery < Long > loc1 = loc0 . createQuery ( Long . class ) ; copyCriteriaNoSelection ( arg1 , loc1 ) ; loc1 . select ( loc0 . count ( findRoot ( loc1 , arg1 . getResultType ( ) ) ) ) ; return loc1 ; }