20042005200620072008200920102011201220132014
Session session = null; try { session = openSession(); SQLQuery q = session.createSQLQuery(sql); if (getDB().isSupportsInlineDistinct()) { q.addEntity(_FILTER_ENTITY_ALIAS, EntryImpl.class); } else {
23272328232923302331233223332334233523362337
Session session = null; try { session = openSession(); SQLQuery q = session.createSQLQuery(sql); q.addScalar(COUNT_COLUMN_NAME, com.liferay.portal.kernel.dao.orm.Type.LONG); QueryPos qPos = QueryPos.getInstance(q);
19741975197619771978197919801981198219831984
Session session = null; try { session = openSession(); SQLQuery q = session.createSQLQuery(sql); if (getDB().isSupportsInlineDistinct()) { q.addEntity(_FILTER_ENTITY_ALIAS, GuestbookImpl.class); } else {
22782279228022812282228322842285228622872288
28982899290029012902290329042905290629072908
32623263326432653266326732683269327032713272