public class CommerceApplicationModelCProductRelLocalServiceUtil
extends java.lang.Object
com.liferay.commerce.application.service.impl.CommerceApplicationModelCProductRelLocalServiceImpl 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.CommerceApplicationModelCProductRelLocalService| Constructor and Description |
|---|
CommerceApplicationModelCProductRelLocalServiceUtil() |
| Modifier and Type | Method and Description |
|---|---|
static CommerceApplicationModelCProductRel |
addCommerceApplicationModelCProductRel(CommerceApplicationModelCProductRel commerceApplicationModelCProductRel)
Adds the commerce application model c product rel to the database.
|
static CommerceApplicationModelCProductRel |
addCommerceApplicationModelCProductRel(long userId,
long commerceApplicationModelId,
long cProductId) |
static CommerceApplicationModelCProductRel |
createCommerceApplicationModelCProductRel(long commerceApplicationModelCProductRelId)
Creates a new commerce application model c product rel with the primary key.
|
static com.liferay.portal.kernel.model.PersistedModel |
createPersistedModel(java.io.Serializable primaryKeyObj) |
static CommerceApplicationModelCProductRel |
deleteCommerceApplicationModelCProductRel(CommerceApplicationModelCProductRel commerceApplicationModelCProductRel)
Deletes the commerce application model c product rel from the database.
|
static CommerceApplicationModelCProductRel |
deleteCommerceApplicationModelCProductRel(long commerceApplicationModelCProductRelId)
Deletes the commerce application model c product rel with the primary key from the database.
|
static void |
deleteCommerceApplicationModelCProductRels(long commerceApplicationModelId) |
static void |
deleteCommerceApplicationModelCProductRelsByCProductId(long cProductId) |
static com.liferay.portal.kernel.model.PersistedModel |
deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) |
static <T> T |
dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
static int |
dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
static com.liferay.portal.kernel.dao.orm.DynamicQuery |
dynamicQuery() |
static <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.
|
static <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.
|
static <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.
|
static long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.
|
static 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.
|
static CommerceApplicationModelCProductRel |
fetchCommerceApplicationModelCProductRel(long commerceApplicationModelCProductRelId) |
static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getActionableDynamicQuery() |
static CommerceApplicationModelCProductRel |
getCommerceApplicationModelCProductRel(long commerceApplicationModelCProductRelId)
Returns the commerce application model c product rel with the primary key.
|
static java.util.List<CommerceApplicationModelCProductRel> |
getCommerceApplicationModelCProductRels(int start,
int end)
Returns a range of all the commerce application model c product rels.
|
static java.util.List<CommerceApplicationModelCProductRel> |
getCommerceApplicationModelCProductRels(long commerceApplicationModelId,
int start,
int end) |
static int |
getCommerceApplicationModelCProductRelsCount()
Returns the number of commerce application model c product rels.
|
static int |
getCommerceApplicationModelCProductRelsCount(long commerceApplicationModelId) |
static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
static java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static com.liferay.portal.kernel.model.PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
static CommerceApplicationModelCProductRelLocalService |
getService() |
static void |
setService(CommerceApplicationModelCProductRelLocalService service) |
static CommerceApplicationModelCProductRel |
updateCommerceApplicationModelCProductRel(CommerceApplicationModelCProductRel commerceApplicationModelCProductRel)
Updates the commerce application model c product rel in the database or adds it if it does not yet exist.
|
public CommerceApplicationModelCProductRelLocalServiceUtil()
public static CommerceApplicationModelCProductRel addCommerceApplicationModelCProductRel(CommerceApplicationModelCProductRel commerceApplicationModelCProductRel)
Important: Inspect CommerceApplicationModelCProductRelLocalServiceImpl 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.
commerceApplicationModelCProductRel - the commerce application model c product relpublic static CommerceApplicationModelCProductRel addCommerceApplicationModelCProductRel(long userId, long commerceApplicationModelId, long cProductId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static CommerceApplicationModelCProductRel createCommerceApplicationModelCProductRel(long commerceApplicationModelCProductRelId)
commerceApplicationModelCProductRelId - the primary key for the new commerce application model c product relpublic static com.liferay.portal.kernel.model.PersistedModel createPersistedModel(java.io.Serializable primaryKeyObj)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static CommerceApplicationModelCProductRel deleteCommerceApplicationModelCProductRel(CommerceApplicationModelCProductRel commerceApplicationModelCProductRel)
Important: Inspect CommerceApplicationModelCProductRelLocalServiceImpl 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.
commerceApplicationModelCProductRel - the commerce application model c product relpublic static CommerceApplicationModelCProductRel deleteCommerceApplicationModelCProductRel(long commerceApplicationModelCProductRelId) throws com.liferay.portal.kernel.exception.PortalException
Important: Inspect CommerceApplicationModelCProductRelLocalServiceImpl 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.
commerceApplicationModelCProductRelId - the primary key of the commerce application model c product relcom.liferay.portal.kernel.exception.PortalException - if a commerce application model c product rel with the primary key could not be foundpublic static void deleteCommerceApplicationModelCProductRels(long commerceApplicationModelId)
public static void deleteCommerceApplicationModelCProductRelsByCProductId(long cProductId)
public static com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
public static int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
public static <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery - the dynamic querypublic static <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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.commerce.application.model.impl.CommerceApplicationModelCProductRelModelImpl.
dynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)public static <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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.commerce.application.model.impl.CommerceApplicationModelCProductRelModelImpl.
dynamicQuery - 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 static long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery - the dynamic querypublic static long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
dynamicQuery - the dynamic queryprojection - the projection to apply to the querypublic static CommerceApplicationModelCProductRel fetchCommerceApplicationModelCProductRel(long commerceApplicationModelCProductRelId)
public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
public static CommerceApplicationModelCProductRel getCommerceApplicationModelCProductRel(long commerceApplicationModelCProductRelId) throws com.liferay.portal.kernel.exception.PortalException
commerceApplicationModelCProductRelId - the primary key of the commerce application model c product relcom.liferay.portal.kernel.exception.PortalException - if a commerce application model c product rel with the primary key could not be foundpublic static java.util.List<CommerceApplicationModelCProductRel> getCommerceApplicationModelCProductRels(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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.commerce.application.model.impl.CommerceApplicationModelCProductRelModelImpl.
start - the lower bound of the range of commerce application model c product relsend - the upper bound of the range of commerce application model c product rels (not inclusive)public static java.util.List<CommerceApplicationModelCProductRel> getCommerceApplicationModelCProductRels(long commerceApplicationModelId, int start, int end)
public static int getCommerceApplicationModelCProductRelsCount()
public static int getCommerceApplicationModelCProductRelsCount(long commerceApplicationModelId)
public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
public static java.lang.String getOSGiServiceIdentifier()
public static com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static CommerceApplicationModelCProductRel updateCommerceApplicationModelCProductRel(CommerceApplicationModelCProductRel commerceApplicationModelCProductRel)
Important: Inspect CommerceApplicationModelCProductRelLocalServiceImpl 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.
commerceApplicationModelCProductRel - the commerce application model c product relpublic static CommerceApplicationModelCProductRelLocalService getService()
public static void setService(CommerceApplicationModelCProductRelLocalService service)