--- /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.cartable.service.persistence;
+
+import com.liferay.portal.service.persistence.BasePersistence;
+
+import com.pentila.entSavoie.cartable.model.DlLink;
+
+/**
+ * The persistence interface for the dl link service.
+ *
+ * <p>
+ * Caching information and settings can be found in <code>portal.properties</code>
+ * </p>
+ *
+ * @author Barma Igor - Amblard Mathieu
+ * @see DlLinkPersistenceImpl
+ * @see DlLinkUtil
+ * @generated
+ */
+public interface DlLinkPersistence extends BasePersistence<DlLink> {
+ /*
+ * NOTE FOR DEVELOPERS:
+ *
+ * Never modify or reference this interface directly. Always use {@link DlLinkUtil} to access the dl link persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
+ */
+
+ /**
+ * Caches the dl link in the entity cache if it is enabled.
+ *
+ * @param dlLink the dl link
+ */
+ public void cacheResult(com.pentila.entSavoie.cartable.model.DlLink dlLink);
+
+ /**
+ * Caches the dl links in the entity cache if it is enabled.
+ *
+ * @param dlLinks the dl links
+ */
+ public void cacheResult(
+ java.util.List<com.pentila.entSavoie.cartable.model.DlLink> dlLinks);
+
+ /**
+ * Creates a new dl link with the primary key. Does not add the dl link to the database.
+ *
+ * @param dlLinkId the primary key for the new dl link
+ * @return the new dl link
+ */
+ public com.pentila.entSavoie.cartable.model.DlLink create(long dlLinkId);
+
+ /**
+ * Removes the dl link with the primary key from the database. Also notifies the appropriate model listeners.
+ *
+ * @param dlLinkId the primary key of the dl link
+ * @return the dl link that was removed
+ * @throws com.pentila.entSavoie.cartable.NoSuchDlLinkException if a dl link with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.cartable.model.DlLink remove(long dlLinkId)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.cartable.NoSuchDlLinkException;
+
+ public com.pentila.entSavoie.cartable.model.DlLink updateImpl(
+ com.pentila.entSavoie.cartable.model.DlLink dlLink, boolean merge)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the dl link with the primary key or throws a {@link com.pentila.entSavoie.cartable.NoSuchDlLinkException} if it could not be found.
+ *
+ * @param dlLinkId the primary key of the dl link
+ * @return the dl link
+ * @throws com.pentila.entSavoie.cartable.NoSuchDlLinkException if a dl link with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.cartable.model.DlLink findByPrimaryKey(
+ long dlLinkId)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.cartable.NoSuchDlLinkException;
+
+ /**
+ * Returns the dl link with the primary key or returns <code>null</code> if it could not be found.
+ *
+ * @param dlLinkId the primary key of the dl link
+ * @return the dl link, or <code>null</code> if a dl link with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.cartable.model.DlLink fetchByPrimaryKey(
+ long dlLinkId)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the dl link where targetId = ? and type = ? or throws a {@link com.pentila.entSavoie.cartable.NoSuchDlLinkException} if it could not be found.
+ *
+ * @param targetId the target ID
+ * @param type the type
+ * @return the matching dl link
+ * @throws com.pentila.entSavoie.cartable.NoSuchDlLinkException if a matching dl link could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.cartable.model.DlLink findBytargetId_type(
+ long targetId, java.lang.String type)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.cartable.NoSuchDlLinkException;
+
+ /**
+ * Returns the dl link where targetId = ? and type = ? or returns <code>null</code> if it could not be found. Uses the finder cache.
+ *
+ * @param targetId the target ID
+ * @param type the type
+ * @return the matching dl link, or <code>null</code> if a matching dl link could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.cartable.model.DlLink fetchBytargetId_type(
+ long targetId, java.lang.String type)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the dl link where targetId = ? and type = ? or returns <code>null</code> if it could not be found, optionally using the finder cache.
+ *
+ * @param targetId the target ID
+ * @param type the type
+ * @param retrieveFromCache whether to use the finder cache
+ * @return the matching dl link, or <code>null</code> if a matching dl link could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.cartable.model.DlLink fetchBytargetId_type(
+ long targetId, java.lang.String type, boolean retrieveFromCache)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns all the dl links where sourceId = ? and type = ?.
+ *
+ * @param sourceId the source ID
+ * @param type the type
+ * @return the matching dl links
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.cartable.model.DlLink> findBysourceId_type(
+ long sourceId, java.lang.String type)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns a range of all the dl links where sourceId = ? and type = ?.
+ *
+ * <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 sourceId the source ID
+ * @param type the type
+ * @param start the lower bound of the range of dl links
+ * @param end the upper bound of the range of dl links (not inclusive)
+ * @return the range of matching dl links
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.cartable.model.DlLink> findBysourceId_type(
+ long sourceId, java.lang.String type, int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns an ordered range of all the dl links where sourceId = ? and type = ?.
+ *
+ * <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 sourceId the source ID
+ * @param type the type
+ * @param start the lower bound of the range of dl links
+ * @param end the upper bound of the range of dl links (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of matching dl links
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.cartable.model.DlLink> findBysourceId_type(
+ long sourceId, java.lang.String type, int start, int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the first dl link in the ordered set where sourceId = ? and type = ?.
+ *
+ * @param sourceId the source ID
+ * @param type the type
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching dl link
+ * @throws com.pentila.entSavoie.cartable.NoSuchDlLinkException if a matching dl link could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.cartable.model.DlLink findBysourceId_type_First(
+ long sourceId, java.lang.String type,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.cartable.NoSuchDlLinkException;
+
+ /**
+ * Returns the first dl link in the ordered set where sourceId = ? and type = ?.
+ *
+ * @param sourceId the source ID
+ * @param type the type
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching dl link, or <code>null</code> if a matching dl link could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.cartable.model.DlLink fetchBysourceId_type_First(
+ long sourceId, java.lang.String type,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the last dl link in the ordered set where sourceId = ? and type = ?.
+ *
+ * @param sourceId the source ID
+ * @param type the type
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching dl link
+ * @throws com.pentila.entSavoie.cartable.NoSuchDlLinkException if a matching dl link could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.cartable.model.DlLink findBysourceId_type_Last(
+ long sourceId, java.lang.String type,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.cartable.NoSuchDlLinkException;
+
+ /**
+ * Returns the last dl link in the ordered set where sourceId = ? and type = ?.
+ *
+ * @param sourceId the source ID
+ * @param type the type
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching dl link, or <code>null</code> if a matching dl link could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.cartable.model.DlLink fetchBysourceId_type_Last(
+ long sourceId, java.lang.String type,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the dl links before and after the current dl link in the ordered set where sourceId = ? and type = ?.
+ *
+ * @param dlLinkId the primary key of the current dl link
+ * @param sourceId the source ID
+ * @param type the type
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the previous, current, and next dl link
+ * @throws com.pentila.entSavoie.cartable.NoSuchDlLinkException if a dl link with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.cartable.model.DlLink[] findBysourceId_type_PrevAndNext(
+ long dlLinkId, long sourceId, java.lang.String type,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.cartable.NoSuchDlLinkException;
+
+ /**
+ * Returns all the dl links.
+ *
+ * @return the dl links
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.cartable.model.DlLink> findAll()
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns a range of all the dl links.
+ *
+ * <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 dl links
+ * @param end the upper bound of the range of dl links (not inclusive)
+ * @return the range of dl links
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.cartable.model.DlLink> findAll(
+ int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns an ordered range of all the dl links.
+ *
+ * <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 dl links
+ * @param end the upper bound of the range of dl links (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of dl links
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.cartable.model.DlLink> findAll(
+ int start, int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Removes the dl link where targetId = ? and type = ? from the database.
+ *
+ * @param targetId the target ID
+ * @param type the type
+ * @return the dl link that was removed
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.cartable.model.DlLink removeBytargetId_type(
+ long targetId, java.lang.String type)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.cartable.NoSuchDlLinkException;
+
+ /**
+ * Removes all the dl links where sourceId = ? and type = ? from the database.
+ *
+ * @param sourceId the source ID
+ * @param type the type
+ * @throws SystemException if a system exception occurred
+ */
+ public void removeBysourceId_type(long sourceId, java.lang.String type)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Removes all the dl links from the database.
+ *
+ * @throws SystemException if a system exception occurred
+ */
+ public void removeAll()
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the number of dl links where targetId = ? and type = ?.
+ *
+ * @param targetId the target ID
+ * @param type the type
+ * @return the number of matching dl links
+ * @throws SystemException if a system exception occurred
+ */
+ public int countBytargetId_type(long targetId, java.lang.String type)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the number of dl links where sourceId = ? and type = ?.
+ *
+ * @param sourceId the source ID
+ * @param type the type
+ * @return the number of matching dl links
+ * @throws SystemException if a system exception occurred
+ */
+ public int countBysourceId_type(long sourceId, java.lang.String type)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the number of dl links.
+ *
+ * @return the number of dl links
+ * @throws SystemException if a system exception occurred
+ */
+ public int countAll()
+ throws com.liferay.portal.kernel.exception.SystemException;
+}
\ No newline at end of file