--- /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.service.persistence.BasePersistence;
+
+import com.pentila.entSavoie.internalMessaging.model.InternalMessage;
+
+/**
+ * The persistence interface for the internal message service.
+ *
+ * <p>
+ * Caching information and settings can be found in <code>portal.properties</code>
+ * </p>
+ *
+ * @author Igor Barma - Mathieu Amblard
+ * @see InternalMessagePersistenceImpl
+ * @see InternalMessageUtil
+ * @generated
+ */
+public interface InternalMessagePersistence extends BasePersistence<InternalMessage> {
+ /*
+ * NOTE FOR DEVELOPERS:
+ *
+ * Never modify or reference this interface directly. Always use {@link InternalMessageUtil} to access the internal message persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
+ */
+
+ /**
+ * Caches the internal message in the entity cache if it is enabled.
+ *
+ * @param internalMessage the internal message
+ */
+ public void cacheResult(
+ com.pentila.entSavoie.internalMessaging.model.InternalMessage internalMessage);
+
+ /**
+ * Caches the internal messages in the entity cache if it is enabled.
+ *
+ * @param internalMessages the internal messages
+ */
+ public void cacheResult(
+ java.util.List<com.pentila.entSavoie.internalMessaging.model.InternalMessage> internalMessages);
+
+ /**
+ * Creates a new internal message with the primary key. Does not add the internal message to the database.
+ *
+ * @param messageId the primary key for the new internal message
+ * @return the new internal message
+ */
+ public com.pentila.entSavoie.internalMessaging.model.InternalMessage create(
+ long messageId);
+
+ /**
+ * Removes the internal message with the primary key from the database. Also notifies the appropriate model listeners.
+ *
+ * @param messageId the primary key of the internal message
+ * @return the internal message that was removed
+ * @throws com.pentila.entSavoie.internalMessaging.NoSuchInternalMessageException if a internal message with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.internalMessaging.model.InternalMessage remove(
+ long messageId)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.internalMessaging.NoSuchInternalMessageException;
+
+ public com.pentila.entSavoie.internalMessaging.model.InternalMessage updateImpl(
+ com.pentila.entSavoie.internalMessaging.model.InternalMessage internalMessage,
+ boolean merge)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the internal message with the primary key or throws a {@link com.pentila.entSavoie.internalMessaging.NoSuchInternalMessageException} if it could not be found.
+ *
+ * @param messageId the primary key of the internal message
+ * @return the internal message
+ * @throws com.pentila.entSavoie.internalMessaging.NoSuchInternalMessageException if a internal message with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.internalMessaging.model.InternalMessage findByPrimaryKey(
+ long messageId)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.internalMessaging.NoSuchInternalMessageException;
+
+ /**
+ * Returns the internal message with the primary key or returns <code>null</code> if it could not be found.
+ *
+ * @param messageId the primary key of the internal message
+ * @return the internal message, or <code>null</code> if a internal message with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.internalMessaging.model.InternalMessage fetchByPrimaryKey(
+ long messageId)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns all the internal messages where companyId = ?.
+ *
+ * @param companyId the company ID
+ * @return the matching internal messages
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.internalMessaging.model.InternalMessage> findByCompanyId(
+ long companyId)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns a range of all the internal messages where companyId = ?.
+ *
+ * <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 companyId the company ID
+ * @param start the lower bound of the range of internal messages
+ * @param end the upper bound of the range of internal messages (not inclusive)
+ * @return the range of matching internal messages
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.internalMessaging.model.InternalMessage> findByCompanyId(
+ long companyId, int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns an ordered range of all the internal messages where companyId = ?.
+ *
+ * <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 companyId the company ID
+ * @param start the lower bound of the range of internal messages
+ * @param end the upper bound of the range of internal messages (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of matching internal messages
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.internalMessaging.model.InternalMessage> findByCompanyId(
+ long companyId, int start, int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the first internal message in the ordered set where companyId = ?.
+ *
+ * @param companyId the company ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching internal message
+ * @throws com.pentila.entSavoie.internalMessaging.NoSuchInternalMessageException if a matching internal message could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.internalMessaging.model.InternalMessage findByCompanyId_First(
+ long companyId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.internalMessaging.NoSuchInternalMessageException;
+
+ /**
+ * Returns the first internal message in the ordered set where companyId = ?.
+ *
+ * @param companyId the company ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching internal message, or <code>null</code> if a matching internal message could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.internalMessaging.model.InternalMessage fetchByCompanyId_First(
+ long companyId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the last internal message in the ordered set where companyId = ?.
+ *
+ * @param companyId the company ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching internal message
+ * @throws com.pentila.entSavoie.internalMessaging.NoSuchInternalMessageException if a matching internal message could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.internalMessaging.model.InternalMessage findByCompanyId_Last(
+ long companyId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.internalMessaging.NoSuchInternalMessageException;
+
+ /**
+ * Returns the last internal message in the ordered set where companyId = ?.
+ *
+ * @param companyId the company ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching internal message, or <code>null</code> if a matching internal message could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.internalMessaging.model.InternalMessage fetchByCompanyId_Last(
+ long companyId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the internal messages before and after the current internal message in the ordered set where companyId = ?.
+ *
+ * @param messageId the primary key of the current internal message
+ * @param companyId the company ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the previous, current, and next internal message
+ * @throws com.pentila.entSavoie.internalMessaging.NoSuchInternalMessageException if a internal message with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.internalMessaging.model.InternalMessage[] findByCompanyId_PrevAndNext(
+ long messageId, long companyId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.internalMessaging.NoSuchInternalMessageException;
+
+ /**
+ * Returns all the internal messages where messageSendId = ?.
+ *
+ * @param messageSendId the message send ID
+ * @return the matching internal messages
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.internalMessaging.model.InternalMessage> findBymessageSendId(
+ long messageSendId)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns a range of all the internal messages where messageSendId = ?.
+ *
+ * <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 messageSendId the message send ID
+ * @param start the lower bound of the range of internal messages
+ * @param end the upper bound of the range of internal messages (not inclusive)
+ * @return the range of matching internal messages
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.internalMessaging.model.InternalMessage> findBymessageSendId(
+ long messageSendId, int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns an ordered range of all the internal messages where messageSendId = ?.
+ *
+ * <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 messageSendId the message send ID
+ * @param start the lower bound of the range of internal messages
+ * @param end the upper bound of the range of internal messages (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of matching internal messages
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.internalMessaging.model.InternalMessage> findBymessageSendId(
+ long messageSendId, int start, int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the first internal message in the ordered set where messageSendId = ?.
+ *
+ * @param messageSendId the message send ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching internal message
+ * @throws com.pentila.entSavoie.internalMessaging.NoSuchInternalMessageException if a matching internal message could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.internalMessaging.model.InternalMessage findBymessageSendId_First(
+ long messageSendId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.internalMessaging.NoSuchInternalMessageException;
+
+ /**
+ * Returns the first internal message in the ordered set where messageSendId = ?.
+ *
+ * @param messageSendId the message send ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching internal message, or <code>null</code> if a matching internal message could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.internalMessaging.model.InternalMessage fetchBymessageSendId_First(
+ long messageSendId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the last internal message in the ordered set where messageSendId = ?.
+ *
+ * @param messageSendId the message send ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching internal message
+ * @throws com.pentila.entSavoie.internalMessaging.NoSuchInternalMessageException if a matching internal message could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.internalMessaging.model.InternalMessage findBymessageSendId_Last(
+ long messageSendId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.internalMessaging.NoSuchInternalMessageException;
+
+ /**
+ * Returns the last internal message in the ordered set where messageSendId = ?.
+ *
+ * @param messageSendId the message send ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching internal message, or <code>null</code> if a matching internal message could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.internalMessaging.model.InternalMessage fetchBymessageSendId_Last(
+ long messageSendId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the internal messages before and after the current internal message in the ordered set where messageSendId = ?.
+ *
+ * @param messageId the primary key of the current internal message
+ * @param messageSendId the message send ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the previous, current, and next internal message
+ * @throws com.pentila.entSavoie.internalMessaging.NoSuchInternalMessageException if a internal message with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.internalMessaging.model.InternalMessage[] findBymessageSendId_PrevAndNext(
+ long messageId, long messageSendId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.internalMessaging.NoSuchInternalMessageException;
+
+ /**
+ * Returns all the internal messages where folderMessageId = ?.
+ *
+ * @param folderMessageId the folder message ID
+ * @return the matching internal messages
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.internalMessaging.model.InternalMessage> findByfolderMessageId(
+ long folderMessageId)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns a range of all the internal messages where folderMessageId = ?.
+ *
+ * <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 folderMessageId the folder message ID
+ * @param start the lower bound of the range of internal messages
+ * @param end the upper bound of the range of internal messages (not inclusive)
+ * @return the range of matching internal messages
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.internalMessaging.model.InternalMessage> findByfolderMessageId(
+ long folderMessageId, int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns an ordered range of all the internal messages where folderMessageId = ?.
+ *
+ * <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 folderMessageId the folder message ID
+ * @param start the lower bound of the range of internal messages
+ * @param end the upper bound of the range of internal messages (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of matching internal messages
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.internalMessaging.model.InternalMessage> findByfolderMessageId(
+ long folderMessageId, int start, int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the first internal message in the ordered set where folderMessageId = ?.
+ *
+ * @param folderMessageId the folder message ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching internal message
+ * @throws com.pentila.entSavoie.internalMessaging.NoSuchInternalMessageException if a matching internal message could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.internalMessaging.model.InternalMessage findByfolderMessageId_First(
+ long folderMessageId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.internalMessaging.NoSuchInternalMessageException;
+
+ /**
+ * Returns the first internal message in the ordered set where folderMessageId = ?.
+ *
+ * @param folderMessageId the folder message ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching internal message, or <code>null</code> if a matching internal message could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.internalMessaging.model.InternalMessage fetchByfolderMessageId_First(
+ long folderMessageId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the last internal message in the ordered set where folderMessageId = ?.
+ *
+ * @param folderMessageId the folder message ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching internal message
+ * @throws com.pentila.entSavoie.internalMessaging.NoSuchInternalMessageException if a matching internal message could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.internalMessaging.model.InternalMessage findByfolderMessageId_Last(
+ long folderMessageId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.internalMessaging.NoSuchInternalMessageException;
+
+ /**
+ * Returns the last internal message in the ordered set where folderMessageId = ?.
+ *
+ * @param folderMessageId the folder message ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching internal message, or <code>null</code> if a matching internal message could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.internalMessaging.model.InternalMessage fetchByfolderMessageId_Last(
+ long folderMessageId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the internal messages before and after the current internal message in the ordered set where folderMessageId = ?.
+ *
+ * @param messageId the primary key of the current internal message
+ * @param folderMessageId the folder message ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the previous, current, and next internal message
+ * @throws com.pentila.entSavoie.internalMessaging.NoSuchInternalMessageException if a internal message with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.internalMessaging.model.InternalMessage[] findByfolderMessageId_PrevAndNext(
+ long messageId, long folderMessageId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.internalMessaging.NoSuchInternalMessageException;
+
+ /**
+ * Returns all the internal messages where folderMessageId = ? and isNew = ?.
+ *
+ * @param folderMessageId the folder message ID
+ * @param isNew the is new
+ * @return the matching internal messages
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.internalMessaging.model.InternalMessage> findByfolderMessageId_isNew(
+ long folderMessageId, boolean isNew)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns a range of all the internal messages where folderMessageId = ? and isNew = ?.
+ *
+ * <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 folderMessageId the folder message ID
+ * @param isNew the is new
+ * @param start the lower bound of the range of internal messages
+ * @param end the upper bound of the range of internal messages (not inclusive)
+ * @return the range of matching internal messages
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.internalMessaging.model.InternalMessage> findByfolderMessageId_isNew(
+ long folderMessageId, boolean isNew, int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns an ordered range of all the internal messages where folderMessageId = ? and isNew = ?.
+ *
+ * <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 folderMessageId the folder message ID
+ * @param isNew the is new
+ * @param start the lower bound of the range of internal messages
+ * @param end the upper bound of the range of internal messages (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of matching internal messages
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.internalMessaging.model.InternalMessage> findByfolderMessageId_isNew(
+ long folderMessageId, boolean isNew, int start, int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the first internal message in the ordered set where folderMessageId = ? and isNew = ?.
+ *
+ * @param folderMessageId the folder message ID
+ * @param isNew the is new
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching internal message
+ * @throws com.pentila.entSavoie.internalMessaging.NoSuchInternalMessageException if a matching internal message could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.internalMessaging.model.InternalMessage findByfolderMessageId_isNew_First(
+ long folderMessageId, boolean isNew,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.internalMessaging.NoSuchInternalMessageException;
+
+ /**
+ * Returns the first internal message in the ordered set where folderMessageId = ? and isNew = ?.
+ *
+ * @param folderMessageId the folder message ID
+ * @param isNew the is new
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching internal message, or <code>null</code> if a matching internal message could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.internalMessaging.model.InternalMessage fetchByfolderMessageId_isNew_First(
+ long folderMessageId, boolean isNew,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the last internal message in the ordered set where folderMessageId = ? and isNew = ?.
+ *
+ * @param folderMessageId the folder message ID
+ * @param isNew the is new
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching internal message
+ * @throws com.pentila.entSavoie.internalMessaging.NoSuchInternalMessageException if a matching internal message could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.internalMessaging.model.InternalMessage findByfolderMessageId_isNew_Last(
+ long folderMessageId, boolean isNew,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.internalMessaging.NoSuchInternalMessageException;
+
+ /**
+ * Returns the last internal message in the ordered set where folderMessageId = ? and isNew = ?.
+ *
+ * @param folderMessageId the folder message ID
+ * @param isNew the is new
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching internal message, or <code>null</code> if a matching internal message could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.internalMessaging.model.InternalMessage fetchByfolderMessageId_isNew_Last(
+ long folderMessageId, boolean isNew,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the internal messages before and after the current internal message in the ordered set where folderMessageId = ? and isNew = ?.
+ *
+ * @param messageId the primary key of the current internal message
+ * @param folderMessageId the folder message ID
+ * @param isNew the is new
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the previous, current, and next internal message
+ * @throws com.pentila.entSavoie.internalMessaging.NoSuchInternalMessageException if a internal message with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.internalMessaging.model.InternalMessage[] findByfolderMessageId_isNew_PrevAndNext(
+ long messageId, long folderMessageId, boolean isNew,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.internalMessaging.NoSuchInternalMessageException;
+
+ /**
+ * Returns all the internal messages where folderMessageId = ? and isNotifiedNew = ?.
+ *
+ * @param folderMessageId the folder message ID
+ * @param isNotifiedNew the is notified new
+ * @return the matching internal messages
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.internalMessaging.model.InternalMessage> findByfolderMessageId_isNotifiedNew(
+ long folderMessageId, boolean isNotifiedNew)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns a range of all the internal messages where folderMessageId = ? and isNotifiedNew = ?.
+ *
+ * <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 folderMessageId the folder message ID
+ * @param isNotifiedNew the is notified new
+ * @param start the lower bound of the range of internal messages
+ * @param end the upper bound of the range of internal messages (not inclusive)
+ * @return the range of matching internal messages
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.internalMessaging.model.InternalMessage> findByfolderMessageId_isNotifiedNew(
+ long folderMessageId, boolean isNotifiedNew, int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns an ordered range of all the internal messages where folderMessageId = ? and isNotifiedNew = ?.
+ *
+ * <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 folderMessageId the folder message ID
+ * @param isNotifiedNew the is notified new
+ * @param start the lower bound of the range of internal messages
+ * @param end the upper bound of the range of internal messages (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of matching internal messages
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.internalMessaging.model.InternalMessage> findByfolderMessageId_isNotifiedNew(
+ long folderMessageId, boolean isNotifiedNew, int start, int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the first internal message in the ordered set where folderMessageId = ? and isNotifiedNew = ?.
+ *
+ * @param folderMessageId the folder message ID
+ * @param isNotifiedNew the is notified new
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching internal message
+ * @throws com.pentila.entSavoie.internalMessaging.NoSuchInternalMessageException if a matching internal message could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.internalMessaging.model.InternalMessage findByfolderMessageId_isNotifiedNew_First(
+ long folderMessageId, boolean isNotifiedNew,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.internalMessaging.NoSuchInternalMessageException;
+
+ /**
+ * Returns the first internal message in the ordered set where folderMessageId = ? and isNotifiedNew = ?.
+ *
+ * @param folderMessageId the folder message ID
+ * @param isNotifiedNew the is notified new
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching internal message, or <code>null</code> if a matching internal message could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.internalMessaging.model.InternalMessage fetchByfolderMessageId_isNotifiedNew_First(
+ long folderMessageId, boolean isNotifiedNew,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the last internal message in the ordered set where folderMessageId = ? and isNotifiedNew = ?.
+ *
+ * @param folderMessageId the folder message ID
+ * @param isNotifiedNew the is notified new
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching internal message
+ * @throws com.pentila.entSavoie.internalMessaging.NoSuchInternalMessageException if a matching internal message could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.internalMessaging.model.InternalMessage findByfolderMessageId_isNotifiedNew_Last(
+ long folderMessageId, boolean isNotifiedNew,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.internalMessaging.NoSuchInternalMessageException;
+
+ /**
+ * Returns the last internal message in the ordered set where folderMessageId = ? and isNotifiedNew = ?.
+ *
+ * @param folderMessageId the folder message ID
+ * @param isNotifiedNew the is notified new
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching internal message, or <code>null</code> if a matching internal message could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.internalMessaging.model.InternalMessage fetchByfolderMessageId_isNotifiedNew_Last(
+ long folderMessageId, boolean isNotifiedNew,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the internal messages before and after the current internal message in the ordered set where folderMessageId = ? and isNotifiedNew = ?.
+ *
+ * @param messageId the primary key of the current internal message
+ * @param folderMessageId the folder message ID
+ * @param isNotifiedNew the is notified new
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the previous, current, and next internal message
+ * @throws com.pentila.entSavoie.internalMessaging.NoSuchInternalMessageException if a internal message with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.internalMessaging.model.InternalMessage[] findByfolderMessageId_isNotifiedNew_PrevAndNext(
+ long messageId, long folderMessageId, boolean isNotifiedNew,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.internalMessaging.NoSuchInternalMessageException;
+
+ /**
+ * Returns all the internal messages where folderMessageId = ? and senderName LIKE ? and messageSubject LIKE ? and messageContent LIKE ?.
+ *
+ * @param folderMessageId the folder message ID
+ * @param senderName the sender name
+ * @param messageSubject the message subject
+ * @param messageContent the message content
+ * @return the matching internal messages
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.internalMessaging.model.InternalMessage> findBytextualSearch(
+ long folderMessageId, java.lang.String senderName,
+ java.lang.String messageSubject, java.lang.String messageContent)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns a range of all the internal messages where folderMessageId = ? and senderName LIKE ? and messageSubject LIKE ? and messageContent LIKE ?.
+ *
+ * <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 folderMessageId the folder message ID
+ * @param senderName the sender name
+ * @param messageSubject the message subject
+ * @param messageContent the message content
+ * @param start the lower bound of the range of internal messages
+ * @param end the upper bound of the range of internal messages (not inclusive)
+ * @return the range of matching internal messages
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.internalMessaging.model.InternalMessage> findBytextualSearch(
+ long folderMessageId, java.lang.String senderName,
+ java.lang.String messageSubject, java.lang.String messageContent,
+ int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns an ordered range of all the internal messages where folderMessageId = ? and senderName LIKE ? and messageSubject LIKE ? and messageContent LIKE ?.
+ *
+ * <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 folderMessageId the folder message ID
+ * @param senderName the sender name
+ * @param messageSubject the message subject
+ * @param messageContent the message content
+ * @param start the lower bound of the range of internal messages
+ * @param end the upper bound of the range of internal messages (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of matching internal messages
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.internalMessaging.model.InternalMessage> findBytextualSearch(
+ long folderMessageId, java.lang.String senderName,
+ java.lang.String messageSubject, java.lang.String messageContent,
+ int start, int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the first internal message in the ordered set where folderMessageId = ? and senderName LIKE ? and messageSubject LIKE ? and messageContent LIKE ?.
+ *
+ * @param folderMessageId the folder message ID
+ * @param senderName the sender name
+ * @param messageSubject the message subject
+ * @param messageContent the message content
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching internal message
+ * @throws com.pentila.entSavoie.internalMessaging.NoSuchInternalMessageException if a matching internal message could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.internalMessaging.model.InternalMessage findBytextualSearch_First(
+ long folderMessageId, java.lang.String senderName,
+ java.lang.String messageSubject, java.lang.String messageContent,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.internalMessaging.NoSuchInternalMessageException;
+
+ /**
+ * Returns the first internal message in the ordered set where folderMessageId = ? and senderName LIKE ? and messageSubject LIKE ? and messageContent LIKE ?.
+ *
+ * @param folderMessageId the folder message ID
+ * @param senderName the sender name
+ * @param messageSubject the message subject
+ * @param messageContent the message content
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching internal message, or <code>null</code> if a matching internal message could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.internalMessaging.model.InternalMessage fetchBytextualSearch_First(
+ long folderMessageId, java.lang.String senderName,
+ java.lang.String messageSubject, java.lang.String messageContent,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the last internal message in the ordered set where folderMessageId = ? and senderName LIKE ? and messageSubject LIKE ? and messageContent LIKE ?.
+ *
+ * @param folderMessageId the folder message ID
+ * @param senderName the sender name
+ * @param messageSubject the message subject
+ * @param messageContent the message content
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching internal message
+ * @throws com.pentila.entSavoie.internalMessaging.NoSuchInternalMessageException if a matching internal message could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.internalMessaging.model.InternalMessage findBytextualSearch_Last(
+ long folderMessageId, java.lang.String senderName,
+ java.lang.String messageSubject, java.lang.String messageContent,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.internalMessaging.NoSuchInternalMessageException;
+
+ /**
+ * Returns the last internal message in the ordered set where folderMessageId = ? and senderName LIKE ? and messageSubject LIKE ? and messageContent LIKE ?.
+ *
+ * @param folderMessageId the folder message ID
+ * @param senderName the sender name
+ * @param messageSubject the message subject
+ * @param messageContent the message content
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching internal message, or <code>null</code> if a matching internal message could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.internalMessaging.model.InternalMessage fetchBytextualSearch_Last(
+ long folderMessageId, java.lang.String senderName,
+ java.lang.String messageSubject, java.lang.String messageContent,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the internal messages before and after the current internal message in the ordered set where folderMessageId = ? and senderName LIKE ? and messageSubject LIKE ? and messageContent LIKE ?.
+ *
+ * @param messageId the primary key of the current internal message
+ * @param folderMessageId the folder message ID
+ * @param senderName the sender name
+ * @param messageSubject the message subject
+ * @param messageContent the message content
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the previous, current, and next internal message
+ * @throws com.pentila.entSavoie.internalMessaging.NoSuchInternalMessageException if a internal message with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.internalMessaging.model.InternalMessage[] findBytextualSearch_PrevAndNext(
+ long messageId, long folderMessageId, java.lang.String senderName,
+ java.lang.String messageSubject, java.lang.String messageContent,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.internalMessaging.NoSuchInternalMessageException;
+
+ /**
+ * Returns all the internal messages.
+ *
+ * @return the internal messages
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.internalMessaging.model.InternalMessage> findAll()
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns a range of all the internal 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 messages
+ * @param end the upper bound of the range of internal messages (not inclusive)
+ * @return the range of internal messages
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.internalMessaging.model.InternalMessage> findAll(
+ int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns an ordered range of all the internal 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 messages
+ * @param end the upper bound of the range of internal messages (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of internal messages
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.internalMessaging.model.InternalMessage> findAll(
+ int start, int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Removes all the internal messages where companyId = ? from the database.
+ *
+ * @param companyId the company ID
+ * @throws SystemException if a system exception occurred
+ */
+ public void removeByCompanyId(long companyId)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Removes all the internal messages where messageSendId = ? from the database.
+ *
+ * @param messageSendId the message send ID
+ * @throws SystemException if a system exception occurred
+ */
+ public void removeBymessageSendId(long messageSendId)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Removes all the internal messages where folderMessageId = ? from the database.
+ *
+ * @param folderMessageId the folder message ID
+ * @throws SystemException if a system exception occurred
+ */
+ public void removeByfolderMessageId(long folderMessageId)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Removes all the internal messages where folderMessageId = ? and isNew = ? from the database.
+ *
+ * @param folderMessageId the folder message ID
+ * @param isNew the is new
+ * @throws SystemException if a system exception occurred
+ */
+ public void removeByfolderMessageId_isNew(long folderMessageId,
+ boolean isNew)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Removes all the internal messages where folderMessageId = ? and isNotifiedNew = ? from the database.
+ *
+ * @param folderMessageId the folder message ID
+ * @param isNotifiedNew the is notified new
+ * @throws SystemException if a system exception occurred
+ */
+ public void removeByfolderMessageId_isNotifiedNew(long folderMessageId,
+ boolean isNotifiedNew)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Removes all the internal messages where folderMessageId = ? and senderName LIKE ? and messageSubject LIKE ? and messageContent LIKE ? from the database.
+ *
+ * @param folderMessageId the folder message ID
+ * @param senderName the sender name
+ * @param messageSubject the message subject
+ * @param messageContent the message content
+ * @throws SystemException if a system exception occurred
+ */
+ public void removeBytextualSearch(long folderMessageId,
+ java.lang.String senderName, java.lang.String messageSubject,
+ java.lang.String messageContent)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Removes all the internal messages from the database.
+ *
+ * @throws SystemException if a system exception occurred
+ */
+ public void removeAll()
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the number of internal messages where companyId = ?.
+ *
+ * @param companyId the company ID
+ * @return the number of matching internal messages
+ * @throws SystemException if a system exception occurred
+ */
+ public int countByCompanyId(long companyId)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the number of internal messages where messageSendId = ?.
+ *
+ * @param messageSendId the message send ID
+ * @return the number of matching internal messages
+ * @throws SystemException if a system exception occurred
+ */
+ public int countBymessageSendId(long messageSendId)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the number of internal messages where folderMessageId = ?.
+ *
+ * @param folderMessageId the folder message ID
+ * @return the number of matching internal messages
+ * @throws SystemException if a system exception occurred
+ */
+ public int countByfolderMessageId(long folderMessageId)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the number of internal messages where folderMessageId = ? and isNew = ?.
+ *
+ * @param folderMessageId the folder message ID
+ * @param isNew the is new
+ * @return the number of matching internal messages
+ * @throws SystemException if a system exception occurred
+ */
+ public int countByfolderMessageId_isNew(long folderMessageId, boolean isNew)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the number of internal messages where folderMessageId = ? and isNotifiedNew = ?.
+ *
+ * @param folderMessageId the folder message ID
+ * @param isNotifiedNew the is notified new
+ * @return the number of matching internal messages
+ * @throws SystemException if a system exception occurred
+ */
+ public int countByfolderMessageId_isNotifiedNew(long folderMessageId,
+ boolean isNotifiedNew)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the number of internal messages where folderMessageId = ? and senderName LIKE ? and messageSubject LIKE ? and messageContent LIKE ?.
+ *
+ * @param folderMessageId the folder message ID
+ * @param senderName the sender name
+ * @param messageSubject the message subject
+ * @param messageContent the message content
+ * @return the number of matching internal messages
+ * @throws SystemException if a system exception occurred
+ */
+ public int countBytextualSearch(long folderMessageId,
+ java.lang.String senderName, java.lang.String messageSubject,
+ java.lang.String messageContent)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the number of internal messages.
+ *
+ * @return the number of internal messages
+ * @throws SystemException if a system exception occurred
+ */
+ public int countAll()
+ throws com.liferay.portal.kernel.exception.SystemException;
+}
\ No newline at end of file