--- /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.SessionTeacher;
+
+/**
+ * The persistence interface for the session teacher service.
+ *
+ * <p>
+ * Caching information and settings can be found in <code>portal.properties</code>
+ * </p>
+ *
+ * @author Cedric Lecarpentier
+ * @see SessionTeacherPersistenceImpl
+ * @see SessionTeacherUtil
+ * @generated
+ */
+public interface SessionTeacherPersistence extends BasePersistence<SessionTeacher> {
+ /*
+ * NOTE FOR DEVELOPERS:
+ *
+ * Never modify or reference this interface directly. Always use {@link SessionTeacherUtil} to access the session teacher persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
+ */
+
+ /**
+ * Caches the session teacher in the entity cache if it is enabled.
+ *
+ * @param sessionTeacher the session teacher
+ */
+ public void cacheResult(
+ com.pentila.entSavoie.cdt.model.SessionTeacher sessionTeacher);
+
+ /**
+ * Caches the session teachers in the entity cache if it is enabled.
+ *
+ * @param sessionTeachers the session teachers
+ */
+ public void cacheResult(
+ java.util.List<com.pentila.entSavoie.cdt.model.SessionTeacher> sessionTeachers);
+
+ /**
+ * Creates a new session teacher with the primary key. Does not add the session teacher to the database.
+ *
+ * @param sessionTeacherId the primary key for the new session teacher
+ * @return the new session teacher
+ */
+ public com.pentila.entSavoie.cdt.model.SessionTeacher create(
+ long sessionTeacherId);
+
+ /**
+ * Removes the session teacher with the primary key from the database. Also notifies the appropriate model listeners.
+ *
+ * @param sessionTeacherId the primary key of the session teacher
+ * @return the session teacher that was removed
+ * @throws com.pentila.entSavoie.cdt.NoSuchSessionTeacherException if a session teacher with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.cdt.model.SessionTeacher remove(
+ long sessionTeacherId)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.cdt.NoSuchSessionTeacherException;
+
+ public com.pentila.entSavoie.cdt.model.SessionTeacher updateImpl(
+ com.pentila.entSavoie.cdt.model.SessionTeacher sessionTeacher,
+ boolean merge)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the session teacher with the primary key or throws a {@link com.pentila.entSavoie.cdt.NoSuchSessionTeacherException} if it could not be found.
+ *
+ * @param sessionTeacherId the primary key of the session teacher
+ * @return the session teacher
+ * @throws com.pentila.entSavoie.cdt.NoSuchSessionTeacherException if a session teacher with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.cdt.model.SessionTeacher findByPrimaryKey(
+ long sessionTeacherId)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.cdt.NoSuchSessionTeacherException;
+
+ /**
+ * Returns the session teacher with the primary key or returns <code>null</code> if it could not be found.
+ *
+ * @param sessionTeacherId the primary key of the session teacher
+ * @return the session teacher, or <code>null</code> if a session teacher with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.cdt.model.SessionTeacher fetchByPrimaryKey(
+ long sessionTeacherId)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns all the session teachers where teacherId = ?.
+ *
+ * @param teacherId the teacher ID
+ * @return the matching session teachers
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.cdt.model.SessionTeacher> findByteacherId(
+ long teacherId)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns a range of all the session teachers where teacherId = ?.
+ *
+ * <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 teacherId the teacher ID
+ * @param start the lower bound of the range of session teachers
+ * @param end the upper bound of the range of session teachers (not inclusive)
+ * @return the range of matching session teachers
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.cdt.model.SessionTeacher> findByteacherId(
+ long teacherId, int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns an ordered range of all the session teachers where teacherId = ?.
+ *
+ * <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 teacherId the teacher ID
+ * @param start the lower bound of the range of session teachers
+ * @param end the upper bound of the range of session teachers (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of matching session teachers
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.cdt.model.SessionTeacher> findByteacherId(
+ long teacherId, int start, int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the first session teacher in the ordered set where teacherId = ?.
+ *
+ * @param teacherId the teacher ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching session teacher
+ * @throws com.pentila.entSavoie.cdt.NoSuchSessionTeacherException if a matching session teacher could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.cdt.model.SessionTeacher findByteacherId_First(
+ long teacherId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.cdt.NoSuchSessionTeacherException;
+
+ /**
+ * Returns the first session teacher in the ordered set where teacherId = ?.
+ *
+ * @param teacherId the teacher ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching session teacher, or <code>null</code> if a matching session teacher could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.cdt.model.SessionTeacher fetchByteacherId_First(
+ long teacherId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the last session teacher in the ordered set where teacherId = ?.
+ *
+ * @param teacherId the teacher ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching session teacher
+ * @throws com.pentila.entSavoie.cdt.NoSuchSessionTeacherException if a matching session teacher could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.cdt.model.SessionTeacher findByteacherId_Last(
+ long teacherId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.cdt.NoSuchSessionTeacherException;
+
+ /**
+ * Returns the last session teacher in the ordered set where teacherId = ?.
+ *
+ * @param teacherId the teacher ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching session teacher, or <code>null</code> if a matching session teacher could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.cdt.model.SessionTeacher fetchByteacherId_Last(
+ long teacherId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the session teachers before and after the current session teacher in the ordered set where teacherId = ?.
+ *
+ * @param sessionTeacherId the primary key of the current session teacher
+ * @param teacherId the teacher ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the previous, current, and next session teacher
+ * @throws com.pentila.entSavoie.cdt.NoSuchSessionTeacherException if a session teacher with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.cdt.model.SessionTeacher[] findByteacherId_PrevAndNext(
+ long sessionTeacherId, long teacherId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.cdt.NoSuchSessionTeacherException;
+
+ /**
+ * Returns all the session teachers where sessionId = ?.
+ *
+ * @param sessionId the session ID
+ * @return the matching session teachers
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.cdt.model.SessionTeacher> findBysessionId(
+ long sessionId)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns a range of all the session teachers where sessionId = ?.
+ *
+ * <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 sessionId the session ID
+ * @param start the lower bound of the range of session teachers
+ * @param end the upper bound of the range of session teachers (not inclusive)
+ * @return the range of matching session teachers
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.cdt.model.SessionTeacher> findBysessionId(
+ long sessionId, int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns an ordered range of all the session teachers where sessionId = ?.
+ *
+ * <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 sessionId the session ID
+ * @param start the lower bound of the range of session teachers
+ * @param end the upper bound of the range of session teachers (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of matching session teachers
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.cdt.model.SessionTeacher> findBysessionId(
+ long sessionId, int start, int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the first session teacher in the ordered set where sessionId = ?.
+ *
+ * @param sessionId the session ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching session teacher
+ * @throws com.pentila.entSavoie.cdt.NoSuchSessionTeacherException if a matching session teacher could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.cdt.model.SessionTeacher findBysessionId_First(
+ long sessionId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.cdt.NoSuchSessionTeacherException;
+
+ /**
+ * Returns the first session teacher in the ordered set where sessionId = ?.
+ *
+ * @param sessionId the session ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching session teacher, or <code>null</code> if a matching session teacher could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.cdt.model.SessionTeacher fetchBysessionId_First(
+ long sessionId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the last session teacher in the ordered set where sessionId = ?.
+ *
+ * @param sessionId the session ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching session teacher
+ * @throws com.pentila.entSavoie.cdt.NoSuchSessionTeacherException if a matching session teacher could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.cdt.model.SessionTeacher findBysessionId_Last(
+ long sessionId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.cdt.NoSuchSessionTeacherException;
+
+ /**
+ * Returns the last session teacher in the ordered set where sessionId = ?.
+ *
+ * @param sessionId the session ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching session teacher, or <code>null</code> if a matching session teacher could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.cdt.model.SessionTeacher fetchBysessionId_Last(
+ long sessionId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the session teachers before and after the current session teacher in the ordered set where sessionId = ?.
+ *
+ * @param sessionTeacherId the primary key of the current session teacher
+ * @param sessionId the session ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the previous, current, and next session teacher
+ * @throws com.pentila.entSavoie.cdt.NoSuchSessionTeacherException if a session teacher with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.cdt.model.SessionTeacher[] findBysessionId_PrevAndNext(
+ long sessionTeacherId, long sessionId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.cdt.NoSuchSessionTeacherException;
+
+ /**
+ * Returns all the session teachers.
+ *
+ * @return the session teachers
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.cdt.model.SessionTeacher> findAll()
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns a range of all the session teachers.
+ *
+ * <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 session teachers
+ * @param end the upper bound of the range of session teachers (not inclusive)
+ * @return the range of session teachers
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.cdt.model.SessionTeacher> findAll(
+ int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns an ordered range of all the session teachers.
+ *
+ * <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 session teachers
+ * @param end the upper bound of the range of session teachers (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of session teachers
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.cdt.model.SessionTeacher> findAll(
+ int start, int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Removes all the session teachers where teacherId = ? from the database.
+ *
+ * @param teacherId the teacher ID
+ * @throws SystemException if a system exception occurred
+ */
+ public void removeByteacherId(long teacherId)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Removes all the session teachers where sessionId = ? from the database.
+ *
+ * @param sessionId the session ID
+ * @throws SystemException if a system exception occurred
+ */
+ public void removeBysessionId(long sessionId)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Removes all the session teachers from the database.
+ *
+ * @throws SystemException if a system exception occurred
+ */
+ public void removeAll()
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the number of session teachers where teacherId = ?.
+ *
+ * @param teacherId the teacher ID
+ * @return the number of matching session teachers
+ * @throws SystemException if a system exception occurred
+ */
+ public int countByteacherId(long teacherId)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the number of session teachers where sessionId = ?.
+ *
+ * @param sessionId the session ID
+ * @return the number of matching session teachers
+ * @throws SystemException if a system exception occurred
+ */
+ public int countBysessionId(long sessionId)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the number of session teachers.
+ *
+ * @return the number of session teachers
+ * @throws SystemException if a system exception occurred
+ */
+ public int countAll()
+ throws com.liferay.portal.kernel.exception.SystemException;
+}
\ No newline at end of file