--- /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.amis.service.persistence;
+
+import com.liferay.portal.service.persistence.BasePersistence;
+
+import com.pentila.entSavoie.amis.model.FriendFolder;
+
+/**
+ * The persistence interface for the friend folder service.
+ *
+ * <p>
+ * Caching information and settings can be found in <code>portal.properties</code>
+ * </p>
+ *
+ * @author Tardy Camille
+ * @see FriendFolderPersistenceImpl
+ * @see FriendFolderUtil
+ * @generated
+ */
+public interface FriendFolderPersistence extends BasePersistence<FriendFolder> {
+ /*
+ * NOTE FOR DEVELOPERS:
+ *
+ * Never modify or reference this interface directly. Always use {@link FriendFolderUtil} to access the friend folder persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
+ */
+
+ /**
+ * Caches the friend folder in the entity cache if it is enabled.
+ *
+ * @param friendFolder the friend folder
+ */
+ public void cacheResult(
+ com.pentila.entSavoie.amis.model.FriendFolder friendFolder);
+
+ /**
+ * Caches the friend folders in the entity cache if it is enabled.
+ *
+ * @param friendFolders the friend folders
+ */
+ public void cacheResult(
+ java.util.List<com.pentila.entSavoie.amis.model.FriendFolder> friendFolders);
+
+ /**
+ * Creates a new friend folder with the primary key. Does not add the friend folder to the database.
+ *
+ * @param friendFolderId the primary key for the new friend folder
+ * @return the new friend folder
+ */
+ public com.pentila.entSavoie.amis.model.FriendFolder create(
+ long friendFolderId);
+
+ /**
+ * Removes the friend folder with the primary key from the database. Also notifies the appropriate model listeners.
+ *
+ * @param friendFolderId the primary key of the friend folder
+ * @return the friend folder that was removed
+ * @throws com.pentila.entSavoie.amis.NoSuchFriendFolderException if a friend folder with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.amis.model.FriendFolder remove(
+ long friendFolderId)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.amis.NoSuchFriendFolderException;
+
+ public com.pentila.entSavoie.amis.model.FriendFolder updateImpl(
+ com.pentila.entSavoie.amis.model.FriendFolder friendFolder,
+ boolean merge)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the friend folder with the primary key or throws a {@link com.pentila.entSavoie.amis.NoSuchFriendFolderException} if it could not be found.
+ *
+ * @param friendFolderId the primary key of the friend folder
+ * @return the friend folder
+ * @throws com.pentila.entSavoie.amis.NoSuchFriendFolderException if a friend folder with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.amis.model.FriendFolder findByPrimaryKey(
+ long friendFolderId)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.amis.NoSuchFriendFolderException;
+
+ /**
+ * Returns the friend folder with the primary key or returns <code>null</code> if it could not be found.
+ *
+ * @param friendFolderId the primary key of the friend folder
+ * @return the friend folder, or <code>null</code> if a friend folder with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.amis.model.FriendFolder fetchByPrimaryKey(
+ long friendFolderId)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns all the friend folders where userId = ? and parentFolderId = ?.
+ *
+ * @param userId the user ID
+ * @param parentFolderId the parent folder ID
+ * @return the matching friend folders
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.amis.model.FriendFolder> findByuserId_parentFolderId(
+ long userId, long parentFolderId)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns a range of all the friend folders where userId = ? and parentFolderId = ?.
+ *
+ * <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 parentFolderId the parent folder ID
+ * @param start the lower bound of the range of friend folders
+ * @param end the upper bound of the range of friend folders (not inclusive)
+ * @return the range of matching friend folders
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.amis.model.FriendFolder> findByuserId_parentFolderId(
+ long userId, long parentFolderId, int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns an ordered range of all the friend folders where userId = ? and parentFolderId = ?.
+ *
+ * <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 parentFolderId the parent folder ID
+ * @param start the lower bound of the range of friend folders
+ * @param end the upper bound of the range of friend folders (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of matching friend folders
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.amis.model.FriendFolder> findByuserId_parentFolderId(
+ long userId, long parentFolderId, int start, int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the first friend folder in the ordered set where userId = ? and parentFolderId = ?.
+ *
+ * @param userId the user ID
+ * @param parentFolderId the parent folder ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching friend folder
+ * @throws com.pentila.entSavoie.amis.NoSuchFriendFolderException if a matching friend folder could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.amis.model.FriendFolder findByuserId_parentFolderId_First(
+ long userId, long parentFolderId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.amis.NoSuchFriendFolderException;
+
+ /**
+ * Returns the first friend folder in the ordered set where userId = ? and parentFolderId = ?.
+ *
+ * @param userId the user ID
+ * @param parentFolderId the parent folder ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching friend folder, or <code>null</code> if a matching friend folder could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.amis.model.FriendFolder fetchByuserId_parentFolderId_First(
+ long userId, long parentFolderId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the last friend folder in the ordered set where userId = ? and parentFolderId = ?.
+ *
+ * @param userId the user ID
+ * @param parentFolderId the parent folder ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching friend folder
+ * @throws com.pentila.entSavoie.amis.NoSuchFriendFolderException if a matching friend folder could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.amis.model.FriendFolder findByuserId_parentFolderId_Last(
+ long userId, long parentFolderId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.amis.NoSuchFriendFolderException;
+
+ /**
+ * Returns the last friend folder in the ordered set where userId = ? and parentFolderId = ?.
+ *
+ * @param userId the user ID
+ * @param parentFolderId the parent folder ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching friend folder, or <code>null</code> if a matching friend folder could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.amis.model.FriendFolder fetchByuserId_parentFolderId_Last(
+ long userId, long parentFolderId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the friend folders before and after the current friend folder in the ordered set where userId = ? and parentFolderId = ?.
+ *
+ * @param friendFolderId the primary key of the current friend folder
+ * @param userId the user ID
+ * @param parentFolderId the parent folder ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the previous, current, and next friend folder
+ * @throws com.pentila.entSavoie.amis.NoSuchFriendFolderException if a friend folder with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.amis.model.FriendFolder[] findByuserId_parentFolderId_PrevAndNext(
+ long friendFolderId, long userId, long parentFolderId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.amis.NoSuchFriendFolderException;
+
+ /**
+ * Returns all the friend folders where parentFolderId = ?.
+ *
+ * @param parentFolderId the parent folder ID
+ * @return the matching friend folders
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.amis.model.FriendFolder> findByparentFolderId(
+ long parentFolderId)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns a range of all the friend folders where parentFolderId = ?.
+ *
+ * <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 parentFolderId the parent folder ID
+ * @param start the lower bound of the range of friend folders
+ * @param end the upper bound of the range of friend folders (not inclusive)
+ * @return the range of matching friend folders
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.amis.model.FriendFolder> findByparentFolderId(
+ long parentFolderId, int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns an ordered range of all the friend folders where parentFolderId = ?.
+ *
+ * <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 parentFolderId the parent folder ID
+ * @param start the lower bound of the range of friend folders
+ * @param end the upper bound of the range of friend folders (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of matching friend folders
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.amis.model.FriendFolder> findByparentFolderId(
+ long parentFolderId, int start, int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the first friend folder in the ordered set where parentFolderId = ?.
+ *
+ * @param parentFolderId the parent folder ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching friend folder
+ * @throws com.pentila.entSavoie.amis.NoSuchFriendFolderException if a matching friend folder could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.amis.model.FriendFolder findByparentFolderId_First(
+ long parentFolderId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.amis.NoSuchFriendFolderException;
+
+ /**
+ * Returns the first friend folder in the ordered set where parentFolderId = ?.
+ *
+ * @param parentFolderId the parent folder ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching friend folder, or <code>null</code> if a matching friend folder could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.amis.model.FriendFolder fetchByparentFolderId_First(
+ long parentFolderId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the last friend folder in the ordered set where parentFolderId = ?.
+ *
+ * @param parentFolderId the parent folder ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching friend folder
+ * @throws com.pentila.entSavoie.amis.NoSuchFriendFolderException if a matching friend folder could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.amis.model.FriendFolder findByparentFolderId_Last(
+ long parentFolderId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.amis.NoSuchFriendFolderException;
+
+ /**
+ * Returns the last friend folder in the ordered set where parentFolderId = ?.
+ *
+ * @param parentFolderId the parent folder ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching friend folder, or <code>null</code> if a matching friend folder could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.amis.model.FriendFolder fetchByparentFolderId_Last(
+ long parentFolderId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the friend folders before and after the current friend folder in the ordered set where parentFolderId = ?.
+ *
+ * @param friendFolderId the primary key of the current friend folder
+ * @param parentFolderId the parent folder ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the previous, current, and next friend folder
+ * @throws com.pentila.entSavoie.amis.NoSuchFriendFolderException if a friend folder with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.amis.model.FriendFolder[] findByparentFolderId_PrevAndNext(
+ long friendFolderId, long parentFolderId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.amis.NoSuchFriendFolderException;
+
+ /**
+ * Returns all the friend folders.
+ *
+ * @return the friend folders
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.amis.model.FriendFolder> findAll()
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns a range of all the friend folders.
+ *
+ * <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 friend folders
+ * @param end the upper bound of the range of friend folders (not inclusive)
+ * @return the range of friend folders
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.amis.model.FriendFolder> findAll(
+ int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns an ordered range of all the friend folders.
+ *
+ * <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 friend folders
+ * @param end the upper bound of the range of friend folders (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of friend folders
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.amis.model.FriendFolder> findAll(
+ int start, int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Removes all the friend folders where userId = ? and parentFolderId = ? from the database.
+ *
+ * @param userId the user ID
+ * @param parentFolderId the parent folder ID
+ * @throws SystemException if a system exception occurred
+ */
+ public void removeByuserId_parentFolderId(long userId, long parentFolderId)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Removes all the friend folders where parentFolderId = ? from the database.
+ *
+ * @param parentFolderId the parent folder ID
+ * @throws SystemException if a system exception occurred
+ */
+ public void removeByparentFolderId(long parentFolderId)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Removes all the friend folders from the database.
+ *
+ * @throws SystemException if a system exception occurred
+ */
+ public void removeAll()
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the number of friend folders where userId = ? and parentFolderId = ?.
+ *
+ * @param userId the user ID
+ * @param parentFolderId the parent folder ID
+ * @return the number of matching friend folders
+ * @throws SystemException if a system exception occurred
+ */
+ public int countByuserId_parentFolderId(long userId, long parentFolderId)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the number of friend folders where parentFolderId = ?.
+ *
+ * @param parentFolderId the parent folder ID
+ * @return the number of matching friend folders
+ * @throws SystemException if a system exception occurred
+ */
+ public int countByparentFolderId(long parentFolderId)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the number of friend folders.
+ *
+ * @return the number of friend folders
+ * @throws SystemException if a system exception occurred
+ */
+ public int countAll()
+ throws com.liferay.portal.kernel.exception.SystemException;
+}
\ No newline at end of file