--- /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.cdt.service.persistence;
+
+import com.liferay.portal.service.persistence.BasePersistence;
+
+import com.pentila.entSavoie.cdt.model.Subject;
+
+/**
+ * The persistence interface for the subject service.
+ *
+ * <p>
+ * Caching information and settings can be found in <code>portal.properties</code>
+ * </p>
+ *
+ * @author Cedric Lecarpentier
+ * @see SubjectPersistenceImpl
+ * @see SubjectUtil
+ * @generated
+ */
+public interface SubjectPersistence extends BasePersistence<Subject> {
+ /*
+ * NOTE FOR DEVELOPERS:
+ *
+ * Never modify or reference this interface directly. Always use {@link SubjectUtil} to access the subject persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
+ */
+
+ /**
+ * Caches the subject in the entity cache if it is enabled.
+ *
+ * @param subject the subject
+ */
+ public void cacheResult(com.pentila.entSavoie.cdt.model.Subject subject);
+
+ /**
+ * Caches the subjects in the entity cache if it is enabled.
+ *
+ * @param subjects the subjects
+ */
+ public void cacheResult(
+ java.util.List<com.pentila.entSavoie.cdt.model.Subject> subjects);
+
+ /**
+ * Creates a new subject with the primary key. Does not add the subject to the database.
+ *
+ * @param subjectId the primary key for the new subject
+ * @return the new subject
+ */
+ public com.pentila.entSavoie.cdt.model.Subject create(long subjectId);
+
+ /**
+ * Removes the subject with the primary key from the database. Also notifies the appropriate model listeners.
+ *
+ * @param subjectId the primary key of the subject
+ * @return the subject that was removed
+ * @throws com.pentila.entSavoie.cdt.NoSuchSubjectException if a subject with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.cdt.model.Subject remove(long subjectId)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.cdt.NoSuchSubjectException;
+
+ public com.pentila.entSavoie.cdt.model.Subject updateImpl(
+ com.pentila.entSavoie.cdt.model.Subject subject, boolean merge)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the subject with the primary key or throws a {@link com.pentila.entSavoie.cdt.NoSuchSubjectException} if it could not be found.
+ *
+ * @param subjectId the primary key of the subject
+ * @return the subject
+ * @throws com.pentila.entSavoie.cdt.NoSuchSubjectException if a subject with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.cdt.model.Subject findByPrimaryKey(
+ long subjectId)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.cdt.NoSuchSubjectException;
+
+ /**
+ * Returns the subject with the primary key or returns <code>null</code> if it could not be found.
+ *
+ * @param subjectId the primary key of the subject
+ * @return the subject, or <code>null</code> if a subject with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.cdt.model.Subject fetchByPrimaryKey(
+ long subjectId)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns all the subjects where strCode = ?.
+ *
+ * @param strCode the str code
+ * @return the matching subjects
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.cdt.model.Subject> findBystrCode(
+ java.lang.String strCode)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns a range of all the subjects where strCode = ?.
+ *
+ * <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 strCode the str code
+ * @param start the lower bound of the range of subjects
+ * @param end the upper bound of the range of subjects (not inclusive)
+ * @return the range of matching subjects
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.cdt.model.Subject> findBystrCode(
+ java.lang.String strCode, int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns an ordered range of all the subjects where strCode = ?.
+ *
+ * <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 strCode the str code
+ * @param start the lower bound of the range of subjects
+ * @param end the upper bound of the range of subjects (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of matching subjects
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.cdt.model.Subject> findBystrCode(
+ java.lang.String strCode, int start, int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the first subject in the ordered set where strCode = ?.
+ *
+ * @param strCode the str code
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching subject
+ * @throws com.pentila.entSavoie.cdt.NoSuchSubjectException if a matching subject could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.cdt.model.Subject findBystrCode_First(
+ java.lang.String strCode,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.cdt.NoSuchSubjectException;
+
+ /**
+ * Returns the first subject in the ordered set where strCode = ?.
+ *
+ * @param strCode the str code
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching subject, or <code>null</code> if a matching subject could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.cdt.model.Subject fetchBystrCode_First(
+ java.lang.String strCode,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the last subject in the ordered set where strCode = ?.
+ *
+ * @param strCode the str code
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching subject
+ * @throws com.pentila.entSavoie.cdt.NoSuchSubjectException if a matching subject could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.cdt.model.Subject findBystrCode_Last(
+ java.lang.String strCode,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.cdt.NoSuchSubjectException;
+
+ /**
+ * Returns the last subject in the ordered set where strCode = ?.
+ *
+ * @param strCode the str code
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching subject, or <code>null</code> if a matching subject could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.cdt.model.Subject fetchBystrCode_Last(
+ java.lang.String strCode,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the subjects before and after the current subject in the ordered set where strCode = ?.
+ *
+ * @param subjectId the primary key of the current subject
+ * @param strCode the str code
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the previous, current, and next subject
+ * @throws com.pentila.entSavoie.cdt.NoSuchSubjectException if a subject with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.cdt.model.Subject[] findBystrCode_PrevAndNext(
+ long subjectId, java.lang.String strCode,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.cdt.NoSuchSubjectException;
+
+ /**
+ * Returns all the subjects where longLabel = ?.
+ *
+ * @param longLabel the long label
+ * @return the matching subjects
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.cdt.model.Subject> findBylongLabel(
+ java.lang.String longLabel)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns a range of all the subjects where longLabel = ?.
+ *
+ * <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 longLabel the long label
+ * @param start the lower bound of the range of subjects
+ * @param end the upper bound of the range of subjects (not inclusive)
+ * @return the range of matching subjects
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.cdt.model.Subject> findBylongLabel(
+ java.lang.String longLabel, int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns an ordered range of all the subjects where longLabel = ?.
+ *
+ * <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 longLabel the long label
+ * @param start the lower bound of the range of subjects
+ * @param end the upper bound of the range of subjects (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of matching subjects
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.cdt.model.Subject> findBylongLabel(
+ java.lang.String longLabel, int start, int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the first subject in the ordered set where longLabel = ?.
+ *
+ * @param longLabel the long label
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching subject
+ * @throws com.pentila.entSavoie.cdt.NoSuchSubjectException if a matching subject could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.cdt.model.Subject findBylongLabel_First(
+ java.lang.String longLabel,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.cdt.NoSuchSubjectException;
+
+ /**
+ * Returns the first subject in the ordered set where longLabel = ?.
+ *
+ * @param longLabel the long label
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching subject, or <code>null</code> if a matching subject could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.cdt.model.Subject fetchBylongLabel_First(
+ java.lang.String longLabel,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the last subject in the ordered set where longLabel = ?.
+ *
+ * @param longLabel the long label
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching subject
+ * @throws com.pentila.entSavoie.cdt.NoSuchSubjectException if a matching subject could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.cdt.model.Subject findBylongLabel_Last(
+ java.lang.String longLabel,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.cdt.NoSuchSubjectException;
+
+ /**
+ * Returns the last subject in the ordered set where longLabel = ?.
+ *
+ * @param longLabel the long label
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching subject, or <code>null</code> if a matching subject could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.cdt.model.Subject fetchBylongLabel_Last(
+ java.lang.String longLabel,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the subjects before and after the current subject in the ordered set where longLabel = ?.
+ *
+ * @param subjectId the primary key of the current subject
+ * @param longLabel the long label
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the previous, current, and next subject
+ * @throws com.pentila.entSavoie.cdt.NoSuchSubjectException if a subject with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.cdt.model.Subject[] findBylongLabel_PrevAndNext(
+ long subjectId, java.lang.String longLabel,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.cdt.NoSuchSubjectException;
+
+ /**
+ * Returns all the subjects.
+ *
+ * @return the subjects
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.cdt.model.Subject> findAll()
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns a range of all the subjects.
+ *
+ * <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 subjects
+ * @param end the upper bound of the range of subjects (not inclusive)
+ * @return the range of subjects
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.cdt.model.Subject> findAll(
+ int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns an ordered range of all the subjects.
+ *
+ * <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 subjects
+ * @param end the upper bound of the range of subjects (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of subjects
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.cdt.model.Subject> findAll(
+ int start, int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Removes all the subjects where strCode = ? from the database.
+ *
+ * @param strCode the str code
+ * @throws SystemException if a system exception occurred
+ */
+ public void removeBystrCode(java.lang.String strCode)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Removes all the subjects where longLabel = ? from the database.
+ *
+ * @param longLabel the long label
+ * @throws SystemException if a system exception occurred
+ */
+ public void removeBylongLabel(java.lang.String longLabel)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Removes all the subjects from the database.
+ *
+ * @throws SystemException if a system exception occurred
+ */
+ public void removeAll()
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the number of subjects where strCode = ?.
+ *
+ * @param strCode the str code
+ * @return the number of matching subjects
+ * @throws SystemException if a system exception occurred
+ */
+ public int countBystrCode(java.lang.String strCode)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the number of subjects where longLabel = ?.
+ *
+ * @param longLabel the long label
+ * @return the number of matching subjects
+ * @throws SystemException if a system exception occurred
+ */
+ public int countBylongLabel(java.lang.String longLabel)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the number of subjects.
+ *
+ * @return the number of subjects
+ * @throws SystemException if a system exception occurred
+ */
+ public int countAll()
+ throws com.liferay.portal.kernel.exception.SystemException;
+}
\ No newline at end of file