@ProviderType
@Transactional(isolation=PORTAL,
rollbackFor={com.liferay.portal.kernel.exception.PortalException.class,com.liferay.portal.kernel.exception.SystemException.class})
public interface CommerceWarehouseLocalService
extends com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.PersistedModelLocalService
CommerceWarehouseLocalServiceUtil,
com.liferay.commerce.service.base.CommerceWarehouseLocalServiceBaseImpl,
com.liferay.commerce.service.impl.CommerceWarehouseLocalServiceImpl| Modifier and Type | Method and Description |
|---|---|
CommerceWarehouse |
addCommerceWarehouse(CommerceWarehouse commerceWarehouse)
Adds the commerce warehouse to the database.
|
CommerceWarehouse |
addCommerceWarehouse(java.lang.String name,
java.lang.String description,
boolean active,
java.lang.String street1,
java.lang.String street2,
java.lang.String street3,
java.lang.String city,
java.lang.String zip,
long commerceRegionId,
long commerceCountryId,
double latitude,
double longitude,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
CommerceWarehouse |
createCommerceWarehouse(long commerceWarehouseId)
Creates a new commerce warehouse with the primary key.
|
CommerceWarehouse |
deleteCommerceWarehouse(CommerceWarehouse commerceWarehouse)
Deletes the commerce warehouse from the database.
|
CommerceWarehouse |
deleteCommerceWarehouse(long commerceWarehouseId)
Deletes the commerce warehouse with the primary key from the database.
|
void |
deleteCommerceWarehouses(long groupId) |
com.liferay.portal.kernel.model.PersistedModel |
deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) |
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.
|
CommerceWarehouse |
fetchCommerceWarehouse(long commerceWarehouseId) |
CommerceWarehouse |
fetchDefaultCommerceWarehouse(long groupId) |
CommerceWarehouse |
geolocateCommerceWarehouse(long commerceWarehouseId) |
com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getActionableDynamicQuery() |
CommerceWarehouse |
getCommerceWarehouse(long commerceWarehouseId)
Returns the commerce warehouse with the primary key.
|
java.util.List<CommerceWarehouse> |
getCommerceWarehouses(int start,
int end)
Returns a range of all the commerce warehouses.
|
java.util.List<CommerceWarehouse> |
getCommerceWarehouses(long groupId) |
java.util.List<CommerceWarehouse> |
getCommerceWarehouses(long groupId,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator) |
java.util.List<CommerceWarehouse> |
getCommerceWarehouses(long groupId,
boolean active,
long commerceCountryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator) |
java.util.List<CommerceWarehouse> |
getCommerceWarehouses(long cpInstanceId,
int start,
int end) |
java.util.List<CommerceWarehouse> |
getCommerceWarehouses(long groupId,
long commerceCountryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator) |
int |
getCommerceWarehousesCount()
Returns the number of commerce warehouses.
|
int |
getCommerceWarehousesCount(long groupId,
boolean active,
long commerceCountryId) |
int |
getCommerceWarehousesCount(long groupId,
long commerceCountryId) |
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) |
CommerceWarehouse |
importDefaultCommerceWarehouse(com.liferay.portal.kernel.service.ServiceContext serviceContext) |
java.util.List<CommerceWarehouse> |
search(long groupId,
java.lang.String keywords,
java.lang.Boolean active,
long commerceCountryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator) |
int |
searchCount(long groupId,
java.lang.String keywords,
java.lang.Boolean active,
long commerceCountryId) |
CommerceWarehouse |
setActive(long commerceWarehouseId,
boolean active) |
CommerceWarehouse |
updateCommerceWarehouse(CommerceWarehouse commerceWarehouse)
Updates the commerce warehouse in the database or adds it if it does not yet exist.
|
CommerceWarehouse |
updateCommerceWarehouse(long commerceWarehouseId,
java.lang.String name,
java.lang.String description,
boolean active,
java.lang.String street1,
java.lang.String street2,
java.lang.String street3,
java.lang.String city,
java.lang.String zip,
long commerceRegionId,
long commerceCountryId,
double latitude,
double longitude,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
CommerceWarehouse |
updateDefaultCommerceWarehouse(java.lang.String name,
java.lang.String street1,
java.lang.String street2,
java.lang.String street3,
java.lang.String city,
java.lang.String zip,
long commerceRegionId,
long commerceCountryId,
double latitude,
double longitude,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
@Indexable(type=REINDEX) CommerceWarehouse addCommerceWarehouse(CommerceWarehouse commerceWarehouse)
commerceWarehouse - the commerce warehouseCommerceWarehouse addCommerceWarehouse(java.lang.String name, java.lang.String description, boolean active, java.lang.String street1, java.lang.String street2, java.lang.String street3, java.lang.String city, java.lang.String zip, long commerceRegionId, long commerceCountryId, double latitude, double longitude, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException@Transactional(enabled=false) CommerceWarehouse createCommerceWarehouse(long commerceWarehouseId)
commerceWarehouseId - the primary key for the new commerce warehouse@Indexable(type=DELETE) CommerceWarehouse deleteCommerceWarehouse(CommerceWarehouse commerceWarehouse)
commerceWarehouse - the commerce warehouse@Indexable(type=DELETE) CommerceWarehouse deleteCommerceWarehouse(long commerceWarehouseId) throws com.liferay.portal.kernel.exception.PortalException
commerceWarehouseId - the primary key of the commerce warehousecom.liferay.portal.kernel.exception.PortalException - if a commerce warehouse with the primary key could not be foundvoid deleteCommerceWarehouses(long groupId)
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.portal.kernel.service.PersistedModelLocalServicecom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
<T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery - the dynamic query<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 com.liferay.commerce.model.impl.CommerceWarehouseModelImpl. 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 - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)<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 com.liferay.commerce.model.impl.CommerceWarehouseModelImpl. 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 - 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)long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery - the dynamic querylong 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 query@Transactional(propagation=SUPPORTS,
readOnly=true)
CommerceWarehouse fetchCommerceWarehouse(long commerceWarehouseId)
@Transactional(propagation=SUPPORTS,
readOnly=true)
CommerceWarehouse fetchDefaultCommerceWarehouse(long groupId)
CommerceWarehouse geolocateCommerceWarehouse(long commerceWarehouseId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException@Transactional(propagation=SUPPORTS,
readOnly=true)
com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
@Transactional(propagation=SUPPORTS,
readOnly=true)
CommerceWarehouse getCommerceWarehouse(long commerceWarehouseId)
throws com.liferay.portal.kernel.exception.PortalException
commerceWarehouseId - the primary key of the commerce warehousecom.liferay.portal.kernel.exception.PortalException - if a commerce warehouse with the primary key could not be found@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<CommerceWarehouse> getCommerceWarehouses(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 com.liferay.commerce.model.impl.CommerceWarehouseModelImpl. 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.
start - the lower bound of the range of commerce warehousesend - the upper bound of the range of commerce warehouses (not inclusive)@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<CommerceWarehouse> getCommerceWarehouses(long groupId)
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<CommerceWarehouse> getCommerceWarehouses(long groupId,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator)
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<CommerceWarehouse> getCommerceWarehouses(long groupId,
boolean active,
long commerceCountryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator)
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<CommerceWarehouse> getCommerceWarehouses(long cpInstanceId,
int start,
int end)
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<CommerceWarehouse> getCommerceWarehouses(long groupId,
long commerceCountryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator)
@Transactional(propagation=SUPPORTS,
readOnly=true)
int getCommerceWarehousesCount()
@Transactional(propagation=SUPPORTS,
readOnly=true)
int getCommerceWarehousesCount(long groupId,
boolean active,
long commerceCountryId)
@Transactional(propagation=SUPPORTS,
readOnly=true)
int getCommerceWarehousesCount(long groupId,
long commerceCountryId)
@Transactional(propagation=SUPPORTS,
readOnly=true)
com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
java.lang.String getOSGiServiceIdentifier()
@Transactional(propagation=SUPPORTS,
readOnly=true)
com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj)
throws com.liferay.portal.kernel.exception.PortalException
getPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalServicecom.liferay.portal.kernel.exception.PortalExceptionCommerceWarehouse importDefaultCommerceWarehouse(com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<CommerceWarehouse> search(long groupId,
java.lang.String keywords,
java.lang.Boolean active,
long commerceCountryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator)
@Transactional(propagation=SUPPORTS,
readOnly=true)
int searchCount(long groupId,
java.lang.String keywords,
java.lang.Boolean active,
long commerceCountryId)
CommerceWarehouse setActive(long commerceWarehouseId, boolean active) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException@Indexable(type=REINDEX) CommerceWarehouse updateCommerceWarehouse(CommerceWarehouse commerceWarehouse)
commerceWarehouse - the commerce warehouseCommerceWarehouse updateCommerceWarehouse(long commerceWarehouseId, java.lang.String name, java.lang.String description, boolean active, java.lang.String street1, java.lang.String street2, java.lang.String street3, java.lang.String city, java.lang.String zip, long commerceRegionId, long commerceCountryId, double latitude, double longitude, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionCommerceWarehouse updateDefaultCommerceWarehouse(java.lang.String name, java.lang.String street1, java.lang.String street2, java.lang.String street3, java.lang.String city, java.lang.String zip, long commerceRegionId, long commerceCountryId, double latitude, double longitude, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException