public class CommerceCatalogLocalServiceWrapper extends java.lang.Object implements CommerceCatalogLocalService, com.liferay.portal.kernel.service.ServiceWrapper<CommerceCatalogLocalService>
CommerceCatalogLocalService
.CommerceCatalogLocalService
Constructor and Description |
---|
CommerceCatalogLocalServiceWrapper() |
CommerceCatalogLocalServiceWrapper(CommerceCatalogLocalService commerceCatalogLocalService) |
Modifier and Type | Method and Description |
---|---|
CommerceCatalog |
addCommerceCatalog(CommerceCatalog commerceCatalog)
Adds the commerce catalog to the database.
|
CommerceCatalog |
addCommerceCatalog(java.lang.String externalReferenceCode,
java.lang.String name,
java.lang.String commerceCurrencyCode,
java.lang.String catalogDefaultLanguageId,
boolean system,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
CommerceCatalog |
addCommerceCatalog(java.lang.String externalReferenceCode,
java.lang.String name,
java.lang.String commerceCurrencyCode,
java.lang.String catalogDefaultLanguageId,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
CommerceCatalog |
addDefaultCommerceCatalog(long companyId) |
CommerceCatalog |
createCommerceCatalog(long commerceCatalogId)
Creates a new commerce catalog with the primary key.
|
com.liferay.portal.kernel.model.PersistedModel |
createPersistedModel(java.io.Serializable primaryKeyObj) |
CommerceCatalog |
deleteCommerceCatalog(CommerceCatalog commerceCatalog)
Deletes the commerce catalog from the database.
|
CommerceCatalog |
deleteCommerceCatalog(long commerceCatalogId)
Deletes the commerce catalog with the primary key from the database.
|
void |
deleteCommerceCatalogs(long companyId) |
com.liferay.portal.kernel.model.PersistedModel |
deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) |
<T> T |
dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
int |
dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
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.
|
CommerceCatalog |
fetchByExternalReferenceCode(java.lang.String externalReferenceCode,
long companyId) |
CommerceCatalog |
fetchCommerceCatalog(long commerceCatalogId) |
CommerceCatalog |
fetchCommerceCatalogByExternalReferenceCode(long companyId,
java.lang.String externalReferenceCode)
Returns the commerce catalog with the matching external reference code and company.
|
CommerceCatalog |
fetchCommerceCatalogByGroupId(long groupId) |
CommerceCatalog |
fetchCommerceCatalogByReferenceCode(long companyId,
java.lang.String externalReferenceCode)
Deprecated.
As of Cavanaugh (7.4.x), replaced by
fetchCommerceCatalogByExternalReferenceCode(long, String) |
CommerceCatalog |
forceDeleteCommerceCatalog(CommerceCatalog commerceCatalog) |
com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getActionableDynamicQuery() |
CommerceCatalog |
getCommerceCatalog(long commerceCatalogId)
Returns the commerce catalog with the primary key.
|
CommerceCatalog |
getCommerceCatalogByExternalReferenceCode(long companyId,
java.lang.String externalReferenceCode)
Returns the commerce catalog with the matching external reference code and company.
|
com.liferay.portal.kernel.model.Group |
getCommerceCatalogGroup(long commerceCatalogId) |
java.util.List<CommerceCatalog> |
getCommerceCatalogs(int start,
int end)
Returns a range of all the commerce catalogs.
|
java.util.List<CommerceCatalog> |
getCommerceCatalogs(long companyId,
boolean system) |
int |
getCommerceCatalogsCount()
Returns the number of commerce catalogs.
|
com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
com.liferay.portal.kernel.model.PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
CommerceCatalogLocalService |
getWrappedService() |
java.util.List<CommerceCatalog> |
search(long companyId) |
java.util.List<CommerceCatalog> |
search(long companyId,
java.lang.String keywords,
int start,
int end,
com.liferay.portal.kernel.search.Sort sort) |
int |
searchCommerceCatalogsCount(long companyId,
java.lang.String keywords) |
void |
setWrappedService(CommerceCatalogLocalService commerceCatalogLocalService) |
CommerceCatalog |
updateCommerceCatalog(CommerceCatalog commerceCatalog)
Updates the commerce catalog in the database or adds it if it does not yet exist.
|
CommerceCatalog |
updateCommerceCatalog(long commerceCatalogId,
java.lang.String name,
java.lang.String commerceCurrencyCode,
java.lang.String catalogDefaultLanguageId) |
CommerceCatalog |
updateCommerceCatalogExternalReferenceCode(java.lang.String externalReferenceCode,
long commerceCatalogId) |
public CommerceCatalogLocalServiceWrapper()
public CommerceCatalogLocalServiceWrapper(CommerceCatalogLocalService commerceCatalogLocalService)
public CommerceCatalog addCommerceCatalog(CommerceCatalog commerceCatalog)
Important: Inspect CommerceCatalogLocalServiceImpl 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.
addCommerceCatalog
in interface CommerceCatalogLocalService
commerceCatalog
- the commerce catalogpublic CommerceCatalog addCommerceCatalog(java.lang.String externalReferenceCode, java.lang.String name, java.lang.String commerceCurrencyCode, java.lang.String catalogDefaultLanguageId, boolean system, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
addCommerceCatalog
in interface CommerceCatalogLocalService
com.liferay.portal.kernel.exception.PortalException
public CommerceCatalog addCommerceCatalog(java.lang.String externalReferenceCode, java.lang.String name, java.lang.String commerceCurrencyCode, java.lang.String catalogDefaultLanguageId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
addCommerceCatalog
in interface CommerceCatalogLocalService
com.liferay.portal.kernel.exception.PortalException
public CommerceCatalog addDefaultCommerceCatalog(long companyId) throws com.liferay.portal.kernel.exception.PortalException
addDefaultCommerceCatalog
in interface CommerceCatalogLocalService
com.liferay.portal.kernel.exception.PortalException
public CommerceCatalog createCommerceCatalog(long commerceCatalogId)
createCommerceCatalog
in interface CommerceCatalogLocalService
commerceCatalogId
- the primary key for the new commerce catalogpublic com.liferay.portal.kernel.model.PersistedModel createPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
createPersistedModel
in interface CommerceCatalogLocalService
createPersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
PortalException
public CommerceCatalog deleteCommerceCatalog(CommerceCatalog commerceCatalog) throws com.liferay.portal.kernel.exception.PortalException
Important: Inspect CommerceCatalogLocalServiceImpl 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.
deleteCommerceCatalog
in interface CommerceCatalogLocalService
commerceCatalog
- the commerce catalogPortalException
public CommerceCatalog deleteCommerceCatalog(long commerceCatalogId) throws com.liferay.portal.kernel.exception.PortalException
Important: Inspect CommerceCatalogLocalServiceImpl 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.
deleteCommerceCatalog
in interface CommerceCatalogLocalService
commerceCatalogId
- the primary key of the commerce catalogPortalException
- if a commerce catalog with the primary key could not be foundpublic void deleteCommerceCatalogs(long companyId) throws com.liferay.portal.kernel.exception.PortalException
deleteCommerceCatalogs
in interface CommerceCatalogLocalService
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
deletePersistedModel
in interface CommerceCatalogLocalService
deletePersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
PortalException
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQuery
in interface CommerceCatalogLocalService
dslQuery
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQueryCount
in interface CommerceCatalogLocalService
dslQueryCount
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
dynamicQuery
in interface CommerceCatalogLocalService
public <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
in interface CommerceCatalogLocalService
dynamicQuery
- 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 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.product.model.impl.CommerceCatalogModelImpl
.
dynamicQuery
in interface CommerceCatalogLocalService
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 <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.product.model.impl.CommerceCatalogModelImpl
.
dynamicQuery
in interface CommerceCatalogLocalService
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 long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQueryCount
in interface CommerceCatalogLocalService
dynamicQuery
- the dynamic querypublic long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection)
dynamicQueryCount
in interface CommerceCatalogLocalService
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the querypublic CommerceCatalog fetchByExternalReferenceCode(java.lang.String externalReferenceCode, long companyId)
fetchByExternalReferenceCode
in interface CommerceCatalogLocalService
public CommerceCatalog fetchCommerceCatalog(long commerceCatalogId)
fetchCommerceCatalog
in interface CommerceCatalogLocalService
public CommerceCatalog fetchCommerceCatalogByExternalReferenceCode(long companyId, java.lang.String externalReferenceCode)
fetchCommerceCatalogByExternalReferenceCode
in interface CommerceCatalogLocalService
companyId
- the primary key of the companyexternalReferenceCode
- the commerce catalog's external reference codenull
if a matching commerce catalog could not be foundpublic CommerceCatalog fetchCommerceCatalogByGroupId(long groupId)
fetchCommerceCatalogByGroupId
in interface CommerceCatalogLocalService
@Deprecated public CommerceCatalog fetchCommerceCatalogByReferenceCode(long companyId, java.lang.String externalReferenceCode)
fetchCommerceCatalogByExternalReferenceCode(long, String)
fetchCommerceCatalogByReferenceCode
in interface CommerceCatalogLocalService
public CommerceCatalog forceDeleteCommerceCatalog(CommerceCatalog commerceCatalog) throws com.liferay.portal.kernel.exception.PortalException
forceDeleteCommerceCatalog
in interface CommerceCatalogLocalService
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
getActionableDynamicQuery
in interface CommerceCatalogLocalService
public CommerceCatalog getCommerceCatalog(long commerceCatalogId) throws com.liferay.portal.kernel.exception.PortalException
getCommerceCatalog
in interface CommerceCatalogLocalService
commerceCatalogId
- the primary key of the commerce catalogPortalException
- if a commerce catalog with the primary key could not be foundpublic CommerceCatalog getCommerceCatalogByExternalReferenceCode(long companyId, java.lang.String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException
getCommerceCatalogByExternalReferenceCode
in interface CommerceCatalogLocalService
companyId
- the primary key of the companyexternalReferenceCode
- the commerce catalog's external reference codePortalException
- if a matching commerce catalog could not be foundpublic com.liferay.portal.kernel.model.Group getCommerceCatalogGroup(long commerceCatalogId) throws com.liferay.portal.kernel.exception.PortalException
getCommerceCatalogGroup
in interface CommerceCatalogLocalService
com.liferay.portal.kernel.exception.PortalException
public java.util.List<CommerceCatalog> getCommerceCatalogs(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.product.model.impl.CommerceCatalogModelImpl
.
getCommerceCatalogs
in interface CommerceCatalogLocalService
start
- the lower bound of the range of commerce catalogsend
- the upper bound of the range of commerce catalogs (not inclusive)public java.util.List<CommerceCatalog> getCommerceCatalogs(long companyId, boolean system)
getCommerceCatalogs
in interface CommerceCatalogLocalService
public int getCommerceCatalogsCount()
getCommerceCatalogsCount
in interface CommerceCatalogLocalService
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery
in interface CommerceCatalogLocalService
public java.lang.String getOSGiServiceIdentifier()
getOSGiServiceIdentifier
in interface CommerceCatalogLocalService
public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
getPersistedModel
in interface CommerceCatalogLocalService
getPersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
PortalException
public java.util.List<CommerceCatalog> search(long companyId) throws com.liferay.portal.kernel.exception.PortalException
search
in interface CommerceCatalogLocalService
com.liferay.portal.kernel.exception.PortalException
public java.util.List<CommerceCatalog> search(long companyId, java.lang.String keywords, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException
search
in interface CommerceCatalogLocalService
com.liferay.portal.kernel.exception.PortalException
public int searchCommerceCatalogsCount(long companyId, java.lang.String keywords) throws com.liferay.portal.kernel.exception.PortalException
searchCommerceCatalogsCount
in interface CommerceCatalogLocalService
com.liferay.portal.kernel.exception.PortalException
public CommerceCatalog updateCommerceCatalog(CommerceCatalog commerceCatalog)
Important: Inspect CommerceCatalogLocalServiceImpl 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.
updateCommerceCatalog
in interface CommerceCatalogLocalService
commerceCatalog
- the commerce catalogpublic CommerceCatalog updateCommerceCatalog(long commerceCatalogId, java.lang.String name, java.lang.String commerceCurrencyCode, java.lang.String catalogDefaultLanguageId) throws com.liferay.portal.kernel.exception.PortalException
updateCommerceCatalog
in interface CommerceCatalogLocalService
com.liferay.portal.kernel.exception.PortalException
public CommerceCatalog updateCommerceCatalogExternalReferenceCode(java.lang.String externalReferenceCode, long commerceCatalogId) throws com.liferay.portal.kernel.exception.PortalException
updateCommerceCatalogExternalReferenceCode
in interface CommerceCatalogLocalService
com.liferay.portal.kernel.exception.PortalException
public CommerceCatalogLocalService getWrappedService()
getWrappedService
in interface com.liferay.portal.kernel.service.ServiceWrapper<CommerceCatalogLocalService>
public void setWrappedService(CommerceCatalogLocalService commerceCatalogLocalService)
setWrappedService
in interface com.liferay.portal.kernel.service.ServiceWrapper<CommerceCatalogLocalService>