Search in sources :

Example 16 with ActionableDynamicQuery

use of com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery in project liferay-ide by liferay.

the class ClubLocalServiceBaseImpl method getActionableDynamicQuery.

@Override
public ActionableDynamicQuery getActionableDynamicQuery() {
    ActionableDynamicQuery actionableDynamicQuery = new DefaultActionableDynamicQuery();
    actionableDynamicQuery.setBaseLocalService(com.liferay.roster.service.ClubLocalServiceUtil.getService());
    actionableDynamicQuery.setClassLoader(getClassLoader());
    actionableDynamicQuery.setModelClass(Club.class);
    actionableDynamicQuery.setPrimaryKeyPropertyName("clubId");
    return actionableDynamicQuery;
}
Also used : DefaultActionableDynamicQuery(com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery) DefaultActionableDynamicQuery(com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery) IndexableActionableDynamicQuery(com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery) ActionableDynamicQuery(com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery)

Example 17 with ActionableDynamicQuery

use of com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery in project liferay-ide by liferay.

the class RosterMemberLocalServiceBaseImpl method getActionableDynamicQuery.

@Override
public ActionableDynamicQuery getActionableDynamicQuery() {
    ActionableDynamicQuery actionableDynamicQuery = new DefaultActionableDynamicQuery();
    actionableDynamicQuery.setBaseLocalService(com.liferay.roster.service.RosterMemberLocalServiceUtil.getService());
    actionableDynamicQuery.setClassLoader(getClassLoader());
    actionableDynamicQuery.setModelClass(RosterMember.class);
    actionableDynamicQuery.setPrimaryKeyPropertyName("rosterMemberId");
    return actionableDynamicQuery;
}
Also used : DefaultActionableDynamicQuery(com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery) DefaultActionableDynamicQuery(com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery) IndexableActionableDynamicQuery(com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery) ActionableDynamicQuery(com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery)

Example 18 with ActionableDynamicQuery

use of com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery in project liferay-ide by liferay.

the class AdminPortletDataHandler method getKBArticleActionableDynamicQuery.

protected ActionableDynamicQuery getKBArticleActionableDynamicQuery(final PortletDataContext portletDataContext) throws Exception {
    return new KBArticleExportActionableDynamicQuery(portletDataContext) {

        @Override
        protected void addCriteria(DynamicQuery dynamicQuery) {
            super.addCriteria(dynamicQuery);
            OrderFactoryUtil.addOrderByComparator(dynamicQuery, new KBArticleVersionComparator(true));
        }
    };
}
Also used : KBArticleVersionComparator(com.liferay.knowledgebase.util.comparator.KBArticleVersionComparator) DynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery) KBTemplateExportActionableDynamicQuery(com.liferay.knowledgebase.service.persistence.KBTemplateExportActionableDynamicQuery) KBArticleExportActionableDynamicQuery(com.liferay.knowledgebase.service.persistence.KBArticleExportActionableDynamicQuery) KBCommentExportActionableDynamicQuery(com.liferay.knowledgebase.service.persistence.KBCommentExportActionableDynamicQuery) ActionableDynamicQuery(com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery) KBArticleExportActionableDynamicQuery(com.liferay.knowledgebase.service.persistence.KBArticleExportActionableDynamicQuery)

Example 19 with ActionableDynamicQuery

use of com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery in project liferay-blade-samples by liferay.

the class FooLocalServiceBaseImpl method getActionableDynamicQuery.

@Override
public ActionableDynamicQuery getActionableDynamicQuery() {
    ActionableDynamicQuery actionableDynamicQuery = new DefaultActionableDynamicQuery();
    actionableDynamicQuery.setBaseLocalService(fooLocalService);
    actionableDynamicQuery.setClassLoader(getClassLoader());
    actionableDynamicQuery.setModelClass(Foo.class);
    actionableDynamicQuery.setPrimaryKeyPropertyName("fooId");
    return actionableDynamicQuery;
}
Also used : DefaultActionableDynamicQuery(com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery) DefaultActionableDynamicQuery(com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery) ExportActionableDynamicQuery(com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery) IndexableActionableDynamicQuery(com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery) ActionableDynamicQuery(com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery)

Example 20 with ActionableDynamicQuery

use of com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery in project liferay-blade-samples by liferay.

the class RegionLocalServiceBaseImpl method getActionableDynamicQuery.

@Override
public ActionableDynamicQuery getActionableDynamicQuery() {
    ActionableDynamicQuery actionableDynamicQuery = new DefaultActionableDynamicQuery();
    actionableDynamicQuery.setBaseLocalService(regionLocalService);
    actionableDynamicQuery.setClassLoader(getClassLoader());
    actionableDynamicQuery.setModelClass(Region.class);
    actionableDynamicQuery.setPrimaryKeyPropertyName("regionId");
    return actionableDynamicQuery;
}
Also used : DefaultActionableDynamicQuery(com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery) DefaultActionableDynamicQuery(com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery) IndexableActionableDynamicQuery(com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery) ActionableDynamicQuery(com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery)

Aggregations

ActionableDynamicQuery (com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery)21 DefaultActionableDynamicQuery (com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery)6 IndexableActionableDynamicQuery (com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery)6 DynamicQuery (com.liferay.portal.kernel.dao.orm.DynamicQuery)4 Document (com.liferay.portal.kernel.search.Document)4 IntegerWrapper (com.liferay.portal.kernel.util.IntegerWrapper)4 Test (org.junit.Test)4 KBArticleExportActionableDynamicQuery (com.liferay.knowledgebase.service.persistence.KBArticleExportActionableDynamicQuery)3 KBCommentExportActionableDynamicQuery (com.liferay.knowledgebase.service.persistence.KBCommentExportActionableDynamicQuery)3 KBTemplateExportActionableDynamicQuery (com.liferay.knowledgebase.service.persistence.KBTemplateExportActionableDynamicQuery)3 Element (com.liferay.portal.kernel.xml.Element)3 ArrayList (java.util.ArrayList)3 GadgetExportActionableDynamicQuery (com.liferay.opensocial.service.persistence.GadgetExportActionableDynamicQuery)2 AlbumExportActionableDynamicQuery (org.liferay.jukebox.service.persistence.AlbumExportActionableDynamicQuery)2 ArtistExportActionableDynamicQuery (org.liferay.jukebox.service.persistence.ArtistExportActionableDynamicQuery)2 Foo (com.liferay.blade.samples.servicebuilder.model.Foo)1 KBArticle (com.liferay.knowledgebase.model.KBArticle)1 KBArticleActionableDynamicQuery (com.liferay.knowledgebase.service.persistence.KBArticleActionableDynamicQuery)1 KBArticleVersionComparator (com.liferay.knowledgebase.util.comparator.KBArticleVersionComparator)1 ExportActionableDynamicQuery (com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery)1