Skip to content

Instantly share code, notes, and snippets.

@jamesnguyen101
Last active December 16, 2015 19:39
Show Gist options
  • Save jamesnguyen101/5486812 to your computer and use it in GitHub Desktop.
Save jamesnguyen101/5486812 to your computer and use it in GitHub Desktop.
QuestionLocalServiceImpl.java class
/**
* 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.bankexam.core.service.impl;
import com.bankexam.core.service.base.QuestionLocalServiceBaseImpl;
import com.bankexam.core.service.persistence.QuestionUtil;
/**
* The implementation of the question local service.
*
* <p>
* All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy their definitions into the {@link com.bankexam.core.service.QuestionLocalService} interface.
*
* <p>
* This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
* </p>
*
* @author loind
* @see com.bankexam.core.service.base.QuestionLocalServiceBaseImpl
* @see com.bankexam.core.service.QuestionLocalServiceUtil
*/
public class QuestionLocalServiceImpl extends QuestionLocalServiceBaseImpl {
/*
* NOTE FOR DEVELOPERS:
*
* Never reference this interface directly. Always use {@link com.bankexam.core.service.QuestionLocalServiceUtil} to access the question local service.
*/
/**
* Returns all the questions where content LIKE &#63; and questForm = &#63; and questKind = &#63; and points = &#63; and status = &#63;.
*
* @param content the content
* @param questForm the quest form
* @param questKind the quest kind
* @param points the points
* @param status the status
* @return the matching questions
* @throws SystemException if a system exception occurred
*/
public java.util.List<com.bankexam.core.model.Question> findByC_F_K_P_CD_MD_S(
java.lang.String content, int questForm, int questKind, int points,
int status) throws com.liferay.portal.kernel.exception.SystemException{
return QuestionUtil.findByC_F_K_P_CD_MD_S(content, questForm, questKind, points, status);
}
/**
* Returns a range of all the questions where content LIKE &#63; and questForm = &#63; and questKind = &#63; and points = &#63; and status = &#63;.
*
* <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 content the content
* @param questForm the quest form
* @param questKind the quest kind
* @param points the points
* @param status the status
* @param start the lower bound of the range of questions
* @param end the upper bound of the range of questions (not inclusive)
* @return the range of matching questions
* @throws SystemException if a system exception occurred
*/
public java.util.List<com.bankexam.core.model.Question> findByC_F_K_P_CD_MD_S(
java.lang.String content, int questForm, int questKind, int points,
int status, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException{
return QuestionUtil.findByC_F_K_P_CD_MD_S(content, questForm, questKind, points, status, start, end);
}
/**
* Returns an ordered range of all the questions where content LIKE &#63; and questForm = &#63; and questKind = &#63; and points = &#63; and status = &#63;.
*
* <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 content the content
* @param questForm the quest form
* @param questKind the quest kind
* @param points the points
* @param status the status
* @param start the lower bound of the range of questions
* @param end the upper bound of the range of questions (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @return the ordered range of matching questions
* @throws SystemException if a system exception occurred
*/
public java.util.List<com.bankexam.core.model.Question> findByC_F_K_P_CD_MD_S(
java.lang.String content, int questForm, int questKind, int points,
int status, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException{
return QuestionUtil.findByC_F_K_P_CD_MD_S(content, questForm, questKind, points, status, start, end, orderByComparator);
}
/**
* Returns all the questions.
*
* @return the questions
* @throws SystemException if a system exception occurred
*/
public java.util.List<com.bankexam.core.model.Question> findAll()
throws com.liferay.portal.kernel.exception.SystemException{
return QuestionUtil.findAll();
}
/**
* Returns a range of all the questions.
*
* <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 questions
* @param end the upper bound of the range of questions (not inclusive)
* @return the range of questions
* @throws SystemException if a system exception occurred
*/
public java.util.List<com.bankexam.core.model.Question> findAll(int start,
int end) throws com.liferay.portal.kernel.exception.SystemException{
return QuestionUtil.findAll(start, end);
}
/**
* Returns an ordered range of all the questions.
*
* <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 questions
* @param end the upper bound of the range of questions (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @return the ordered range of questions
* @throws SystemException if a system exception occurred
*/
public java.util.List<com.bankexam.core.model.Question> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException{
return QuestionUtil.findAll(start, end, orderByComparator);
}
/**
* Removes all the questions where content LIKE &#63; and questForm = &#63; and questKind = &#63; and points = &#63; and status = &#63; from the database.
*
* @param content the content
* @param questForm the quest form
* @param questKind the quest kind
* @param points the points
* @param status the status
* @throws SystemException if a system exception occurred
*/
public void removeByC_F_K_P_CD_MD_S(java.lang.String content,
int questForm, int questKind, int points, int status)
throws com.liferay.portal.kernel.exception.SystemException{
QuestionUtil.removeByC_F_K_P_CD_MD_S(content, questForm, questKind, points, status);
}
/**
* Removes all the questions from the database.
*
* @throws SystemException if a system exception occurred
*/
public void removeAll()
throws com.liferay.portal.kernel.exception.SystemException{
QuestionUtil.removeAll();
}
/**
* Returns the number of questions where content LIKE &#63; and questForm = &#63; and questKind = &#63; and points = &#63; and status = &#63;.
*
* @param content the content
* @param questForm the quest form
* @param questKind the quest kind
* @param points the points
* @param status the status
* @return the number of matching questions
* @throws SystemException if a system exception occurred
*/
public int countByC_F_K_P_CD_MD_S(java.lang.String content, int questForm,
int questKind, int points, int status)
throws com.liferay.portal.kernel.exception.SystemException{
return QuestionUtil.countByC_F_K_P_CD_MD_S(content, questForm, questKind, points, status);
}
/**
* Returns the number of questions.
*
* @return the number of questions
* @throws SystemException if a system exception occurred
*/
public int countAll()
throws com.liferay.portal.kernel.exception.SystemException{
return QuestionUtil.countAll();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment