--- /dev/null
+/**
+ * Copyright (c) 2000-2012 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.pentila.entSavoie.internalMessaging.service.persistence;
+
+import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil;
+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.pentila.entSavoie.internalMessaging.model.InternalFolderMessage;
+
+import java.util.List;
+
+/**
+ * The persistence utility for the internal folder message service. This utility wraps {@link InternalFolderMessagePersistenceImpl} 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.
+ *
+ * <p>
+ * Caching information and settings can be found in <code>portal.properties</code>
+ * </p>
+ *
+ * @author Igor Barma - Mathieu Amblard
+ * @see InternalFolderMessagePersistence
+ * @see InternalFolderMessagePersistenceImpl
+ * @generated
+ */
+public class InternalFolderMessageUtil {
+ /*
+ * NOTE FOR DEVELOPERS:
+ *
+ * Never modify this class directly. Modify <code>service.xml</code> 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(InternalFolderMessage internalFolderMessage) {
+ getPersistence().clearCache(internalFolderMessage);
+ }
+
+ /**
+ * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
+ */
+ public long countWithDynamicQuery(DynamicQuery dynamicQuery)
+ throws SystemException {
+ return getPersistence().countWithDynamicQuery(dynamicQuery);
+ }
+
+ /**
+ * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
+ */
+ public static List<InternalFolderMessage> findWithDynamicQuery(
+ DynamicQuery dynamicQuery) throws SystemException {
+ return getPersistence().findWithDynamicQuery(dynamicQuery);
+ }
+
+ /**
+ * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
+ */
+ public static List<InternalFolderMessage> 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<InternalFolderMessage> 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, boolean)
+ */
+ public static InternalFolderMessage update(
+ InternalFolderMessage internalFolderMessage, boolean merge)
+ throws SystemException {
+ return getPersistence().update(internalFolderMessage, merge);
+ }
+
+ /**
+ * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
+ */
+ public static InternalFolderMessage update(
+ InternalFolderMessage internalFolderMessage, boolean merge,
+ ServiceContext serviceContext) throws SystemException {
+ return getPersistence()
+ .update(internalFolderMessage, merge, serviceContext);
+ }
+
+ /**
+ * Caches the internal folder message in the entity cache if it is enabled.
+ *
+ * @param internalFolderMessage the internal folder message
+ */
+ public static void cacheResult(
+ com.pentila.entSavoie.internalMessaging.model.InternalFolderMessage internalFolderMessage) {
+ getPersistence().cacheResult(internalFolderMessage);
+ }
+
+ /**
+ * Caches the internal folder messages in the entity cache if it is enabled.
+ *
+ * @param internalFolderMessages the internal folder messages
+ */
+ public static void cacheResult(
+ java.util.List<com.pentila.entSavoie.internalMessaging.model.InternalFolderMessage> internalFolderMessages) {
+ getPersistence().cacheResult(internalFolderMessages);
+ }
+
+ /**
+ * Creates a new internal folder message with the primary key. Does not add the internal folder message to the database.
+ *
+ * @param folderMessageId the primary key for the new internal folder message
+ * @return the new internal folder message
+ */
+ public static com.pentila.entSavoie.internalMessaging.model.InternalFolderMessage create(
+ long folderMessageId) {
+ return getPersistence().create(folderMessageId);
+ }
+
+ /**
+ * Removes the internal folder message with the primary key from the database. Also notifies the appropriate model listeners.
+ *
+ * @param folderMessageId the primary key of the internal folder message
+ * @return the internal folder message that was removed
+ * @throws com.pentila.entSavoie.internalMessaging.NoSuchInternalFolderMessageException if a internal folder message with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.internalMessaging.model.InternalFolderMessage remove(
+ long folderMessageId)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.internalMessaging.NoSuchInternalFolderMessageException {
+ return getPersistence().remove(folderMessageId);
+ }
+
+ public static com.pentila.entSavoie.internalMessaging.model.InternalFolderMessage updateImpl(
+ com.pentila.entSavoie.internalMessaging.model.InternalFolderMessage internalFolderMessage,
+ boolean merge)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().updateImpl(internalFolderMessage, merge);
+ }
+
+ /**
+ * Returns the internal folder message with the primary key or throws a {@link com.pentila.entSavoie.internalMessaging.NoSuchInternalFolderMessageException} if it could not be found.
+ *
+ * @param folderMessageId the primary key of the internal folder message
+ * @return the internal folder message
+ * @throws com.pentila.entSavoie.internalMessaging.NoSuchInternalFolderMessageException if a internal folder message with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.internalMessaging.model.InternalFolderMessage findByPrimaryKey(
+ long folderMessageId)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.internalMessaging.NoSuchInternalFolderMessageException {
+ return getPersistence().findByPrimaryKey(folderMessageId);
+ }
+
+ /**
+ * Returns the internal folder message with the primary key or returns <code>null</code> if it could not be found.
+ *
+ * @param folderMessageId the primary key of the internal folder message
+ * @return the internal folder message, or <code>null</code> if a internal folder message with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.internalMessaging.model.InternalFolderMessage fetchByPrimaryKey(
+ long folderMessageId)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().fetchByPrimaryKey(folderMessageId);
+ }
+
+ /**
+ * Returns all the internal folder messages where userId = ?.
+ *
+ * @param userId the user ID
+ * @return the matching internal folder messages
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.internalMessaging.model.InternalFolderMessage> findByuserId(
+ long userId) throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().findByuserId(userId);
+ }
+
+ /**
+ * Returns a range of all the internal folder messages where userId = ?.
+ *
+ * <p>
+ * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
+ * </p>
+ *
+ * @param userId the user ID
+ * @param start the lower bound of the range of internal folder messages
+ * @param end the upper bound of the range of internal folder messages (not inclusive)
+ * @return the range of matching internal folder messages
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.internalMessaging.model.InternalFolderMessage> findByuserId(
+ long userId, int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().findByuserId(userId, start, end);
+ }
+
+ /**
+ * Returns an ordered range of all the internal folder messages where userId = ?.
+ *
+ * <p>
+ * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
+ * </p>
+ *
+ * @param userId the user ID
+ * @param start the lower bound of the range of internal folder messages
+ * @param end the upper bound of the range of internal folder messages (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of matching internal folder messages
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.internalMessaging.model.InternalFolderMessage> findByuserId(
+ long userId, int start, int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .findByuserId(userId, start, end, orderByComparator);
+ }
+
+ /**
+ * Returns the first internal folder message in the ordered set where userId = ?.
+ *
+ * @param userId the user ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching internal folder message
+ * @throws com.pentila.entSavoie.internalMessaging.NoSuchInternalFolderMessageException if a matching internal folder message could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.internalMessaging.model.InternalFolderMessage findByuserId_First(
+ long userId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.internalMessaging.NoSuchInternalFolderMessageException {
+ return getPersistence().findByuserId_First(userId, orderByComparator);
+ }
+
+ /**
+ * Returns the first internal folder message in the ordered set where userId = ?.
+ *
+ * @param userId the user ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching internal folder message, or <code>null</code> if a matching internal folder message could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.internalMessaging.model.InternalFolderMessage fetchByuserId_First(
+ long userId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().fetchByuserId_First(userId, orderByComparator);
+ }
+
+ /**
+ * Returns the last internal folder message in the ordered set where userId = ?.
+ *
+ * @param userId the user ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching internal folder message
+ * @throws com.pentila.entSavoie.internalMessaging.NoSuchInternalFolderMessageException if a matching internal folder message could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.internalMessaging.model.InternalFolderMessage findByuserId_Last(
+ long userId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.internalMessaging.NoSuchInternalFolderMessageException {
+ return getPersistence().findByuserId_Last(userId, orderByComparator);
+ }
+
+ /**
+ * Returns the last internal folder message in the ordered set where userId = ?.
+ *
+ * @param userId the user ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching internal folder message, or <code>null</code> if a matching internal folder message could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.internalMessaging.model.InternalFolderMessage fetchByuserId_Last(
+ long userId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().fetchByuserId_Last(userId, orderByComparator);
+ }
+
+ /**
+ * Returns the internal folder messages before and after the current internal folder message in the ordered set where userId = ?.
+ *
+ * @param folderMessageId the primary key of the current internal folder message
+ * @param userId the user ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the previous, current, and next internal folder message
+ * @throws com.pentila.entSavoie.internalMessaging.NoSuchInternalFolderMessageException if a internal folder message with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.internalMessaging.model.InternalFolderMessage[] findByuserId_PrevAndNext(
+ long folderMessageId, long userId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.internalMessaging.NoSuchInternalFolderMessageException {
+ return getPersistence()
+ .findByuserId_PrevAndNext(folderMessageId, userId,
+ orderByComparator);
+ }
+
+ /**
+ * Returns all the internal folder messages where userId = ? and folderType = ?.
+ *
+ * @param userId the user ID
+ * @param folderType the folder type
+ * @return the matching internal folder messages
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.internalMessaging.model.InternalFolderMessage> findByuserId_typeFolder(
+ long userId, java.lang.String folderType)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().findByuserId_typeFolder(userId, folderType);
+ }
+
+ /**
+ * Returns a range of all the internal folder messages where userId = ? and folderType = ?.
+ *
+ * <p>
+ * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
+ * </p>
+ *
+ * @param userId the user ID
+ * @param folderType the folder type
+ * @param start the lower bound of the range of internal folder messages
+ * @param end the upper bound of the range of internal folder messages (not inclusive)
+ * @return the range of matching internal folder messages
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.internalMessaging.model.InternalFolderMessage> findByuserId_typeFolder(
+ long userId, java.lang.String folderType, int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .findByuserId_typeFolder(userId, folderType, start, end);
+ }
+
+ /**
+ * Returns an ordered range of all the internal folder messages where userId = ? and folderType = ?.
+ *
+ * <p>
+ * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
+ * </p>
+ *
+ * @param userId the user ID
+ * @param folderType the folder type
+ * @param start the lower bound of the range of internal folder messages
+ * @param end the upper bound of the range of internal folder messages (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of matching internal folder messages
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.internalMessaging.model.InternalFolderMessage> findByuserId_typeFolder(
+ long userId, java.lang.String folderType, int start, int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .findByuserId_typeFolder(userId, folderType, start, end,
+ orderByComparator);
+ }
+
+ /**
+ * Returns the first internal folder message in the ordered set where userId = ? and folderType = ?.
+ *
+ * @param userId the user ID
+ * @param folderType the folder type
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching internal folder message
+ * @throws com.pentila.entSavoie.internalMessaging.NoSuchInternalFolderMessageException if a matching internal folder message could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.internalMessaging.model.InternalFolderMessage findByuserId_typeFolder_First(
+ long userId, java.lang.String folderType,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.internalMessaging.NoSuchInternalFolderMessageException {
+ return getPersistence()
+ .findByuserId_typeFolder_First(userId, folderType,
+ orderByComparator);
+ }
+
+ /**
+ * Returns the first internal folder message in the ordered set where userId = ? and folderType = ?.
+ *
+ * @param userId the user ID
+ * @param folderType the folder type
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching internal folder message, or <code>null</code> if a matching internal folder message could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.internalMessaging.model.InternalFolderMessage fetchByuserId_typeFolder_First(
+ long userId, java.lang.String folderType,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .fetchByuserId_typeFolder_First(userId, folderType,
+ orderByComparator);
+ }
+
+ /**
+ * Returns the last internal folder message in the ordered set where userId = ? and folderType = ?.
+ *
+ * @param userId the user ID
+ * @param folderType the folder type
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching internal folder message
+ * @throws com.pentila.entSavoie.internalMessaging.NoSuchInternalFolderMessageException if a matching internal folder message could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.internalMessaging.model.InternalFolderMessage findByuserId_typeFolder_Last(
+ long userId, java.lang.String folderType,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.internalMessaging.NoSuchInternalFolderMessageException {
+ return getPersistence()
+ .findByuserId_typeFolder_Last(userId, folderType,
+ orderByComparator);
+ }
+
+ /**
+ * Returns the last internal folder message in the ordered set where userId = ? and folderType = ?.
+ *
+ * @param userId the user ID
+ * @param folderType the folder type
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching internal folder message, or <code>null</code> if a matching internal folder message could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.internalMessaging.model.InternalFolderMessage fetchByuserId_typeFolder_Last(
+ long userId, java.lang.String folderType,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .fetchByuserId_typeFolder_Last(userId, folderType,
+ orderByComparator);
+ }
+
+ /**
+ * Returns the internal folder messages before and after the current internal folder message in the ordered set where userId = ? and folderType = ?.
+ *
+ * @param folderMessageId the primary key of the current internal folder message
+ * @param userId the user ID
+ * @param folderType the folder type
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the previous, current, and next internal folder message
+ * @throws com.pentila.entSavoie.internalMessaging.NoSuchInternalFolderMessageException if a internal folder message with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.internalMessaging.model.InternalFolderMessage[] findByuserId_typeFolder_PrevAndNext(
+ long folderMessageId, long userId, java.lang.String folderType,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.internalMessaging.NoSuchInternalFolderMessageException {
+ return getPersistence()
+ .findByuserId_typeFolder_PrevAndNext(folderMessageId,
+ userId, folderType, orderByComparator);
+ }
+
+ /**
+ * Returns all the internal folder messages where userId = ? and nodePath = ?.
+ *
+ * @param userId the user ID
+ * @param nodePath the node path
+ * @return the matching internal folder messages
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.internalMessaging.model.InternalFolderMessage> findByuserId_nodePath(
+ long userId, java.lang.String nodePath)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().findByuserId_nodePath(userId, nodePath);
+ }
+
+ /**
+ * Returns a range of all the internal folder messages where userId = ? and nodePath = ?.
+ *
+ * <p>
+ * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
+ * </p>
+ *
+ * @param userId the user ID
+ * @param nodePath the node path
+ * @param start the lower bound of the range of internal folder messages
+ * @param end the upper bound of the range of internal folder messages (not inclusive)
+ * @return the range of matching internal folder messages
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.internalMessaging.model.InternalFolderMessage> findByuserId_nodePath(
+ long userId, java.lang.String nodePath, int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .findByuserId_nodePath(userId, nodePath, start, end);
+ }
+
+ /**
+ * Returns an ordered range of all the internal folder messages where userId = ? and nodePath = ?.
+ *
+ * <p>
+ * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
+ * </p>
+ *
+ * @param userId the user ID
+ * @param nodePath the node path
+ * @param start the lower bound of the range of internal folder messages
+ * @param end the upper bound of the range of internal folder messages (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of matching internal folder messages
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.internalMessaging.model.InternalFolderMessage> findByuserId_nodePath(
+ long userId, java.lang.String nodePath, int start, int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .findByuserId_nodePath(userId, nodePath, start, end,
+ orderByComparator);
+ }
+
+ /**
+ * Returns the first internal folder message in the ordered set where userId = ? and nodePath = ?.
+ *
+ * @param userId the user ID
+ * @param nodePath the node path
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching internal folder message
+ * @throws com.pentila.entSavoie.internalMessaging.NoSuchInternalFolderMessageException if a matching internal folder message could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.internalMessaging.model.InternalFolderMessage findByuserId_nodePath_First(
+ long userId, java.lang.String nodePath,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.internalMessaging.NoSuchInternalFolderMessageException {
+ return getPersistence()
+ .findByuserId_nodePath_First(userId, nodePath,
+ orderByComparator);
+ }
+
+ /**
+ * Returns the first internal folder message in the ordered set where userId = ? and nodePath = ?.
+ *
+ * @param userId the user ID
+ * @param nodePath the node path
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching internal folder message, or <code>null</code> if a matching internal folder message could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.internalMessaging.model.InternalFolderMessage fetchByuserId_nodePath_First(
+ long userId, java.lang.String nodePath,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .fetchByuserId_nodePath_First(userId, nodePath,
+ orderByComparator);
+ }
+
+ /**
+ * Returns the last internal folder message in the ordered set where userId = ? and nodePath = ?.
+ *
+ * @param userId the user ID
+ * @param nodePath the node path
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching internal folder message
+ * @throws com.pentila.entSavoie.internalMessaging.NoSuchInternalFolderMessageException if a matching internal folder message could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.internalMessaging.model.InternalFolderMessage findByuserId_nodePath_Last(
+ long userId, java.lang.String nodePath,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.internalMessaging.NoSuchInternalFolderMessageException {
+ return getPersistence()
+ .findByuserId_nodePath_Last(userId, nodePath,
+ orderByComparator);
+ }
+
+ /**
+ * Returns the last internal folder message in the ordered set where userId = ? and nodePath = ?.
+ *
+ * @param userId the user ID
+ * @param nodePath the node path
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching internal folder message, or <code>null</code> if a matching internal folder message could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.internalMessaging.model.InternalFolderMessage fetchByuserId_nodePath_Last(
+ long userId, java.lang.String nodePath,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .fetchByuserId_nodePath_Last(userId, nodePath,
+ orderByComparator);
+ }
+
+ /**
+ * Returns the internal folder messages before and after the current internal folder message in the ordered set where userId = ? and nodePath = ?.
+ *
+ * @param folderMessageId the primary key of the current internal folder message
+ * @param userId the user ID
+ * @param nodePath the node path
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the previous, current, and next internal folder message
+ * @throws com.pentila.entSavoie.internalMessaging.NoSuchInternalFolderMessageException if a internal folder message with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.internalMessaging.model.InternalFolderMessage[] findByuserId_nodePath_PrevAndNext(
+ long folderMessageId, long userId, java.lang.String nodePath,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.internalMessaging.NoSuchInternalFolderMessageException {
+ return getPersistence()
+ .findByuserId_nodePath_PrevAndNext(folderMessageId, userId,
+ nodePath, orderByComparator);
+ }
+
+ /**
+ * Returns all the internal folder messages.
+ *
+ * @return the internal folder messages
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.internalMessaging.model.InternalFolderMessage> findAll()
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().findAll();
+ }
+
+ /**
+ * Returns a range of all the internal folder messages.
+ *
+ * <p>
+ * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
+ * </p>
+ *
+ * @param start the lower bound of the range of internal folder messages
+ * @param end the upper bound of the range of internal folder messages (not inclusive)
+ * @return the range of internal folder messages
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.internalMessaging.model.InternalFolderMessage> findAll(
+ int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().findAll(start, end);
+ }
+
+ /**
+ * Returns an ordered range of all the internal folder messages.
+ *
+ * <p>
+ * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
+ * </p>
+ *
+ * @param start the lower bound of the range of internal folder messages
+ * @param end the upper bound of the range of internal folder messages (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of internal folder messages
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.internalMessaging.model.InternalFolderMessage> 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 internal folder messages where userId = ? from the database.
+ *
+ * @param userId the user ID
+ * @throws SystemException if a system exception occurred
+ */
+ public static void removeByuserId(long userId)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ getPersistence().removeByuserId(userId);
+ }
+
+ /**
+ * Removes all the internal folder messages where userId = ? and folderType = ? from the database.
+ *
+ * @param userId the user ID
+ * @param folderType the folder type
+ * @throws SystemException if a system exception occurred
+ */
+ public static void removeByuserId_typeFolder(long userId,
+ java.lang.String folderType)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ getPersistence().removeByuserId_typeFolder(userId, folderType);
+ }
+
+ /**
+ * Removes all the internal folder messages where userId = ? and nodePath = ? from the database.
+ *
+ * @param userId the user ID
+ * @param nodePath the node path
+ * @throws SystemException if a system exception occurred
+ */
+ public static void removeByuserId_nodePath(long userId,
+ java.lang.String nodePath)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ getPersistence().removeByuserId_nodePath(userId, nodePath);
+ }
+
+ /**
+ * Removes all the internal folder messages 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 internal folder messages where userId = ?.
+ *
+ * @param userId the user ID
+ * @return the number of matching internal folder messages
+ * @throws SystemException if a system exception occurred
+ */
+ public static int countByuserId(long userId)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().countByuserId(userId);
+ }
+
+ /**
+ * Returns the number of internal folder messages where userId = ? and folderType = ?.
+ *
+ * @param userId the user ID
+ * @param folderType the folder type
+ * @return the number of matching internal folder messages
+ * @throws SystemException if a system exception occurred
+ */
+ public static int countByuserId_typeFolder(long userId,
+ java.lang.String folderType)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().countByuserId_typeFolder(userId, folderType);
+ }
+
+ /**
+ * Returns the number of internal folder messages where userId = ? and nodePath = ?.
+ *
+ * @param userId the user ID
+ * @param nodePath the node path
+ * @return the number of matching internal folder messages
+ * @throws SystemException if a system exception occurred
+ */
+ public static int countByuserId_nodePath(long userId,
+ java.lang.String nodePath)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().countByuserId_nodePath(userId, nodePath);
+ }
+
+ /**
+ * Returns the number of internal folder messages.
+ *
+ * @return the number of internal folder messages
+ * @throws SystemException if a system exception occurred
+ */
+ public static int countAll()
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().countAll();
+ }
+
+ public static InternalFolderMessagePersistence getPersistence() {
+ if (_persistence == null) {
+ _persistence = (InternalFolderMessagePersistence)PortletBeanLocatorUtil.locate(com.pentila.entSavoie.internalMessaging.service.ClpSerializer.getServletContextName(),
+ InternalFolderMessagePersistence.class.getName());
+
+ ReferenceRegistry.registerReference(InternalFolderMessageUtil.class,
+ "_persistence");
+ }
+
+ return _persistence;
+ }
+
+ /**
+ * @deprecated
+ */
+ public void setPersistence(InternalFolderMessagePersistence persistence) {
+ }
+
+ private static InternalFolderMessagePersistence _persistence;
+}
\ No newline at end of file