All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liferay.portlet.dynamicdatamapping.service.persistence.DDMTemplateUtil Maven / Gradle / Ivy

Go to download

Contains interfaces for the portal services. Interfaces are only loaded by the global class loader and are shared by all plugins.

There is a newer version: 7.0.0-nightly
Show newest version
/**
 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.liferay.portlet.dynamicdatamapping.service.persistence;

import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
import com.liferay.portal.kernel.dao.orm.DynamicQuery;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.util.OrderByComparator;
import com.liferay.portal.kernel.util.ReferenceRegistry;
import com.liferay.portal.service.ServiceContext;

import com.liferay.portlet.dynamicdatamapping.model.DDMTemplate;

import java.util.List;

/**
 * The persistence utility for the d d m template service. This utility wraps {@link DDMTemplatePersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
 *
 * 

* Caching information and settings can be found in portal.properties *

* * @author Brian Wing Shun Chan * @see DDMTemplatePersistence * @see DDMTemplatePersistenceImpl * @generated */ public class DDMTemplateUtil { /* * NOTE FOR DEVELOPERS: * * Never modify this class directly. Modify service.xml and rerun ServiceBuilder to regenerate this class. */ /** * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() */ public static void clearCache() { getPersistence().clearCache(); } /** * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) */ public static void clearCache(DDMTemplate ddmTemplate) { getPersistence().clearCache(ddmTemplate); } /** * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) */ public static long countWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException { return getPersistence().countWithDynamicQuery(dynamicQuery); } /** * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) */ public static List findWithDynamicQuery( DynamicQuery dynamicQuery) throws SystemException { return getPersistence().findWithDynamicQuery(dynamicQuery); } /** * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) */ public static List findWithDynamicQuery( DynamicQuery dynamicQuery, int start, int end) throws SystemException { return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); } /** * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) */ public static List findWithDynamicQuery( DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException { return getPersistence() .findWithDynamicQuery(dynamicQuery, start, end, orderByComparator); } /** * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel) */ public static DDMTemplate update(DDMTemplate ddmTemplate) throws SystemException { return getPersistence().update(ddmTemplate); } /** * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) */ public static DDMTemplate update(DDMTemplate ddmTemplate, ServiceContext serviceContext) throws SystemException { return getPersistence().update(ddmTemplate, serviceContext); } /** * Returns all the d d m templates where uuid = ?. * * @param uuid the uuid * @return the matching d d m templates * @throws SystemException if a system exception occurred */ public static java.util.List findByUuid( java.lang.String uuid) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByUuid(uuid); } /** * Returns a range of all the d d m templates where uuid = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param uuid the uuid * @param start the lower bound of the range of d d m templates * @param end the upper bound of the range of d d m templates (not inclusive) * @return the range of matching d d m templates * @throws SystemException if a system exception occurred */ public static java.util.List findByUuid( java.lang.String uuid, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByUuid(uuid, start, end); } /** * Returns an ordered range of all the d d m templates where uuid = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param uuid the uuid * @param start the lower bound of the range of d d m templates * @param end the upper bound of the range of d d m templates (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching d d m templates * @throws SystemException if a system exception occurred */ public static java.util.List findByUuid( java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByUuid(uuid, start, end, orderByComparator); } /** * Returns the first d d m template in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching d d m template * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByUuid_First( java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence().findByUuid_First(uuid, orderByComparator); } /** * Returns the first d d m template in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching d d m template, or null if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByUuid_First( java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().fetchByUuid_First(uuid, orderByComparator); } /** * Returns the last d d m template in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching d d m template * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByUuid_Last( java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence().findByUuid_Last(uuid, orderByComparator); } /** * Returns the last d d m template in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching d d m template, or null if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByUuid_Last( java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().fetchByUuid_Last(uuid, orderByComparator); } /** * Returns the d d m templates before and after the current d d m template in the ordered set where uuid = ?. * * @param templateId the primary key of the current d d m template * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next d d m template * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByUuid_PrevAndNext( long templateId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence() .findByUuid_PrevAndNext(templateId, uuid, orderByComparator); } /** * Removes all the d d m templates where uuid = ? from the database. * * @param uuid the uuid * @throws SystemException if a system exception occurred */ public static void removeByUuid(java.lang.String uuid) throws com.liferay.portal.kernel.exception.SystemException { getPersistence().removeByUuid(uuid); } /** * Returns the number of d d m templates where uuid = ?. * * @param uuid the uuid * @return the number of matching d d m templates * @throws SystemException if a system exception occurred */ public static int countByUuid(java.lang.String uuid) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countByUuid(uuid); } /** * Returns the d d m template where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException} if it could not be found. * * @param uuid the uuid * @param groupId the group ID * @return the matching d d m template * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByUUID_G( java.lang.String uuid, long groupId) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence().findByUUID_G(uuid, groupId); } /** * Returns the d d m template where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache. * * @param uuid the uuid * @param groupId the group ID * @return the matching d d m template, or null if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByUUID_G( java.lang.String uuid, long groupId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().fetchByUUID_G(uuid, groupId); } /** * Returns the d d m template where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache. * * @param uuid the uuid * @param groupId the group ID * @param retrieveFromCache whether to use the finder cache * @return the matching d d m template, or null if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByUUID_G( java.lang.String uuid, long groupId, boolean retrieveFromCache) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache); } /** * Removes the d d m template where uuid = ? and groupId = ? from the database. * * @param uuid the uuid * @param groupId the group ID * @return the d d m template that was removed * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate removeByUUID_G( java.lang.String uuid, long groupId) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence().removeByUUID_G(uuid, groupId); } /** * Returns the number of d d m templates where uuid = ? and groupId = ?. * * @param uuid the uuid * @param groupId the group ID * @return the number of matching d d m templates * @throws SystemException if a system exception occurred */ public static int countByUUID_G(java.lang.String uuid, long groupId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countByUUID_G(uuid, groupId); } /** * Returns all the d d m templates where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the matching d d m templates * @throws SystemException if a system exception occurred */ public static java.util.List findByUuid_C( java.lang.String uuid, long companyId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByUuid_C(uuid, companyId); } /** * Returns a range of all the d d m templates where uuid = ? and companyId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of d d m templates * @param end the upper bound of the range of d d m templates (not inclusive) * @return the range of matching d d m templates * @throws SystemException if a system exception occurred */ public static java.util.List findByUuid_C( java.lang.String uuid, long companyId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByUuid_C(uuid, companyId, start, end); } /** * Returns an ordered range of all the d d m templates where uuid = ? and companyId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of d d m templates * @param end the upper bound of the range of d d m templates (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching d d m templates * @throws SystemException if a system exception occurred */ public static java.util.List findByUuid_C( java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByUuid_C(uuid, companyId, start, end, orderByComparator); } /** * Returns the first d d m template in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching d d m template * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByUuid_C_First( java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence() .findByUuid_C_First(uuid, companyId, orderByComparator); } /** * Returns the first d d m template in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching d d m template, or null if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByUuid_C_First( java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByUuid_C_First(uuid, companyId, orderByComparator); } /** * Returns the last d d m template in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching d d m template * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByUuid_C_Last( java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence() .findByUuid_C_Last(uuid, companyId, orderByComparator); } /** * Returns the last d d m template in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching d d m template, or null if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByUuid_C_Last( java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByUuid_C_Last(uuid, companyId, orderByComparator); } /** * Returns the d d m templates before and after the current d d m template in the ordered set where uuid = ? and companyId = ?. * * @param templateId the primary key of the current d d m template * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next d d m template * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByUuid_C_PrevAndNext( long templateId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence() .findByUuid_C_PrevAndNext(templateId, uuid, companyId, orderByComparator); } /** * Removes all the d d m templates where uuid = ? and companyId = ? from the database. * * @param uuid the uuid * @param companyId the company ID * @throws SystemException if a system exception occurred */ public static void removeByUuid_C(java.lang.String uuid, long companyId) throws com.liferay.portal.kernel.exception.SystemException { getPersistence().removeByUuid_C(uuid, companyId); } /** * Returns the number of d d m templates where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the number of matching d d m templates * @throws SystemException if a system exception occurred */ public static int countByUuid_C(java.lang.String uuid, long companyId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countByUuid_C(uuid, companyId); } /** * Returns all the d d m templates where groupId = ?. * * @param groupId the group ID * @return the matching d d m templates * @throws SystemException if a system exception occurred */ public static java.util.List findByGroupId( long groupId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByGroupId(groupId); } /** * Returns a range of all the d d m templates where groupId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param groupId the group ID * @param start the lower bound of the range of d d m templates * @param end the upper bound of the range of d d m templates (not inclusive) * @return the range of matching d d m templates * @throws SystemException if a system exception occurred */ public static java.util.List findByGroupId( long groupId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByGroupId(groupId, start, end); } /** * Returns an ordered range of all the d d m templates where groupId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param groupId the group ID * @param start the lower bound of the range of d d m templates * @param end the upper bound of the range of d d m templates (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching d d m templates * @throws SystemException if a system exception occurred */ public static java.util.List findByGroupId( long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByGroupId(groupId, start, end, orderByComparator); } /** * Returns the first d d m template in the ordered set where groupId = ?. * * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching d d m template * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByGroupId_First( long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence().findByGroupId_First(groupId, orderByComparator); } /** * Returns the first d d m template in the ordered set where groupId = ?. * * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching d d m template, or null if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByGroupId_First( long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().fetchByGroupId_First(groupId, orderByComparator); } /** * Returns the last d d m template in the ordered set where groupId = ?. * * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching d d m template * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByGroupId_Last( long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence().findByGroupId_Last(groupId, orderByComparator); } /** * Returns the last d d m template in the ordered set where groupId = ?. * * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching d d m template, or null if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByGroupId_Last( long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().fetchByGroupId_Last(groupId, orderByComparator); } /** * Returns the d d m templates before and after the current d d m template in the ordered set where groupId = ?. * * @param templateId the primary key of the current d d m template * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next d d m template * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByGroupId_PrevAndNext( long templateId, long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence() .findByGroupId_PrevAndNext(templateId, groupId, orderByComparator); } /** * Returns all the d d m templates that the user has permission to view where groupId = ?. * * @param groupId the group ID * @return the matching d d m templates that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List filterFindByGroupId( long groupId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().filterFindByGroupId(groupId); } /** * Returns a range of all the d d m templates that the user has permission to view where groupId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param groupId the group ID * @param start the lower bound of the range of d d m templates * @param end the upper bound of the range of d d m templates (not inclusive) * @return the range of matching d d m templates that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List filterFindByGroupId( long groupId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().filterFindByGroupId(groupId, start, end); } /** * Returns an ordered range of all the d d m templates that the user has permissions to view where groupId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param groupId the group ID * @param start the lower bound of the range of d d m templates * @param end the upper bound of the range of d d m templates (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching d d m templates that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List filterFindByGroupId( long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .filterFindByGroupId(groupId, start, end, orderByComparator); } /** * Returns the d d m templates before and after the current d d m template in the ordered set of d d m templates that the user has permission to view where groupId = ?. * * @param templateId the primary key of the current d d m template * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next d d m template * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] filterFindByGroupId_PrevAndNext( long templateId, long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence() .filterFindByGroupId_PrevAndNext(templateId, groupId, orderByComparator); } /** * Removes all the d d m templates where groupId = ? from the database. * * @param groupId the group ID * @throws SystemException if a system exception occurred */ public static void removeByGroupId(long groupId) throws com.liferay.portal.kernel.exception.SystemException { getPersistence().removeByGroupId(groupId); } /** * Returns the number of d d m templates where groupId = ?. * * @param groupId the group ID * @return the number of matching d d m templates * @throws SystemException if a system exception occurred */ public static int countByGroupId(long groupId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countByGroupId(groupId); } /** * Returns the number of d d m templates that the user has permission to view where groupId = ?. * * @param groupId the group ID * @return the number of matching d d m templates that the user has permission to view * @throws SystemException if a system exception occurred */ public static int filterCountByGroupId(long groupId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().filterCountByGroupId(groupId); } /** * Returns all the d d m templates where classPK = ?. * * @param classPK the class p k * @return the matching d d m templates * @throws SystemException if a system exception occurred */ public static java.util.List findByClassPK( long classPK) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByClassPK(classPK); } /** * Returns a range of all the d d m templates where classPK = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param classPK the class p k * @param start the lower bound of the range of d d m templates * @param end the upper bound of the range of d d m templates (not inclusive) * @return the range of matching d d m templates * @throws SystemException if a system exception occurred */ public static java.util.List findByClassPK( long classPK, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByClassPK(classPK, start, end); } /** * Returns an ordered range of all the d d m templates where classPK = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param classPK the class p k * @param start the lower bound of the range of d d m templates * @param end the upper bound of the range of d d m templates (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching d d m templates * @throws SystemException if a system exception occurred */ public static java.util.List findByClassPK( long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByClassPK(classPK, start, end, orderByComparator); } /** * Returns the first d d m template in the ordered set where classPK = ?. * * @param classPK the class p k * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching d d m template * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByClassPK_First( long classPK, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence().findByClassPK_First(classPK, orderByComparator); } /** * Returns the first d d m template in the ordered set where classPK = ?. * * @param classPK the class p k * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching d d m template, or null if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByClassPK_First( long classPK, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().fetchByClassPK_First(classPK, orderByComparator); } /** * Returns the last d d m template in the ordered set where classPK = ?. * * @param classPK the class p k * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching d d m template * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByClassPK_Last( long classPK, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence().findByClassPK_Last(classPK, orderByComparator); } /** * Returns the last d d m template in the ordered set where classPK = ?. * * @param classPK the class p k * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching d d m template, or null if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByClassPK_Last( long classPK, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().fetchByClassPK_Last(classPK, orderByComparator); } /** * Returns the d d m templates before and after the current d d m template in the ordered set where classPK = ?. * * @param templateId the primary key of the current d d m template * @param classPK the class p k * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next d d m template * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByClassPK_PrevAndNext( long templateId, long classPK, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence() .findByClassPK_PrevAndNext(templateId, classPK, orderByComparator); } /** * Removes all the d d m templates where classPK = ? from the database. * * @param classPK the class p k * @throws SystemException if a system exception occurred */ public static void removeByClassPK(long classPK) throws com.liferay.portal.kernel.exception.SystemException { getPersistence().removeByClassPK(classPK); } /** * Returns the number of d d m templates where classPK = ?. * * @param classPK the class p k * @return the number of matching d d m templates * @throws SystemException if a system exception occurred */ public static int countByClassPK(long classPK) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countByClassPK(classPK); } /** * Returns all the d d m templates where templateKey = ?. * * @param templateKey the template key * @return the matching d d m templates * @throws SystemException if a system exception occurred */ public static java.util.List findByTemplateKey( java.lang.String templateKey) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByTemplateKey(templateKey); } /** * Returns a range of all the d d m templates where templateKey = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param templateKey the template key * @param start the lower bound of the range of d d m templates * @param end the upper bound of the range of d d m templates (not inclusive) * @return the range of matching d d m templates * @throws SystemException if a system exception occurred */ public static java.util.List findByTemplateKey( java.lang.String templateKey, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByTemplateKey(templateKey, start, end); } /** * Returns an ordered range of all the d d m templates where templateKey = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param templateKey the template key * @param start the lower bound of the range of d d m templates * @param end the upper bound of the range of d d m templates (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching d d m templates * @throws SystemException if a system exception occurred */ public static java.util.List findByTemplateKey( java.lang.String templateKey, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByTemplateKey(templateKey, start, end, orderByComparator); } /** * Returns the first d d m template in the ordered set where templateKey = ?. * * @param templateKey the template key * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching d d m template * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByTemplateKey_First( java.lang.String templateKey, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence() .findByTemplateKey_First(templateKey, orderByComparator); } /** * Returns the first d d m template in the ordered set where templateKey = ?. * * @param templateKey the template key * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching d d m template, or null if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByTemplateKey_First( java.lang.String templateKey, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByTemplateKey_First(templateKey, orderByComparator); } /** * Returns the last d d m template in the ordered set where templateKey = ?. * * @param templateKey the template key * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching d d m template * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByTemplateKey_Last( java.lang.String templateKey, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence() .findByTemplateKey_Last(templateKey, orderByComparator); } /** * Returns the last d d m template in the ordered set where templateKey = ?. * * @param templateKey the template key * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching d d m template, or null if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByTemplateKey_Last( java.lang.String templateKey, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByTemplateKey_Last(templateKey, orderByComparator); } /** * Returns the d d m templates before and after the current d d m template in the ordered set where templateKey = ?. * * @param templateId the primary key of the current d d m template * @param templateKey the template key * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next d d m template * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByTemplateKey_PrevAndNext( long templateId, java.lang.String templateKey, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence() .findByTemplateKey_PrevAndNext(templateId, templateKey, orderByComparator); } /** * Removes all the d d m templates where templateKey = ? from the database. * * @param templateKey the template key * @throws SystemException if a system exception occurred */ public static void removeByTemplateKey(java.lang.String templateKey) throws com.liferay.portal.kernel.exception.SystemException { getPersistence().removeByTemplateKey(templateKey); } /** * Returns the number of d d m templates where templateKey = ?. * * @param templateKey the template key * @return the number of matching d d m templates * @throws SystemException if a system exception occurred */ public static int countByTemplateKey(java.lang.String templateKey) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countByTemplateKey(templateKey); } /** * Returns all the d d m templates where type = ?. * * @param type the type * @return the matching d d m templates * @throws SystemException if a system exception occurred */ public static java.util.List findByType( java.lang.String type) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByType(type); } /** * Returns a range of all the d d m templates where type = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param type the type * @param start the lower bound of the range of d d m templates * @param end the upper bound of the range of d d m templates (not inclusive) * @return the range of matching d d m templates * @throws SystemException if a system exception occurred */ public static java.util.List findByType( java.lang.String type, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByType(type, start, end); } /** * Returns an ordered range of all the d d m templates where type = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param type the type * @param start the lower bound of the range of d d m templates * @param end the upper bound of the range of d d m templates (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching d d m templates * @throws SystemException if a system exception occurred */ public static java.util.List findByType( java.lang.String type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByType(type, start, end, orderByComparator); } /** * Returns the first d d m template in the ordered set where type = ?. * * @param type the type * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching d d m template * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByType_First( java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence().findByType_First(type, orderByComparator); } /** * Returns the first d d m template in the ordered set where type = ?. * * @param type the type * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching d d m template, or null if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByType_First( java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().fetchByType_First(type, orderByComparator); } /** * Returns the last d d m template in the ordered set where type = ?. * * @param type the type * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching d d m template * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByType_Last( java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence().findByType_Last(type, orderByComparator); } /** * Returns the last d d m template in the ordered set where type = ?. * * @param type the type * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching d d m template, or null if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByType_Last( java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().fetchByType_Last(type, orderByComparator); } /** * Returns the d d m templates before and after the current d d m template in the ordered set where type = ?. * * @param templateId the primary key of the current d d m template * @param type the type * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next d d m template * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByType_PrevAndNext( long templateId, java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence() .findByType_PrevAndNext(templateId, type, orderByComparator); } /** * Removes all the d d m templates where type = ? from the database. * * @param type the type * @throws SystemException if a system exception occurred */ public static void removeByType(java.lang.String type) throws com.liferay.portal.kernel.exception.SystemException { getPersistence().removeByType(type); } /** * Returns the number of d d m templates where type = ?. * * @param type the type * @return the number of matching d d m templates * @throws SystemException if a system exception occurred */ public static int countByType(java.lang.String type) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countByType(type); } /** * Returns all the d d m templates where language = ?. * * @param language the language * @return the matching d d m templates * @throws SystemException if a system exception occurred */ public static java.util.List findByLanguage( java.lang.String language) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByLanguage(language); } /** * Returns a range of all the d d m templates where language = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param language the language * @param start the lower bound of the range of d d m templates * @param end the upper bound of the range of d d m templates (not inclusive) * @return the range of matching d d m templates * @throws SystemException if a system exception occurred */ public static java.util.List findByLanguage( java.lang.String language, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByLanguage(language, start, end); } /** * Returns an ordered range of all the d d m templates where language = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param language the language * @param start the lower bound of the range of d d m templates * @param end the upper bound of the range of d d m templates (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching d d m templates * @throws SystemException if a system exception occurred */ public static java.util.List findByLanguage( java.lang.String language, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByLanguage(language, start, end, orderByComparator); } /** * Returns the first d d m template in the ordered set where language = ?. * * @param language the language * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching d d m template * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByLanguage_First( java.lang.String language, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence().findByLanguage_First(language, orderByComparator); } /** * Returns the first d d m template in the ordered set where language = ?. * * @param language the language * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching d d m template, or null if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByLanguage_First( java.lang.String language, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByLanguage_First(language, orderByComparator); } /** * Returns the last d d m template in the ordered set where language = ?. * * @param language the language * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching d d m template * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByLanguage_Last( java.lang.String language, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence().findByLanguage_Last(language, orderByComparator); } /** * Returns the last d d m template in the ordered set where language = ?. * * @param language the language * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching d d m template, or null if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByLanguage_Last( java.lang.String language, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().fetchByLanguage_Last(language, orderByComparator); } /** * Returns the d d m templates before and after the current d d m template in the ordered set where language = ?. * * @param templateId the primary key of the current d d m template * @param language the language * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next d d m template * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByLanguage_PrevAndNext( long templateId, java.lang.String language, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence() .findByLanguage_PrevAndNext(templateId, language, orderByComparator); } /** * Removes all the d d m templates where language = ? from the database. * * @param language the language * @throws SystemException if a system exception occurred */ public static void removeByLanguage(java.lang.String language) throws com.liferay.portal.kernel.exception.SystemException { getPersistence().removeByLanguage(language); } /** * Returns the number of d d m templates where language = ?. * * @param language the language * @return the number of matching d d m templates * @throws SystemException if a system exception occurred */ public static int countByLanguage(java.lang.String language) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countByLanguage(language); } /** * Returns the d d m template where smallImageId = ? or throws a {@link com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException} if it could not be found. * * @param smallImageId the small image ID * @return the matching d d m template * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findBySmallImageId( long smallImageId) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence().findBySmallImageId(smallImageId); } /** * Returns the d d m template where smallImageId = ? or returns null if it could not be found. Uses the finder cache. * * @param smallImageId the small image ID * @return the matching d d m template, or null if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchBySmallImageId( long smallImageId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().fetchBySmallImageId(smallImageId); } /** * Returns the d d m template where smallImageId = ? or returns null if it could not be found, optionally using the finder cache. * * @param smallImageId the small image ID * @param retrieveFromCache whether to use the finder cache * @return the matching d d m template, or null if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchBySmallImageId( long smallImageId, boolean retrieveFromCache) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchBySmallImageId(smallImageId, retrieveFromCache); } /** * Removes the d d m template where smallImageId = ? from the database. * * @param smallImageId the small image ID * @return the d d m template that was removed * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate removeBySmallImageId( long smallImageId) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence().removeBySmallImageId(smallImageId); } /** * Returns the number of d d m templates where smallImageId = ?. * * @param smallImageId the small image ID * @return the number of matching d d m templates * @throws SystemException if a system exception occurred */ public static int countBySmallImageId(long smallImageId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countBySmallImageId(smallImageId); } /** * Returns all the d d m templates where groupId = ? and classNameId = ?. * * @param groupId the group ID * @param classNameId the class name ID * @return the matching d d m templates * @throws SystemException if a system exception occurred */ public static java.util.List findByG_C( long groupId, long classNameId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByG_C(groupId, classNameId); } /** * Returns a range of all the d d m templates where groupId = ? and classNameId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param groupId the group ID * @param classNameId the class name ID * @param start the lower bound of the range of d d m templates * @param end the upper bound of the range of d d m templates (not inclusive) * @return the range of matching d d m templates * @throws SystemException if a system exception occurred */ public static java.util.List findByG_C( long groupId, long classNameId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByG_C(groupId, classNameId, start, end); } /** * Returns an ordered range of all the d d m templates where groupId = ? and classNameId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param groupId the group ID * @param classNameId the class name ID * @param start the lower bound of the range of d d m templates * @param end the upper bound of the range of d d m templates (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching d d m templates * @throws SystemException if a system exception occurred */ public static java.util.List findByG_C( long groupId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByG_C(groupId, classNameId, start, end, orderByComparator); } /** * Returns the first d d m template in the ordered set where groupId = ? and classNameId = ?. * * @param groupId the group ID * @param classNameId the class name ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching d d m template * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_C_First( long groupId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence() .findByG_C_First(groupId, classNameId, orderByComparator); } /** * Returns the first d d m template in the ordered set where groupId = ? and classNameId = ?. * * @param groupId the group ID * @param classNameId the class name ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching d d m template, or null if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_First( long groupId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByG_C_First(groupId, classNameId, orderByComparator); } /** * Returns the last d d m template in the ordered set where groupId = ? and classNameId = ?. * * @param groupId the group ID * @param classNameId the class name ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching d d m template * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_C_Last( long groupId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence() .findByG_C_Last(groupId, classNameId, orderByComparator); } /** * Returns the last d d m template in the ordered set where groupId = ? and classNameId = ?. * * @param groupId the group ID * @param classNameId the class name ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching d d m template, or null if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_Last( long groupId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByG_C_Last(groupId, classNameId, orderByComparator); } /** * Returns the d d m templates before and after the current d d m template in the ordered set where groupId = ? and classNameId = ?. * * @param templateId the primary key of the current d d m template * @param groupId the group ID * @param classNameId the class name ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next d d m template * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByG_C_PrevAndNext( long templateId, long groupId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence() .findByG_C_PrevAndNext(templateId, groupId, classNameId, orderByComparator); } /** * Returns all the d d m templates that the user has permission to view where groupId = ? and classNameId = ?. * * @param groupId the group ID * @param classNameId the class name ID * @return the matching d d m templates that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List filterFindByG_C( long groupId, long classNameId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().filterFindByG_C(groupId, classNameId); } /** * Returns a range of all the d d m templates that the user has permission to view where groupId = ? and classNameId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param groupId the group ID * @param classNameId the class name ID * @param start the lower bound of the range of d d m templates * @param end the upper bound of the range of d d m templates (not inclusive) * @return the range of matching d d m templates that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List filterFindByG_C( long groupId, long classNameId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().filterFindByG_C(groupId, classNameId, start, end); } /** * Returns an ordered range of all the d d m templates that the user has permissions to view where groupId = ? and classNameId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param groupId the group ID * @param classNameId the class name ID * @param start the lower bound of the range of d d m templates * @param end the upper bound of the range of d d m templates (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching d d m templates that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List filterFindByG_C( long groupId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .filterFindByG_C(groupId, classNameId, start, end, orderByComparator); } /** * Returns the d d m templates before and after the current d d m template in the ordered set of d d m templates that the user has permission to view where groupId = ? and classNameId = ?. * * @param templateId the primary key of the current d d m template * @param groupId the group ID * @param classNameId the class name ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next d d m template * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] filterFindByG_C_PrevAndNext( long templateId, long groupId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence() .filterFindByG_C_PrevAndNext(templateId, groupId, classNameId, orderByComparator); } /** * Removes all the d d m templates where groupId = ? and classNameId = ? from the database. * * @param groupId the group ID * @param classNameId the class name ID * @throws SystemException if a system exception occurred */ public static void removeByG_C(long groupId, long classNameId) throws com.liferay.portal.kernel.exception.SystemException { getPersistence().removeByG_C(groupId, classNameId); } /** * Returns the number of d d m templates where groupId = ? and classNameId = ?. * * @param groupId the group ID * @param classNameId the class name ID * @return the number of matching d d m templates * @throws SystemException if a system exception occurred */ public static int countByG_C(long groupId, long classNameId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countByG_C(groupId, classNameId); } /** * Returns the number of d d m templates that the user has permission to view where groupId = ? and classNameId = ?. * * @param groupId the group ID * @param classNameId the class name ID * @return the number of matching d d m templates that the user has permission to view * @throws SystemException if a system exception occurred */ public static int filterCountByG_C(long groupId, long classNameId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().filterCountByG_C(groupId, classNameId); } /** * Returns all the d d m templates where groupId = ? and classPK = ?. * * @param groupId the group ID * @param classPK the class p k * @return the matching d d m templates * @throws SystemException if a system exception occurred */ public static java.util.List findByG_CPK( long groupId, long classPK) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByG_CPK(groupId, classPK); } /** * Returns a range of all the d d m templates where groupId = ? and classPK = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param groupId the group ID * @param classPK the class p k * @param start the lower bound of the range of d d m templates * @param end the upper bound of the range of d d m templates (not inclusive) * @return the range of matching d d m templates * @throws SystemException if a system exception occurred */ public static java.util.List findByG_CPK( long groupId, long classPK, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByG_CPK(groupId, classPK, start, end); } /** * Returns an ordered range of all the d d m templates where groupId = ? and classPK = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param groupId the group ID * @param classPK the class p k * @param start the lower bound of the range of d d m templates * @param end the upper bound of the range of d d m templates (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching d d m templates * @throws SystemException if a system exception occurred */ public static java.util.List findByG_CPK( long groupId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByG_CPK(groupId, classPK, start, end, orderByComparator); } /** * Returns the first d d m template in the ordered set where groupId = ? and classPK = ?. * * @param groupId the group ID * @param classPK the class p k * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching d d m template * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_CPK_First( long groupId, long classPK, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence() .findByG_CPK_First(groupId, classPK, orderByComparator); } /** * Returns the first d d m template in the ordered set where groupId = ? and classPK = ?. * * @param groupId the group ID * @param classPK the class p k * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching d d m template, or null if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_CPK_First( long groupId, long classPK, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByG_CPK_First(groupId, classPK, orderByComparator); } /** * Returns the last d d m template in the ordered set where groupId = ? and classPK = ?. * * @param groupId the group ID * @param classPK the class p k * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching d d m template * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_CPK_Last( long groupId, long classPK, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence() .findByG_CPK_Last(groupId, classPK, orderByComparator); } /** * Returns the last d d m template in the ordered set where groupId = ? and classPK = ?. * * @param groupId the group ID * @param classPK the class p k * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching d d m template, or null if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_CPK_Last( long groupId, long classPK, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByG_CPK_Last(groupId, classPK, orderByComparator); } /** * Returns the d d m templates before and after the current d d m template in the ordered set where groupId = ? and classPK = ?. * * @param templateId the primary key of the current d d m template * @param groupId the group ID * @param classPK the class p k * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next d d m template * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByG_CPK_PrevAndNext( long templateId, long groupId, long classPK, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence() .findByG_CPK_PrevAndNext(templateId, groupId, classPK, orderByComparator); } /** * Returns all the d d m templates that the user has permission to view where groupId = ? and classPK = ?. * * @param groupId the group ID * @param classPK the class p k * @return the matching d d m templates that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List filterFindByG_CPK( long groupId, long classPK) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().filterFindByG_CPK(groupId, classPK); } /** * Returns a range of all the d d m templates that the user has permission to view where groupId = ? and classPK = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param groupId the group ID * @param classPK the class p k * @param start the lower bound of the range of d d m templates * @param end the upper bound of the range of d d m templates (not inclusive) * @return the range of matching d d m templates that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List filterFindByG_CPK( long groupId, long classPK, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().filterFindByG_CPK(groupId, classPK, start, end); } /** * Returns an ordered range of all the d d m templates that the user has permissions to view where groupId = ? and classPK = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param groupId the group ID * @param classPK the class p k * @param start the lower bound of the range of d d m templates * @param end the upper bound of the range of d d m templates (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching d d m templates that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List filterFindByG_CPK( long groupId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .filterFindByG_CPK(groupId, classPK, start, end, orderByComparator); } /** * Returns the d d m templates before and after the current d d m template in the ordered set of d d m templates that the user has permission to view where groupId = ? and classPK = ?. * * @param templateId the primary key of the current d d m template * @param groupId the group ID * @param classPK the class p k * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next d d m template * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] filterFindByG_CPK_PrevAndNext( long templateId, long groupId, long classPK, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence() .filterFindByG_CPK_PrevAndNext(templateId, groupId, classPK, orderByComparator); } /** * Returns all the d d m templates that the user has permission to view where groupId = any ? and classPK = ?. * * @param groupIds the group IDs * @param classPK the class p k * @return the matching d d m templates that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List filterFindByG_CPK( long[] groupIds, long classPK) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().filterFindByG_CPK(groupIds, classPK); } /** * Returns a range of all the d d m templates that the user has permission to view where groupId = any ? and classPK = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param groupIds the group IDs * @param classPK the class p k * @param start the lower bound of the range of d d m templates * @param end the upper bound of the range of d d m templates (not inclusive) * @return the range of matching d d m templates that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List filterFindByG_CPK( long[] groupIds, long classPK, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().filterFindByG_CPK(groupIds, classPK, start, end); } /** * Returns an ordered range of all the d d m templates that the user has permission to view where groupId = any ? and classPK = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param groupIds the group IDs * @param classPK the class p k * @param start the lower bound of the range of d d m templates * @param end the upper bound of the range of d d m templates (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching d d m templates that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List filterFindByG_CPK( long[] groupIds, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .filterFindByG_CPK(groupIds, classPK, start, end, orderByComparator); } /** * Returns all the d d m templates where groupId = any ? and classPK = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param groupIds the group IDs * @param classPK the class p k * @return the matching d d m templates * @throws SystemException if a system exception occurred */ public static java.util.List findByG_CPK( long[] groupIds, long classPK) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByG_CPK(groupIds, classPK); } /** * Returns a range of all the d d m templates where groupId = any ? and classPK = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param groupIds the group IDs * @param classPK the class p k * @param start the lower bound of the range of d d m templates * @param end the upper bound of the range of d d m templates (not inclusive) * @return the range of matching d d m templates * @throws SystemException if a system exception occurred */ public static java.util.List findByG_CPK( long[] groupIds, long classPK, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByG_CPK(groupIds, classPK, start, end); } /** * Returns an ordered range of all the d d m templates where groupId = any ? and classPK = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param groupIds the group IDs * @param classPK the class p k * @param start the lower bound of the range of d d m templates * @param end the upper bound of the range of d d m templates (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching d d m templates * @throws SystemException if a system exception occurred */ public static java.util.List findByG_CPK( long[] groupIds, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByG_CPK(groupIds, classPK, start, end, orderByComparator); } /** * Removes all the d d m templates where groupId = ? and classPK = ? from the database. * * @param groupId the group ID * @param classPK the class p k * @throws SystemException if a system exception occurred */ public static void removeByG_CPK(long groupId, long classPK) throws com.liferay.portal.kernel.exception.SystemException { getPersistence().removeByG_CPK(groupId, classPK); } /** * Returns the number of d d m templates where groupId = ? and classPK = ?. * * @param groupId the group ID * @param classPK the class p k * @return the number of matching d d m templates * @throws SystemException if a system exception occurred */ public static int countByG_CPK(long groupId, long classPK) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countByG_CPK(groupId, classPK); } /** * Returns the number of d d m templates where groupId = any ? and classPK = ?. * * @param groupIds the group IDs * @param classPK the class p k * @return the number of matching d d m templates * @throws SystemException if a system exception occurred */ public static int countByG_CPK(long[] groupIds, long classPK) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countByG_CPK(groupIds, classPK); } /** * Returns the number of d d m templates that the user has permission to view where groupId = ? and classPK = ?. * * @param groupId the group ID * @param classPK the class p k * @return the number of matching d d m templates that the user has permission to view * @throws SystemException if a system exception occurred */ public static int filterCountByG_CPK(long groupId, long classPK) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().filterCountByG_CPK(groupId, classPK); } /** * Returns the number of d d m templates that the user has permission to view where groupId = any ? and classPK = ?. * * @param groupIds the group IDs * @param classPK the class p k * @return the number of matching d d m templates that the user has permission to view * @throws SystemException if a system exception occurred */ public static int filterCountByG_CPK(long[] groupIds, long classPK) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().filterCountByG_CPK(groupIds, classPK); } /** * Returns all the d d m templates where groupId = ? and classNameId = ? and classPK = ?. * * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class p k * @return the matching d d m templates * @throws SystemException if a system exception occurred */ public static java.util.List findByG_C_C( long groupId, long classNameId, long classPK) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByG_C_C(groupId, classNameId, classPK); } /** * Returns a range of all the d d m templates where groupId = ? and classNameId = ? and classPK = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class p k * @param start the lower bound of the range of d d m templates * @param end the upper bound of the range of d d m templates (not inclusive) * @return the range of matching d d m templates * @throws SystemException if a system exception occurred */ public static java.util.List findByG_C_C( long groupId, long classNameId, long classPK, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByG_C_C(groupId, classNameId, classPK, start, end); } /** * Returns an ordered range of all the d d m templates where groupId = ? and classNameId = ? and classPK = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class p k * @param start the lower bound of the range of d d m templates * @param end the upper bound of the range of d d m templates (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching d d m templates * @throws SystemException if a system exception occurred */ public static java.util.List findByG_C_C( long groupId, long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByG_C_C(groupId, classNameId, classPK, start, end, orderByComparator); } /** * Returns the first d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ?. * * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class p k * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching d d m template * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_C_C_First( long groupId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence() .findByG_C_C_First(groupId, classNameId, classPK, orderByComparator); } /** * Returns the first d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ?. * * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class p k * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching d d m template, or null if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_C_First( long groupId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByG_C_C_First(groupId, classNameId, classPK, orderByComparator); } /** * Returns the last d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ?. * * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class p k * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching d d m template * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_C_C_Last( long groupId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence() .findByG_C_C_Last(groupId, classNameId, classPK, orderByComparator); } /** * Returns the last d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ?. * * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class p k * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching d d m template, or null if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_C_Last( long groupId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByG_C_C_Last(groupId, classNameId, classPK, orderByComparator); } /** * Returns the d d m templates before and after the current d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ?. * * @param templateId the primary key of the current d d m template * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class p k * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next d d m template * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByG_C_C_PrevAndNext( long templateId, long groupId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence() .findByG_C_C_PrevAndNext(templateId, groupId, classNameId, classPK, orderByComparator); } /** * Returns all the d d m templates that the user has permission to view where groupId = ? and classNameId = ? and classPK = ?. * * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class p k * @return the matching d d m templates that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List filterFindByG_C_C( long groupId, long classNameId, long classPK) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().filterFindByG_C_C(groupId, classNameId, classPK); } /** * Returns a range of all the d d m templates that the user has permission to view where groupId = ? and classNameId = ? and classPK = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class p k * @param start the lower bound of the range of d d m templates * @param end the upper bound of the range of d d m templates (not inclusive) * @return the range of matching d d m templates that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List filterFindByG_C_C( long groupId, long classNameId, long classPK, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .filterFindByG_C_C(groupId, classNameId, classPK, start, end); } /** * Returns an ordered range of all the d d m templates that the user has permissions to view where groupId = ? and classNameId = ? and classPK = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class p k * @param start the lower bound of the range of d d m templates * @param end the upper bound of the range of d d m templates (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching d d m templates that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List filterFindByG_C_C( long groupId, long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .filterFindByG_C_C(groupId, classNameId, classPK, start, end, orderByComparator); } /** * Returns the d d m templates before and after the current d d m template in the ordered set of d d m templates that the user has permission to view where groupId = ? and classNameId = ? and classPK = ?. * * @param templateId the primary key of the current d d m template * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class p k * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next d d m template * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] filterFindByG_C_C_PrevAndNext( long templateId, long groupId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence() .filterFindByG_C_C_PrevAndNext(templateId, groupId, classNameId, classPK, orderByComparator); } /** * Removes all the d d m templates where groupId = ? and classNameId = ? and classPK = ? from the database. * * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class p k * @throws SystemException if a system exception occurred */ public static void removeByG_C_C(long groupId, long classNameId, long classPK) throws com.liferay.portal.kernel.exception.SystemException { getPersistence().removeByG_C_C(groupId, classNameId, classPK); } /** * Returns the number of d d m templates where groupId = ? and classNameId = ? and classPK = ?. * * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class p k * @return the number of matching d d m templates * @throws SystemException if a system exception occurred */ public static int countByG_C_C(long groupId, long classNameId, long classPK) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countByG_C_C(groupId, classNameId, classPK); } /** * Returns the number of d d m templates that the user has permission to view where groupId = ? and classNameId = ? and classPK = ?. * * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class p k * @return the number of matching d d m templates that the user has permission to view * @throws SystemException if a system exception occurred */ public static int filterCountByG_C_C(long groupId, long classNameId, long classPK) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().filterCountByG_C_C(groupId, classNameId, classPK); } /** * Returns the d d m template where groupId = ? and classNameId = ? and templateKey = ? or throws a {@link com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException} if it could not be found. * * @param groupId the group ID * @param classNameId the class name ID * @param templateKey the template key * @return the matching d d m template * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_C_T( long groupId, long classNameId, java.lang.String templateKey) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence().findByG_C_T(groupId, classNameId, templateKey); } /** * Returns the d d m template where groupId = ? and classNameId = ? and templateKey = ? or returns null if it could not be found. Uses the finder cache. * * @param groupId the group ID * @param classNameId the class name ID * @param templateKey the template key * @return the matching d d m template, or null if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_T( long groupId, long classNameId, java.lang.String templateKey) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().fetchByG_C_T(groupId, classNameId, templateKey); } /** * Returns the d d m template where groupId = ? and classNameId = ? and templateKey = ? or returns null if it could not be found, optionally using the finder cache. * * @param groupId the group ID * @param classNameId the class name ID * @param templateKey the template key * @param retrieveFromCache whether to use the finder cache * @return the matching d d m template, or null if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_T( long groupId, long classNameId, java.lang.String templateKey, boolean retrieveFromCache) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByG_C_T(groupId, classNameId, templateKey, retrieveFromCache); } /** * Removes the d d m template where groupId = ? and classNameId = ? and templateKey = ? from the database. * * @param groupId the group ID * @param classNameId the class name ID * @param templateKey the template key * @return the d d m template that was removed * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate removeByG_C_T( long groupId, long classNameId, java.lang.String templateKey) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence().removeByG_C_T(groupId, classNameId, templateKey); } /** * Returns the number of d d m templates where groupId = ? and classNameId = ? and templateKey = ?. * * @param groupId the group ID * @param classNameId the class name ID * @param templateKey the template key * @return the number of matching d d m templates * @throws SystemException if a system exception occurred */ public static int countByG_C_T(long groupId, long classNameId, java.lang.String templateKey) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countByG_C_T(groupId, classNameId, templateKey); } /** * Returns all the d d m templates where classNameId = ? and classPK = ? and type = ?. * * @param classNameId the class name ID * @param classPK the class p k * @param type the type * @return the matching d d m templates * @throws SystemException if a system exception occurred */ public static java.util.List findByC_C_T( long classNameId, long classPK, java.lang.String type) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByC_C_T(classNameId, classPK, type); } /** * Returns a range of all the d d m templates where classNameId = ? and classPK = ? and type = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param classNameId the class name ID * @param classPK the class p k * @param type the type * @param start the lower bound of the range of d d m templates * @param end the upper bound of the range of d d m templates (not inclusive) * @return the range of matching d d m templates * @throws SystemException if a system exception occurred */ public static java.util.List findByC_C_T( long classNameId, long classPK, java.lang.String type, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByC_C_T(classNameId, classPK, type, start, end); } /** * Returns an ordered range of all the d d m templates where classNameId = ? and classPK = ? and type = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param classNameId the class name ID * @param classPK the class p k * @param type the type * @param start the lower bound of the range of d d m templates * @param end the upper bound of the range of d d m templates (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching d d m templates * @throws SystemException if a system exception occurred */ public static java.util.List findByC_C_T( long classNameId, long classPK, java.lang.String type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByC_C_T(classNameId, classPK, type, start, end, orderByComparator); } /** * Returns the first d d m template in the ordered set where classNameId = ? and classPK = ? and type = ?. * * @param classNameId the class name ID * @param classPK the class p k * @param type the type * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching d d m template * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByC_C_T_First( long classNameId, long classPK, java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence() .findByC_C_T_First(classNameId, classPK, type, orderByComparator); } /** * Returns the first d d m template in the ordered set where classNameId = ? and classPK = ? and type = ?. * * @param classNameId the class name ID * @param classPK the class p k * @param type the type * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching d d m template, or null if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByC_C_T_First( long classNameId, long classPK, java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByC_C_T_First(classNameId, classPK, type, orderByComparator); } /** * Returns the last d d m template in the ordered set where classNameId = ? and classPK = ? and type = ?. * * @param classNameId the class name ID * @param classPK the class p k * @param type the type * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching d d m template * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByC_C_T_Last( long classNameId, long classPK, java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence() .findByC_C_T_Last(classNameId, classPK, type, orderByComparator); } /** * Returns the last d d m template in the ordered set where classNameId = ? and classPK = ? and type = ?. * * @param classNameId the class name ID * @param classPK the class p k * @param type the type * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching d d m template, or null if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByC_C_T_Last( long classNameId, long classPK, java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByC_C_T_Last(classNameId, classPK, type, orderByComparator); } /** * Returns the d d m templates before and after the current d d m template in the ordered set where classNameId = ? and classPK = ? and type = ?. * * @param templateId the primary key of the current d d m template * @param classNameId the class name ID * @param classPK the class p k * @param type the type * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next d d m template * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByC_C_T_PrevAndNext( long templateId, long classNameId, long classPK, java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence() .findByC_C_T_PrevAndNext(templateId, classNameId, classPK, type, orderByComparator); } /** * Removes all the d d m templates where classNameId = ? and classPK = ? and type = ? from the database. * * @param classNameId the class name ID * @param classPK the class p k * @param type the type * @throws SystemException if a system exception occurred */ public static void removeByC_C_T(long classNameId, long classPK, java.lang.String type) throws com.liferay.portal.kernel.exception.SystemException { getPersistence().removeByC_C_T(classNameId, classPK, type); } /** * Returns the number of d d m templates where classNameId = ? and classPK = ? and type = ?. * * @param classNameId the class name ID * @param classPK the class p k * @param type the type * @return the number of matching d d m templates * @throws SystemException if a system exception occurred */ public static int countByC_C_T(long classNameId, long classPK, java.lang.String type) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countByC_C_T(classNameId, classPK, type); } /** * Returns all the d d m templates where groupId = ? and classNameId = ? and classPK = ? and type = ?. * * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class p k * @param type the type * @return the matching d d m templates * @throws SystemException if a system exception occurred */ public static java.util.List findByG_C_C_T( long groupId, long classNameId, long classPK, java.lang.String type) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByG_C_C_T(groupId, classNameId, classPK, type); } /** * Returns a range of all the d d m templates where groupId = ? and classNameId = ? and classPK = ? and type = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class p k * @param type the type * @param start the lower bound of the range of d d m templates * @param end the upper bound of the range of d d m templates (not inclusive) * @return the range of matching d d m templates * @throws SystemException if a system exception occurred */ public static java.util.List findByG_C_C_T( long groupId, long classNameId, long classPK, java.lang.String type, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByG_C_C_T(groupId, classNameId, classPK, type, start, end); } /** * Returns an ordered range of all the d d m templates where groupId = ? and classNameId = ? and classPK = ? and type = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class p k * @param type the type * @param start the lower bound of the range of d d m templates * @param end the upper bound of the range of d d m templates (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching d d m templates * @throws SystemException if a system exception occurred */ public static java.util.List findByG_C_C_T( long groupId, long classNameId, long classPK, java.lang.String type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByG_C_C_T(groupId, classNameId, classPK, type, start, end, orderByComparator); } /** * Returns the first d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ?. * * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class p k * @param type the type * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching d d m template * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_C_C_T_First( long groupId, long classNameId, long classPK, java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence() .findByG_C_C_T_First(groupId, classNameId, classPK, type, orderByComparator); } /** * Returns the first d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ?. * * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class p k * @param type the type * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching d d m template, or null if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_C_T_First( long groupId, long classNameId, long classPK, java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByG_C_C_T_First(groupId, classNameId, classPK, type, orderByComparator); } /** * Returns the last d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ?. * * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class p k * @param type the type * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching d d m template * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_C_C_T_Last( long groupId, long classNameId, long classPK, java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence() .findByG_C_C_T_Last(groupId, classNameId, classPK, type, orderByComparator); } /** * Returns the last d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ?. * * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class p k * @param type the type * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching d d m template, or null if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_C_T_Last( long groupId, long classNameId, long classPK, java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByG_C_C_T_Last(groupId, classNameId, classPK, type, orderByComparator); } /** * Returns the d d m templates before and after the current d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ?. * * @param templateId the primary key of the current d d m template * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class p k * @param type the type * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next d d m template * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByG_C_C_T_PrevAndNext( long templateId, long groupId, long classNameId, long classPK, java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence() .findByG_C_C_T_PrevAndNext(templateId, groupId, classNameId, classPK, type, orderByComparator); } /** * Returns all the d d m templates that the user has permission to view where groupId = ? and classNameId = ? and classPK = ? and type = ?. * * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class p k * @param type the type * @return the matching d d m templates that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List filterFindByG_C_C_T( long groupId, long classNameId, long classPK, java.lang.String type) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .filterFindByG_C_C_T(groupId, classNameId, classPK, type); } /** * Returns a range of all the d d m templates that the user has permission to view where groupId = ? and classNameId = ? and classPK = ? and type = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class p k * @param type the type * @param start the lower bound of the range of d d m templates * @param end the upper bound of the range of d d m templates (not inclusive) * @return the range of matching d d m templates that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List filterFindByG_C_C_T( long groupId, long classNameId, long classPK, java.lang.String type, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .filterFindByG_C_C_T(groupId, classNameId, classPK, type, start, end); } /** * Returns an ordered range of all the d d m templates that the user has permissions to view where groupId = ? and classNameId = ? and classPK = ? and type = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class p k * @param type the type * @param start the lower bound of the range of d d m templates * @param end the upper bound of the range of d d m templates (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching d d m templates that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List filterFindByG_C_C_T( long groupId, long classNameId, long classPK, java.lang.String type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .filterFindByG_C_C_T(groupId, classNameId, classPK, type, start, end, orderByComparator); } /** * Returns the d d m templates before and after the current d d m template in the ordered set of d d m templates that the user has permission to view where groupId = ? and classNameId = ? and classPK = ? and type = ?. * * @param templateId the primary key of the current d d m template * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class p k * @param type the type * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next d d m template * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] filterFindByG_C_C_T_PrevAndNext( long templateId, long groupId, long classNameId, long classPK, java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence() .filterFindByG_C_C_T_PrevAndNext(templateId, groupId, classNameId, classPK, type, orderByComparator); } /** * Removes all the d d m templates where groupId = ? and classNameId = ? and classPK = ? and type = ? from the database. * * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class p k * @param type the type * @throws SystemException if a system exception occurred */ public static void removeByG_C_C_T(long groupId, long classNameId, long classPK, java.lang.String type) throws com.liferay.portal.kernel.exception.SystemException { getPersistence().removeByG_C_C_T(groupId, classNameId, classPK, type); } /** * Returns the number of d d m templates where groupId = ? and classNameId = ? and classPK = ? and type = ?. * * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class p k * @param type the type * @return the number of matching d d m templates * @throws SystemException if a system exception occurred */ public static int countByG_C_C_T(long groupId, long classNameId, long classPK, java.lang.String type) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .countByG_C_C_T(groupId, classNameId, classPK, type); } /** * Returns the number of d d m templates that the user has permission to view where groupId = ? and classNameId = ? and classPK = ? and type = ?. * * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class p k * @param type the type * @return the number of matching d d m templates that the user has permission to view * @throws SystemException if a system exception occurred */ public static int filterCountByG_C_C_T(long groupId, long classNameId, long classPK, java.lang.String type) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .filterCountByG_C_C_T(groupId, classNameId, classPK, type); } /** * Returns all the d d m templates where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?. * * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class p k * @param type the type * @param mode the mode * @return the matching d d m templates * @throws SystemException if a system exception occurred */ public static java.util.List findByG_C_C_T_M( long groupId, long classNameId, long classPK, java.lang.String type, java.lang.String mode) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByG_C_C_T_M(groupId, classNameId, classPK, type, mode); } /** * Returns a range of all the d d m templates where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class p k * @param type the type * @param mode the mode * @param start the lower bound of the range of d d m templates * @param end the upper bound of the range of d d m templates (not inclusive) * @return the range of matching d d m templates * @throws SystemException if a system exception occurred */ public static java.util.List findByG_C_C_T_M( long groupId, long classNameId, long classPK, java.lang.String type, java.lang.String mode, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByG_C_C_T_M(groupId, classNameId, classPK, type, mode, start, end); } /** * Returns an ordered range of all the d d m templates where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class p k * @param type the type * @param mode the mode * @param start the lower bound of the range of d d m templates * @param end the upper bound of the range of d d m templates (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching d d m templates * @throws SystemException if a system exception occurred */ public static java.util.List findByG_C_C_T_M( long groupId, long classNameId, long classPK, java.lang.String type, java.lang.String mode, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByG_C_C_T_M(groupId, classNameId, classPK, type, mode, start, end, orderByComparator); } /** * Returns the first d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?. * * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class p k * @param type the type * @param mode the mode * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching d d m template * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_C_C_T_M_First( long groupId, long classNameId, long classPK, java.lang.String type, java.lang.String mode, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence() .findByG_C_C_T_M_First(groupId, classNameId, classPK, type, mode, orderByComparator); } /** * Returns the first d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?. * * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class p k * @param type the type * @param mode the mode * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching d d m template, or null if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_C_T_M_First( long groupId, long classNameId, long classPK, java.lang.String type, java.lang.String mode, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByG_C_C_T_M_First(groupId, classNameId, classPK, type, mode, orderByComparator); } /** * Returns the last d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?. * * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class p k * @param type the type * @param mode the mode * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching d d m template * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_C_C_T_M_Last( long groupId, long classNameId, long classPK, java.lang.String type, java.lang.String mode, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence() .findByG_C_C_T_M_Last(groupId, classNameId, classPK, type, mode, orderByComparator); } /** * Returns the last d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?. * * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class p k * @param type the type * @param mode the mode * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching d d m template, or null if a matching d d m template could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_C_T_M_Last( long groupId, long classNameId, long classPK, java.lang.String type, java.lang.String mode, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByG_C_C_T_M_Last(groupId, classNameId, classPK, type, mode, orderByComparator); } /** * Returns the d d m templates before and after the current d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?. * * @param templateId the primary key of the current d d m template * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class p k * @param type the type * @param mode the mode * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next d d m template * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByG_C_C_T_M_PrevAndNext( long templateId, long groupId, long classNameId, long classPK, java.lang.String type, java.lang.String mode, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence() .findByG_C_C_T_M_PrevAndNext(templateId, groupId, classNameId, classPK, type, mode, orderByComparator); } /** * Returns all the d d m templates that the user has permission to view where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?. * * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class p k * @param type the type * @param mode the mode * @return the matching d d m templates that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List filterFindByG_C_C_T_M( long groupId, long classNameId, long classPK, java.lang.String type, java.lang.String mode) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .filterFindByG_C_C_T_M(groupId, classNameId, classPK, type, mode); } /** * Returns a range of all the d d m templates that the user has permission to view where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class p k * @param type the type * @param mode the mode * @param start the lower bound of the range of d d m templates * @param end the upper bound of the range of d d m templates (not inclusive) * @return the range of matching d d m templates that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List filterFindByG_C_C_T_M( long groupId, long classNameId, long classPK, java.lang.String type, java.lang.String mode, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .filterFindByG_C_C_T_M(groupId, classNameId, classPK, type, mode, start, end); } /** * Returns an ordered range of all the d d m templates that the user has permissions to view where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class p k * @param type the type * @param mode the mode * @param start the lower bound of the range of d d m templates * @param end the upper bound of the range of d d m templates (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching d d m templates that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List filterFindByG_C_C_T_M( long groupId, long classNameId, long classPK, java.lang.String type, java.lang.String mode, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .filterFindByG_C_C_T_M(groupId, classNameId, classPK, type, mode, start, end, orderByComparator); } /** * Returns the d d m templates before and after the current d d m template in the ordered set of d d m templates that the user has permission to view where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?. * * @param templateId the primary key of the current d d m template * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class p k * @param type the type * @param mode the mode * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next d d m template * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] filterFindByG_C_C_T_M_PrevAndNext( long templateId, long groupId, long classNameId, long classPK, java.lang.String type, java.lang.String mode, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence() .filterFindByG_C_C_T_M_PrevAndNext(templateId, groupId, classNameId, classPK, type, mode, orderByComparator); } /** * Removes all the d d m templates where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ? from the database. * * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class p k * @param type the type * @param mode the mode * @throws SystemException if a system exception occurred */ public static void removeByG_C_C_T_M(long groupId, long classNameId, long classPK, java.lang.String type, java.lang.String mode) throws com.liferay.portal.kernel.exception.SystemException { getPersistence() .removeByG_C_C_T_M(groupId, classNameId, classPK, type, mode); } /** * Returns the number of d d m templates where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?. * * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class p k * @param type the type * @param mode the mode * @return the number of matching d d m templates * @throws SystemException if a system exception occurred */ public static int countByG_C_C_T_M(long groupId, long classNameId, long classPK, java.lang.String type, java.lang.String mode) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .countByG_C_C_T_M(groupId, classNameId, classPK, type, mode); } /** * Returns the number of d d m templates that the user has permission to view where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?. * * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class p k * @param type the type * @param mode the mode * @return the number of matching d d m templates that the user has permission to view * @throws SystemException if a system exception occurred */ public static int filterCountByG_C_C_T_M(long groupId, long classNameId, long classPK, java.lang.String type, java.lang.String mode) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .filterCountByG_C_C_T_M(groupId, classNameId, classPK, type, mode); } /** * Caches the d d m template in the entity cache if it is enabled. * * @param ddmTemplate the d d m template */ public static void cacheResult( com.liferay.portlet.dynamicdatamapping.model.DDMTemplate ddmTemplate) { getPersistence().cacheResult(ddmTemplate); } /** * Caches the d d m templates in the entity cache if it is enabled. * * @param ddmTemplates the d d m templates */ public static void cacheResult( java.util.List ddmTemplates) { getPersistence().cacheResult(ddmTemplates); } /** * Creates a new d d m template with the primary key. Does not add the d d m template to the database. * * @param templateId the primary key for the new d d m template * @return the new d d m template */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate create( long templateId) { return getPersistence().create(templateId); } /** * Removes the d d m template with the primary key from the database. Also notifies the appropriate model listeners. * * @param templateId the primary key of the d d m template * @return the d d m template that was removed * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate remove( long templateId) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence().remove(templateId); } public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate updateImpl( com.liferay.portlet.dynamicdatamapping.model.DDMTemplate ddmTemplate) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().updateImpl(ddmTemplate); } /** * Returns the d d m template with the primary key or throws a {@link com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException} if it could not be found. * * @param templateId the primary key of the d d m template * @return the d d m template * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByPrimaryKey( long templateId) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { return getPersistence().findByPrimaryKey(templateId); } /** * Returns the d d m template with the primary key or returns null if it could not be found. * * @param templateId the primary key of the d d m template * @return the d d m template, or null if a d d m template with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByPrimaryKey( long templateId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().fetchByPrimaryKey(templateId); } /** * Returns all the d d m templates. * * @return the d d m templates * @throws SystemException if a system exception occurred */ public static java.util.List findAll() throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findAll(); } /** * Returns a range of all the d d m templates. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param start the lower bound of the range of d d m templates * @param end the upper bound of the range of d d m templates (not inclusive) * @return the range of d d m templates * @throws SystemException if a system exception occurred */ public static java.util.List findAll( int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findAll(start, end); } /** * Returns an ordered range of all the d d m templates. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param start the lower bound of the range of d d m templates * @param end the upper bound of the range of d d m templates (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of d d m templates * @throws SystemException if a system exception occurred */ public static java.util.List findAll( int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findAll(start, end, orderByComparator); } /** * Removes all the d d m templates from the database. * * @throws SystemException if a system exception occurred */ public static void removeAll() throws com.liferay.portal.kernel.exception.SystemException { getPersistence().removeAll(); } /** * Returns the number of d d m templates. * * @return the number of d d m templates * @throws SystemException if a system exception occurred */ public static int countAll() throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countAll(); } public static DDMTemplatePersistence getPersistence() { if (_persistence == null) { _persistence = (DDMTemplatePersistence)PortalBeanLocatorUtil.locate(DDMTemplatePersistence.class.getName()); ReferenceRegistry.registerReference(DDMTemplateUtil.class, "_persistence"); } return _persistence; } /** * @deprecated As of 6.2.0 */ public void setPersistence(DDMTemplatePersistence persistence) { } private static DDMTemplatePersistence _persistence; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy