nl: counts the number of releases available . concode_field_sep EntityManager entityManager concode_elem_sep Logger log concode_field_sep List<ReleaseEntity> loadReleaseEntities concode_elem_sep ReleaseEntity getDefaultRelease concode_elem_sep boolean saveReleaseEntity concode_elem_sep ReleaseEntity getById concode_elem_sep List<ResourceEntity> getResourcesForRelease concode_elem_sep List<ReleaseEntity> loadAllReleaseEntities concode_elem_sep ReleaseEntity findByName concode_elem_sep void changeReleaseOfResource concode_elem_sep Order getDefaultOrder concode_elem_sep boolean deleteReleaseEntity
code: int function ( ) { CriteriaQuery < Long > loc0 = entityManager . getCriteriaBuilder ( ) . createQuery ( Long . class ) ; loc0 . select ( entityManager . getCriteriaBuilder ( ) . count ( loc0 . from ( ReleaseEntity . class ) ) ) ; Long loc1 = entityManager . createQuery ( loc0 ) . getSingleResult ( ) ; return loc1 != null ? loc1 . intValue ( ) : 0 ; }