@ProviderType
public abstract class PollsChoiceLocalServiceBaseImpl
extends com.liferay.portal.kernel.service.BaseLocalServiceImpl
implements com.liferay.polls.service.PollsChoiceLocalService, com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService
This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in PollsChoiceLocalServiceImpl.
PollsChoiceLocalServiceImpl,
PollsChoiceLocalServiceUtil| Modifier and Type | Field and Description |
|---|---|
protected com.liferay.counter.kernel.service.CounterLocalService |
counterLocalService |
protected com.liferay.portal.kernel.service.PersistedModelLocalServiceRegistry |
persistedModelLocalServiceRegistry |
protected com.liferay.polls.service.PollsChoiceLocalService |
pollsChoiceLocalService |
protected com.liferay.polls.service.persistence.PollsChoicePersistence |
pollsChoicePersistence |
protected com.liferay.polls.service.persistence.PollsQuestionFinder |
pollsQuestionFinder |
protected com.liferay.polls.service.PollsQuestionLocalService |
pollsQuestionLocalService |
protected com.liferay.polls.service.persistence.PollsQuestionPersistence |
pollsQuestionPersistence |
protected com.liferay.portal.kernel.service.UserLocalService |
userLocalService |
protected com.liferay.portal.kernel.service.persistence.UserPersistence |
userPersistence |
| Constructor and Description |
|---|
PollsChoiceLocalServiceBaseImpl() |
| Modifier and Type | Method and Description |
|---|---|
com.liferay.polls.model.PollsChoice |
addPollsChoice(com.liferay.polls.model.PollsChoice pollsChoice)
Adds the polls choice to the database.
|
void |
afterPropertiesSet() |
com.liferay.polls.model.PollsChoice |
createPollsChoice(long choiceId)
Creates a new polls choice with the primary key.
|
com.liferay.portal.kernel.model.PersistedModel |
deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) |
com.liferay.polls.model.PollsChoice |
deletePollsChoice(long choiceId)
Deletes the polls choice with the primary key from the database.
|
com.liferay.polls.model.PollsChoice |
deletePollsChoice(com.liferay.polls.model.PollsChoice pollsChoice)
Deletes the polls choice from the database.
|
void |
destroy() |
com.liferay.portal.kernel.dao.orm.DynamicQuery |
dynamicQuery() |
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows.
|
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.
|
long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.
|
long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
Returns the number of rows matching the dynamic query.
|
com.liferay.polls.model.PollsChoice |
fetchPollsChoice(long choiceId) |
com.liferay.polls.model.PollsChoice |
fetchPollsChoiceByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the polls choice matching the UUID and group.
|
com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getActionableDynamicQuery() |
com.liferay.counter.kernel.service.CounterLocalService |
getCounterLocalService()
Returns the counter local service.
|
com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery |
getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) |
com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
protected java.lang.Class<?> |
getModelClass() |
protected java.lang.String |
getModelClassName() |
java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
com.liferay.portal.kernel.model.PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
com.liferay.polls.model.PollsChoice |
getPollsChoice(long choiceId)
Returns the polls choice with the primary key.
|
com.liferay.polls.model.PollsChoice |
getPollsChoiceByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the polls choice matching the UUID and group.
|
com.liferay.polls.service.PollsChoiceLocalService |
getPollsChoiceLocalService()
Returns the polls choice local service.
|
com.liferay.polls.service.persistence.PollsChoicePersistence |
getPollsChoicePersistence()
Returns the polls choice persistence.
|
java.util.List<com.liferay.polls.model.PollsChoice> |
getPollsChoices(int start,
int end)
Returns a range of all the polls choices.
|
java.util.List<com.liferay.polls.model.PollsChoice> |
getPollsChoicesByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns all the polls choices matching the UUID and company.
|
java.util.List<com.liferay.polls.model.PollsChoice> |
getPollsChoicesByUuidAndCompanyId(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator)
Returns a range of polls choices matching the UUID and company.
|
int |
getPollsChoicesCount()
Returns the number of polls choices.
|
com.liferay.polls.service.persistence.PollsQuestionFinder |
getPollsQuestionFinder()
Returns the polls question finder.
|
com.liferay.polls.service.PollsQuestionLocalService |
getPollsQuestionLocalService()
Returns the polls question local service.
|
com.liferay.polls.service.persistence.PollsQuestionPersistence |
getPollsQuestionPersistence()
Returns the polls question persistence.
|
com.liferay.portal.kernel.service.UserLocalService |
getUserLocalService()
Returns the user local service.
|
com.liferay.portal.kernel.service.persistence.UserPersistence |
getUserPersistence()
Returns the user persistence.
|
protected void |
initActionableDynamicQuery(com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery actionableDynamicQuery) |
protected void |
runSQL(java.lang.String sql)
Performs a SQL query.
|
void |
setCounterLocalService(com.liferay.counter.kernel.service.CounterLocalService counterLocalService)
Sets the counter local service.
|
void |
setPollsChoiceLocalService(com.liferay.polls.service.PollsChoiceLocalService pollsChoiceLocalService)
Sets the polls choice local service.
|
void |
setPollsChoicePersistence(com.liferay.polls.service.persistence.PollsChoicePersistence pollsChoicePersistence)
Sets the polls choice persistence.
|
void |
setPollsQuestionFinder(com.liferay.polls.service.persistence.PollsQuestionFinder pollsQuestionFinder)
Sets the polls question finder.
|
void |
setPollsQuestionLocalService(com.liferay.polls.service.PollsQuestionLocalService pollsQuestionLocalService)
Sets the polls question local service.
|
void |
setPollsQuestionPersistence(com.liferay.polls.service.persistence.PollsQuestionPersistence pollsQuestionPersistence)
Sets the polls question persistence.
|
void |
setUserLocalService(com.liferay.portal.kernel.service.UserLocalService userLocalService)
Sets the user local service.
|
void |
setUserPersistence(com.liferay.portal.kernel.service.persistence.UserPersistence userPersistence)
Sets the user persistence.
|
com.liferay.polls.model.PollsChoice |
updatePollsChoice(com.liferay.polls.model.PollsChoice pollsChoice)
Updates the polls choice in the database or adds it if it does not yet exist.
|
getClassLoader, getLocalizationMap@BeanReference(type=com.liferay.polls.service.PollsChoiceLocalService.class) protected com.liferay.polls.service.PollsChoiceLocalService pollsChoiceLocalService
@BeanReference(type=com.liferay.polls.service.persistence.PollsChoicePersistence.class) protected com.liferay.polls.service.persistence.PollsChoicePersistence pollsChoicePersistence
@ServiceReference(type=com.liferay.counter.kernel.service.CounterLocalService.class) protected com.liferay.counter.kernel.service.CounterLocalService counterLocalService
@ServiceReference(type=com.liferay.portal.kernel.service.UserLocalService.class) protected com.liferay.portal.kernel.service.UserLocalService userLocalService
@ServiceReference(type=com.liferay.portal.kernel.service.persistence.UserPersistence.class) protected com.liferay.portal.kernel.service.persistence.UserPersistence userPersistence
@BeanReference(type=com.liferay.polls.service.PollsQuestionLocalService.class) protected com.liferay.polls.service.PollsQuestionLocalService pollsQuestionLocalService
@BeanReference(type=com.liferay.polls.service.persistence.PollsQuestionPersistence.class) protected com.liferay.polls.service.persistence.PollsQuestionPersistence pollsQuestionPersistence
@BeanReference(type=com.liferay.polls.service.persistence.PollsQuestionFinder.class) protected com.liferay.polls.service.persistence.PollsQuestionFinder pollsQuestionFinder
@ServiceReference(type=com.liferay.portal.kernel.service.PersistedModelLocalServiceRegistry.class) protected com.liferay.portal.kernel.service.PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry
@Indexable(type=REINDEX) public com.liferay.polls.model.PollsChoice addPollsChoice(com.liferay.polls.model.PollsChoice pollsChoice)
addPollsChoice in interface com.liferay.polls.service.PollsChoiceLocalServicepollsChoice - the polls choicepublic com.liferay.polls.model.PollsChoice createPollsChoice(long choiceId)
createPollsChoice in interface com.liferay.polls.service.PollsChoiceLocalServicechoiceId - the primary key for the new polls choice@Indexable(type=DELETE)
public com.liferay.polls.model.PollsChoice deletePollsChoice(long choiceId)
throws com.liferay.portal.kernel.exception.PortalException
deletePollsChoice in interface com.liferay.polls.service.PollsChoiceLocalServicechoiceId - the primary key of the polls choicecom.liferay.portal.kernel.exception.PortalException - if a polls choice with the primary key could not be found@Indexable(type=DELETE) public com.liferay.polls.model.PollsChoice deletePollsChoice(com.liferay.polls.model.PollsChoice pollsChoice)
deletePollsChoice in interface com.liferay.polls.service.PollsChoiceLocalServicepollsChoice - the polls choicepublic com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
dynamicQuery in interface com.liferay.polls.service.PollsChoiceLocalServicepublic <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery in interface com.liferay.polls.service.PollsChoiceLocalServicedynamicQuery - the dynamic querypublic <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from PollsChoiceModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
dynamicQuery in interface com.liferay.polls.service.PollsChoiceLocalServicedynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)public <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from PollsChoiceModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
dynamicQuery in interface com.liferay.polls.service.PollsChoiceLocalServicedynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQueryCount in interface com.liferay.polls.service.PollsChoiceLocalServicedynamicQuery - the dynamic querypublic long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
dynamicQueryCount in interface com.liferay.polls.service.PollsChoiceLocalServicedynamicQuery - the dynamic queryprojection - the projection to apply to the querypublic com.liferay.polls.model.PollsChoice fetchPollsChoice(long choiceId)
fetchPollsChoice in interface com.liferay.polls.service.PollsChoiceLocalServicepublic com.liferay.polls.model.PollsChoice fetchPollsChoiceByUuidAndGroupId(java.lang.String uuid,
long groupId)
fetchPollsChoiceByUuidAndGroupId in interface com.liferay.polls.service.PollsChoiceLocalServiceuuid - the polls choice's UUIDgroupId - the primary key of the groupnull if a matching polls choice could not be foundpublic com.liferay.polls.model.PollsChoice getPollsChoice(long choiceId)
throws com.liferay.portal.kernel.exception.PortalException
getPollsChoice in interface com.liferay.polls.service.PollsChoiceLocalServicechoiceId - the primary key of the polls choicecom.liferay.portal.kernel.exception.PortalException - if a polls choice with the primary key could not be foundpublic com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
getActionableDynamicQuery in interface com.liferay.polls.service.PollsChoiceLocalServicepublic com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery in interface com.liferay.polls.service.PollsChoiceLocalServiceprotected void initActionableDynamicQuery(com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery actionableDynamicQuery)
public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
getExportActionableDynamicQuery in interface com.liferay.polls.service.PollsChoiceLocalServicepublic com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel)
throws com.liferay.portal.kernel.exception.PortalException
deletePersistedModel in interface com.liferay.polls.service.PollsChoiceLocalServicedeletePersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj)
throws com.liferay.portal.kernel.exception.PortalException
getPersistedModel in interface com.liferay.polls.service.PollsChoiceLocalServicegetPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic java.util.List<com.liferay.polls.model.PollsChoice> getPollsChoicesByUuidAndCompanyId(java.lang.String uuid,
long companyId)
getPollsChoicesByUuidAndCompanyId in interface com.liferay.polls.service.PollsChoiceLocalServiceuuid - the UUID of the polls choicescompanyId - the primary key of the companypublic java.util.List<com.liferay.polls.model.PollsChoice> getPollsChoicesByUuidAndCompanyId(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.polls.model.PollsChoice> orderByComparator)
getPollsChoicesByUuidAndCompanyId in interface com.liferay.polls.service.PollsChoiceLocalServiceuuid - the UUID of the polls choicescompanyId - the primary key of the companystart - the lower bound of the range of polls choicesend - the upper bound of the range of polls choices (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public com.liferay.polls.model.PollsChoice getPollsChoiceByUuidAndGroupId(java.lang.String uuid,
long groupId)
throws com.liferay.portal.kernel.exception.PortalException
getPollsChoiceByUuidAndGroupId in interface com.liferay.polls.service.PollsChoiceLocalServiceuuid - the polls choice's UUIDgroupId - the primary key of the groupcom.liferay.portal.kernel.exception.PortalException - if a matching polls choice could not be foundpublic java.util.List<com.liferay.polls.model.PollsChoice> getPollsChoices(int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from PollsChoiceModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
getPollsChoices in interface com.liferay.polls.service.PollsChoiceLocalServicestart - the lower bound of the range of polls choicesend - the upper bound of the range of polls choices (not inclusive)public int getPollsChoicesCount()
getPollsChoicesCount in interface com.liferay.polls.service.PollsChoiceLocalService@Indexable(type=REINDEX) public com.liferay.polls.model.PollsChoice updatePollsChoice(com.liferay.polls.model.PollsChoice pollsChoice)
updatePollsChoice in interface com.liferay.polls.service.PollsChoiceLocalServicepollsChoice - the polls choicepublic com.liferay.polls.service.PollsChoiceLocalService getPollsChoiceLocalService()
public void setPollsChoiceLocalService(com.liferay.polls.service.PollsChoiceLocalService pollsChoiceLocalService)
pollsChoiceLocalService - the polls choice local servicepublic com.liferay.polls.service.persistence.PollsChoicePersistence getPollsChoicePersistence()
public void setPollsChoicePersistence(com.liferay.polls.service.persistence.PollsChoicePersistence pollsChoicePersistence)
pollsChoicePersistence - the polls choice persistencepublic com.liferay.counter.kernel.service.CounterLocalService getCounterLocalService()
public void setCounterLocalService(com.liferay.counter.kernel.service.CounterLocalService counterLocalService)
counterLocalService - the counter local servicepublic com.liferay.portal.kernel.service.UserLocalService getUserLocalService()
public void setUserLocalService(com.liferay.portal.kernel.service.UserLocalService userLocalService)
userLocalService - the user local servicepublic com.liferay.portal.kernel.service.persistence.UserPersistence getUserPersistence()
public void setUserPersistence(com.liferay.portal.kernel.service.persistence.UserPersistence userPersistence)
userPersistence - the user persistencepublic com.liferay.polls.service.PollsQuestionLocalService getPollsQuestionLocalService()
public void setPollsQuestionLocalService(com.liferay.polls.service.PollsQuestionLocalService pollsQuestionLocalService)
pollsQuestionLocalService - the polls question local servicepublic com.liferay.polls.service.persistence.PollsQuestionPersistence getPollsQuestionPersistence()
public void setPollsQuestionPersistence(com.liferay.polls.service.persistence.PollsQuestionPersistence pollsQuestionPersistence)
pollsQuestionPersistence - the polls question persistencepublic com.liferay.polls.service.persistence.PollsQuestionFinder getPollsQuestionFinder()
public void setPollsQuestionFinder(com.liferay.polls.service.persistence.PollsQuestionFinder pollsQuestionFinder)
pollsQuestionFinder - the polls question finderpublic void afterPropertiesSet()
public void destroy()
public java.lang.String getOSGiServiceIdentifier()
getOSGiServiceIdentifier in interface com.liferay.polls.service.PollsChoiceLocalServicegetOSGiServiceIdentifier in interface com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiServiceprotected java.lang.Class<?> getModelClass()
protected java.lang.String getModelClassName()
protected void runSQL(java.lang.String sql)
sql - the sql query