/portal-kernel/src/com/liferay/portal/kernel/service/CompanyInfoLocalServiceUtil.java
https://github.com/danielreuther/liferay-portal · Java · 304 lines · 103 code · 43 blank · 158 comment · 0 complexity · 980dd3472357557cb2ad77062661aa14 MD5 · raw file
- /**
- * Copyright (c) 2000-present 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.liferay.portal.kernel.service;
- import com.liferay.petra.sql.dsl.query.DSLQuery;
- import com.liferay.portal.kernel.dao.orm.DynamicQuery;
- import com.liferay.portal.kernel.exception.PortalException;
- import com.liferay.portal.kernel.model.CompanyInfo;
- import com.liferay.portal.kernel.model.PersistedModel;
- import com.liferay.portal.kernel.util.OrderByComparator;
- import java.io.Serializable;
- import java.util.List;
- /**
- * Provides the local service utility for CompanyInfo. This utility wraps
- * <code>com.liferay.portal.service.impl.CompanyInfoLocalServiceImpl</code> and
- * is an access point for service operations in application layer code running
- * on the local server. 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.
- *
- * @author Brian Wing Shun Chan
- * @see CompanyInfoLocalService
- * @generated
- */
- public class CompanyInfoLocalServiceUtil {
- /*
- * NOTE FOR DEVELOPERS:
- *
- * Never modify this class directly. Add custom service methods to <code>com.liferay.portal.service.impl.CompanyInfoLocalServiceImpl</code> and rerun ServiceBuilder to regenerate this class.
- */
- /**
- * Adds the company info to the database. Also notifies the appropriate model listeners.
- *
- * <p>
- * <strong>Important:</strong> Inspect CompanyInfoLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- * </p>
- *
- * @param companyInfo the company info
- * @return the company info that was added
- */
- public static CompanyInfo addCompanyInfo(CompanyInfo companyInfo) {
- return getService().addCompanyInfo(companyInfo);
- }
- /**
- * Creates a new company info with the primary key. Does not add the company info to the database.
- *
- * @param companyInfoId the primary key for the new company info
- * @return the new company info
- */
- public static CompanyInfo createCompanyInfo(long companyInfoId) {
- return getService().createCompanyInfo(companyInfoId);
- }
- /**
- * @throws PortalException
- */
- public static PersistedModel createPersistedModel(
- Serializable primaryKeyObj)
- throws PortalException {
- return getService().createPersistedModel(primaryKeyObj);
- }
- /**
- * Deletes the company info from the database. Also notifies the appropriate model listeners.
- *
- * <p>
- * <strong>Important:</strong> Inspect CompanyInfoLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- * </p>
- *
- * @param companyInfo the company info
- * @return the company info that was removed
- */
- public static CompanyInfo deleteCompanyInfo(CompanyInfo companyInfo) {
- return getService().deleteCompanyInfo(companyInfo);
- }
- /**
- * Deletes the company info with the primary key from the database. Also notifies the appropriate model listeners.
- *
- * <p>
- * <strong>Important:</strong> Inspect CompanyInfoLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- * </p>
- *
- * @param companyInfoId the primary key of the company info
- * @return the company info that was removed
- * @throws PortalException if a company info with the primary key could not be found
- */
- public static CompanyInfo deleteCompanyInfo(long companyInfoId)
- throws PortalException {
- return getService().deleteCompanyInfo(companyInfoId);
- }
- /**
- * @throws PortalException
- */
- public static PersistedModel deletePersistedModel(
- PersistedModel persistedModel)
- throws PortalException {
- return getService().deletePersistedModel(persistedModel);
- }
- public static <T> T dslQuery(DSLQuery dslQuery) {
- return getService().dslQuery(dslQuery);
- }
- public static int dslQueryCount(DSLQuery dslQuery) {
- return getService().dslQueryCount(dslQuery);
- }
- public static DynamicQuery dynamicQuery() {
- return getService().dynamicQuery();
- }
- /**
- * Performs a dynamic query on the database and returns the matching rows.
- *
- * @param dynamicQuery the dynamic query
- * @return the matching rows
- */
- public static <T> List<T> dynamicQuery(DynamicQuery dynamicQuery) {
- return getService().dynamicQuery(dynamicQuery);
- }
- /**
- * Performs a dynamic query on the database and returns a range of the matching rows.
- *
- * <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 <code>com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS</code> will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent, then the query will include the default ORDER BY logic from <code>com.liferay.portal.model.impl.CompanyInfoModelImpl</code>.
- * </p>
- *
- * @param dynamicQuery the dynamic query
- * @param start the lower bound of the range of model instances
- * @param end the upper bound of the range of model instances (not inclusive)
- * @return the range of matching rows
- */
- public static <T> List<T> dynamicQuery(
- DynamicQuery dynamicQuery, int start, int end) {
- return getService().dynamicQuery(dynamicQuery, start, end);
- }
- /**
- * Performs a dynamic query on the database and returns an ordered range of the matching rows.
- *
- * <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 <code>com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS</code> will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent, then the query will include the default ORDER BY logic from <code>com.liferay.portal.model.impl.CompanyInfoModelImpl</code>.
- * </p>
- *
- * @param dynamicQuery the dynamic query
- * @param start the lower bound of the range of model instances
- * @param end the upper bound of the range of model instances (not inclusive)
- * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
- * @return the ordered range of matching rows
- */
- public static <T> List<T> dynamicQuery(
- DynamicQuery dynamicQuery, int start, int end,
- OrderByComparator<T> orderByComparator) {
- return getService().dynamicQuery(
- dynamicQuery, start, end, orderByComparator);
- }
- /**
- * Returns the number of rows matching the dynamic query.
- *
- * @param dynamicQuery the dynamic query
- * @return the number of rows matching the dynamic query
- */
- public static long dynamicQueryCount(DynamicQuery dynamicQuery) {
- return getService().dynamicQueryCount(dynamicQuery);
- }
- /**
- * Returns the number of rows matching the dynamic query.
- *
- * @param dynamicQuery the dynamic query
- * @param projection the projection to apply to the query
- * @return the number of rows matching the dynamic query
- */
- public static long dynamicQueryCount(
- DynamicQuery dynamicQuery,
- com.liferay.portal.kernel.dao.orm.Projection projection) {
- return getService().dynamicQueryCount(dynamicQuery, projection);
- }
- public static CompanyInfo fetchCompany(long companyId) {
- return getService().fetchCompany(companyId);
- }
- public static CompanyInfo fetchCompanyInfo(long companyInfoId) {
- return getService().fetchCompanyInfo(companyInfoId);
- }
- public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery
- getActionableDynamicQuery() {
- return getService().getActionableDynamicQuery();
- }
- /**
- * Returns the company info with the primary key.
- *
- * @param companyInfoId the primary key of the company info
- * @return the company info
- * @throws PortalException if a company info with the primary key could not be found
- */
- public static CompanyInfo getCompanyInfo(long companyInfoId)
- throws PortalException {
- return getService().getCompanyInfo(companyInfoId);
- }
- /**
- * Returns a range of all the company infos.
- *
- * <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 <code>com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS</code> will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent, then the query will include the default ORDER BY logic from <code>com.liferay.portal.model.impl.CompanyInfoModelImpl</code>.
- * </p>
- *
- * @param start the lower bound of the range of company infos
- * @param end the upper bound of the range of company infos (not inclusive)
- * @return the range of company infos
- */
- public static List<CompanyInfo> getCompanyInfos(int start, int end) {
- return getService().getCompanyInfos(start, end);
- }
- /**
- * Returns the number of company infos.
- *
- * @return the number of company infos
- */
- public static int getCompanyInfosCount() {
- return getService().getCompanyInfosCount();
- }
- public static
- com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery
- getIndexableActionableDynamicQuery() {
- return getService().getIndexableActionableDynamicQuery();
- }
- /**
- * Returns the OSGi service identifier.
- *
- * @return the OSGi service identifier
- */
- public static String getOSGiServiceIdentifier() {
- return getService().getOSGiServiceIdentifier();
- }
- /**
- * @throws PortalException
- */
- public static PersistedModel getPersistedModel(Serializable primaryKeyObj)
- throws PortalException {
- return getService().getPersistedModel(primaryKeyObj);
- }
- /**
- * Updates the company info in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
- *
- * <p>
- * <strong>Important:</strong> Inspect CompanyInfoLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- * </p>
- *
- * @param companyInfo the company info
- * @return the company info that was updated
- */
- public static CompanyInfo updateCompanyInfo(CompanyInfo companyInfo) {
- return getService().updateCompanyInfo(companyInfo);
- }
- public static CompanyInfoLocalService getService() {
- return _service;
- }
- private static volatile CompanyInfoLocalService _service;
- }