public static < StoredObjectType , ResultSetType > Pagination createPagination ( PageCriteria pageCriteria ) { String id = pageCriteria . getId ( ) ; if ( id == null || id . length ( ) == 0 ) { return null ; } Pagination pagination = ClassPath . newInstance ( paginationClassName , String . class , pageCriteria . getId ( ) ) ; paginationMap . put ( id , pagination ) ; return pagination ; }
Create a pagination instance