Liferay 7.0-ce-m6

com.liferay.portlet.shopping.service
Class ShoppingOrderLocalServiceWrapper

java.lang.Object
  extended by com.liferay.portlet.shopping.service.ShoppingOrderLocalServiceWrapper
All Implemented Interfaces:
BaseLocalService, PersistedModelLocalService, ServiceWrapper<ShoppingOrderLocalService>, ShoppingOrderLocalService

@ProviderType
public class ShoppingOrderLocalServiceWrapper
extends Object
implements ShoppingOrderLocalService, ServiceWrapper<ShoppingOrderLocalService>

Provides a wrapper for ShoppingOrderLocalService.

See Also:
ShoppingOrderLocalService

Constructor Summary
ShoppingOrderLocalServiceWrapper(ShoppingOrderLocalService shoppingOrderLocalService)
           
 
Method Summary
 ShoppingOrder addLatestOrder(long userId, long groupId)
           
 ShoppingOrder addShoppingOrder(ShoppingOrder shoppingOrder)
          Adds the shopping order to the database.
 void completeOrder(String number, String ppTxnId, String ppPaymentStatus, double ppPaymentGross, String ppReceiverEmail, String ppPayerEmail, boolean updateInventory, ServiceContext serviceContext)
           
 ShoppingOrder createShoppingOrder(long orderId)
          Creates a new shopping order with the primary key.
 void deleteOrder(long orderId)
           
 void deleteOrder(ShoppingOrder order)
           
 void deleteOrders(long groupId)
           
 PersistedModel deletePersistedModel(PersistedModel persistedModel)
           
 ShoppingOrder deleteShoppingOrder(long orderId)
          Deletes the shopping order with the primary key from the database.
 ShoppingOrder deleteShoppingOrder(ShoppingOrder shoppingOrder)
          Deletes the shopping order from the database.
 DynamicQuery dynamicQuery()
           
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator)
          Performs a dynamic query on the database and returns an ordered range of the matching rows.
 long dynamicQueryCount(DynamicQuery dynamicQuery)
          Returns the number of rows matching the dynamic query.
 long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
          Returns the number of rows matching the dynamic query.
 ShoppingOrder fetchShoppingOrder(long orderId)
           
 ActionableDynamicQuery getActionableDynamicQuery()
           
 String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
 ShoppingOrder getLatestOrder(long userId, long groupId)
           
 ShoppingOrder getOrder(long orderId)
           
 ShoppingOrder getOrder(String number)
           
 ShoppingOrder getPayPalTxnIdOrder(String ppTxnId)
           
 PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
 ShoppingOrder getShoppingOrder(long orderId)
          Returns the shopping order with the primary key.
 List<ShoppingOrder> getShoppingOrders(int start, int end)
          Returns a range of all the shopping orders.
 int getShoppingOrdersCount()
          Returns the number of shopping orders.
 ShoppingOrderLocalService getWrappedService()
           
 ShoppingOrderLocalService getWrappedShoppingOrderLocalService()
          Deprecated. As of 6.1.0, replaced by getWrappedService()
 ShoppingOrder saveLatestOrder(ShoppingCart cart)
           
 List<ShoppingOrder> search(long groupId, long companyId, long userId, String number, String billingFirstName, String billingLastName, String billingEmailAddress, String shippingFirstName, String shippingLastName, String shippingEmailAddress, String ppPaymentStatus, boolean andOperator, int start, int end)
           
 int searchCount(long groupId, long companyId, long userId, String number, String billingFirstName, String billingLastName, String billingEmailAddress, String shippingFirstName, String shippingLastName, String shippingEmailAddress, String ppPaymentStatus, boolean andOperator)
           
 void sendEmail(long orderId, String emailType, ServiceContext serviceContext)
           
 void sendEmail(ShoppingOrder order, String emailType, ServiceContext serviceContext)
           
 void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 void setWrappedService(ShoppingOrderLocalService shoppingOrderLocalService)
           
 void setWrappedShoppingOrderLocalService(ShoppingOrderLocalService shoppingOrderLocalService)
          Deprecated. As of 6.1.0, replaced by setWrappedService(com.liferay.portlet.shopping.service.ShoppingOrderLocalService)
 ShoppingOrder updateLatestOrder(long userId, long groupId, String billingFirstName, String billingLastName, String billingEmailAddress, String billingCompany, String billingStreet, String billingCity, String billingState, String billingZip, String billingCountry, String billingPhone, boolean shipToBilling, String shippingFirstName, String shippingLastName, String shippingEmailAddress, String shippingCompany, String shippingStreet, String shippingCity, String shippingState, String shippingZip, String shippingCountry, String shippingPhone, String ccName, String ccType, String ccNumber, int ccExpMonth, int ccExpYear, String ccVerNumber, String comments)
           
 ShoppingOrder updateOrder(long orderId, String ppTxnId, String ppPaymentStatus, double ppPaymentGross, String ppReceiverEmail, String ppPayerEmail)
           
 ShoppingOrder updateOrder(long orderId, String billingFirstName, String billingLastName, String billingEmailAddress, String billingCompany, String billingStreet, String billingCity, String billingState, String billingZip, String billingCountry, String billingPhone, boolean shipToBilling, String shippingFirstName, String shippingLastName, String shippingEmailAddress, String shippingCompany, String shippingStreet, String shippingCity, String shippingState, String shippingZip, String shippingCountry, String shippingPhone, String ccName, String ccType, String ccNumber, int ccExpMonth, int ccExpYear, String ccVerNumber, String comments)
           
 ShoppingOrder updateShoppingOrder(ShoppingOrder shoppingOrder)
          Updates the shopping order in the database or adds it if it does not yet exist.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShoppingOrderLocalServiceWrapper

public ShoppingOrderLocalServiceWrapper(ShoppingOrderLocalService shoppingOrderLocalService)
Method Detail

addLatestOrder

public ShoppingOrder addLatestOrder(long userId,
                                    long groupId)
                             throws PortalException
Specified by:
addLatestOrder in interface ShoppingOrderLocalService
Throws:
PortalException

addShoppingOrder

public ShoppingOrder addShoppingOrder(ShoppingOrder shoppingOrder)
Adds the shopping order to the database. Also notifies the appropriate model listeners.

Specified by:
addShoppingOrder in interface ShoppingOrderLocalService
Parameters:
shoppingOrder - the shopping order
Returns:
the shopping order that was added

completeOrder

public void completeOrder(String number,
                          String ppTxnId,
                          String ppPaymentStatus,
                          double ppPaymentGross,
                          String ppReceiverEmail,
                          String ppPayerEmail,
                          boolean updateInventory,
                          ServiceContext serviceContext)
                   throws PortalException
Specified by:
completeOrder in interface ShoppingOrderLocalService
Throws:
PortalException

createShoppingOrder

public ShoppingOrder createShoppingOrder(long orderId)
Creates a new shopping order with the primary key. Does not add the shopping order to the database.

Specified by:
createShoppingOrder in interface ShoppingOrderLocalService
Parameters:
orderId - the primary key for the new shopping order
Returns:
the new shopping order

deleteOrder

public void deleteOrder(ShoppingOrder order)
                 throws PortalException
Specified by:
deleteOrder in interface ShoppingOrderLocalService
Throws:
PortalException

deleteOrder

public void deleteOrder(long orderId)
                 throws PortalException
Specified by:
deleteOrder in interface ShoppingOrderLocalService
Throws:
PortalException

deleteOrders

public void deleteOrders(long groupId)
                  throws PortalException
Specified by:
deleteOrders in interface ShoppingOrderLocalService
Throws:
PortalException

deletePersistedModel

public PersistedModel deletePersistedModel(PersistedModel persistedModel)
                                    throws PortalException
Specified by:
deletePersistedModel in interface PersistedModelLocalService
Specified by:
deletePersistedModel in interface ShoppingOrderLocalService
Throws:
PortalException

deleteShoppingOrder

public ShoppingOrder deleteShoppingOrder(long orderId)
                                  throws PortalException
Deletes the shopping order with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
deleteShoppingOrder in interface ShoppingOrderLocalService
Parameters:
orderId - the primary key of the shopping order
Returns:
the shopping order that was removed
Throws:
PortalException - if a shopping order with the primary key could not be found

deleteShoppingOrder

public ShoppingOrder deleteShoppingOrder(ShoppingOrder shoppingOrder)
Deletes the shopping order from the database. Also notifies the appropriate model listeners.

Specified by:
deleteShoppingOrder in interface ShoppingOrderLocalService
Parameters:
shoppingOrder - the shopping order
Returns:
the shopping order that was removed

dynamicQuery

public DynamicQuery dynamicQuery()
Specified by:
dynamicQuery in interface ShoppingOrderLocalService

dynamicQuery

public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.

Specified by:
dynamicQuery in interface ShoppingOrderLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the matching rows

dynamicQuery

public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
                                int start,
                                int end)
Performs a dynamic query on the database and returns a range of the matching rows.

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.portlet.shopping.model.impl.ShoppingOrderModelImpl. 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.

Specified by:
dynamicQuery in interface ShoppingOrderLocalService
Parameters:
dynamicQuery - the dynamic query
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
Returns:
the range of matching rows

dynamicQuery

public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
                                int start,
                                int end,
                                OrderByComparator<T> orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.

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.portlet.shopping.model.impl.ShoppingOrderModelImpl. 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.

Specified by:
dynamicQuery in interface ShoppingOrderLocalService
Parameters:
dynamicQuery - the dynamic query
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching rows

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.

Specified by:
dynamicQueryCount in interface ShoppingOrderLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the number of rows matching the dynamic query

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery,
                              Projection projection)
Returns the number of rows matching the dynamic query.

Specified by:
dynamicQueryCount in interface ShoppingOrderLocalService
Parameters:
dynamicQuery - the dynamic query
projection - the projection to apply to the query
Returns:
the number of rows matching the dynamic query

fetchShoppingOrder

public ShoppingOrder fetchShoppingOrder(long orderId)
Specified by:
fetchShoppingOrder in interface ShoppingOrderLocalService

getActionableDynamicQuery

public ActionableDynamicQuery getActionableDynamicQuery()
Specified by:
getActionableDynamicQuery in interface ShoppingOrderLocalService

getBeanIdentifier

public String getBeanIdentifier()
Returns the Spring bean ID for this bean.

Specified by:
getBeanIdentifier in interface ShoppingOrderLocalService
Returns:
the Spring bean ID for this bean

getLatestOrder

public ShoppingOrder getLatestOrder(long userId,
                                    long groupId)
                             throws PortalException
Specified by:
getLatestOrder in interface ShoppingOrderLocalService
Throws:
PortalException

getOrder

public ShoppingOrder getOrder(String number)
                       throws PortalException
Specified by:
getOrder in interface ShoppingOrderLocalService
Throws:
PortalException

getOrder

public ShoppingOrder getOrder(long orderId)
                       throws PortalException
Specified by:
getOrder in interface ShoppingOrderLocalService
Throws:
PortalException

getPayPalTxnIdOrder

public ShoppingOrder getPayPalTxnIdOrder(String ppTxnId)
                                  throws PortalException
Specified by:
getPayPalTxnIdOrder in interface ShoppingOrderLocalService
Throws:
PortalException

getPersistedModel

public PersistedModel getPersistedModel(Serializable primaryKeyObj)
                                 throws PortalException
Specified by:
getPersistedModel in interface PersistedModelLocalService
Specified by:
getPersistedModel in interface ShoppingOrderLocalService
Throws:
PortalException

getShoppingOrder

public ShoppingOrder getShoppingOrder(long orderId)
                               throws PortalException
Returns the shopping order with the primary key.

Specified by:
getShoppingOrder in interface ShoppingOrderLocalService
Parameters:
orderId - the primary key of the shopping order
Returns:
the shopping order
Throws:
PortalException - if a shopping order with the primary key could not be found

getShoppingOrders

public List<ShoppingOrder> getShoppingOrders(int start,
                                             int end)
Returns a range of all the shopping orders.

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.portlet.shopping.model.impl.ShoppingOrderModelImpl. 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.

Specified by:
getShoppingOrders in interface ShoppingOrderLocalService
Parameters:
start - the lower bound of the range of shopping orders
end - the upper bound of the range of shopping orders (not inclusive)
Returns:
the range of shopping orders

getShoppingOrdersCount

public int getShoppingOrdersCount()
Returns the number of shopping orders.

Specified by:
getShoppingOrdersCount in interface ShoppingOrderLocalService
Returns:
the number of shopping orders

saveLatestOrder

public ShoppingOrder saveLatestOrder(ShoppingCart cart)
                              throws PortalException
Specified by:
saveLatestOrder in interface ShoppingOrderLocalService
Throws:
PortalException

search

public List<ShoppingOrder> search(long groupId,
                                  long companyId,
                                  long userId,
                                  String number,
                                  String billingFirstName,
                                  String billingLastName,
                                  String billingEmailAddress,
                                  String shippingFirstName,
                                  String shippingLastName,
                                  String shippingEmailAddress,
                                  String ppPaymentStatus,
                                  boolean andOperator,
                                  int start,
                                  int end)
Specified by:
search in interface ShoppingOrderLocalService

searchCount

public int searchCount(long groupId,
                       long companyId,
                       long userId,
                       String number,
                       String billingFirstName,
                       String billingLastName,
                       String billingEmailAddress,
                       String shippingFirstName,
                       String shippingLastName,
                       String shippingEmailAddress,
                       String ppPaymentStatus,
                       boolean andOperator)
Specified by:
searchCount in interface ShoppingOrderLocalService

sendEmail

public void sendEmail(ShoppingOrder order,
                      String emailType,
                      ServiceContext serviceContext)
               throws PortalException
Specified by:
sendEmail in interface ShoppingOrderLocalService
Throws:
PortalException

sendEmail

public void sendEmail(long orderId,
                      String emailType,
                      ServiceContext serviceContext)
               throws PortalException
Specified by:
sendEmail in interface ShoppingOrderLocalService
Throws:
PortalException

setBeanIdentifier

public void setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean.

Specified by:
setBeanIdentifier in interface ShoppingOrderLocalService
Parameters:
beanIdentifier - the Spring bean ID for this bean

updateLatestOrder

public ShoppingOrder updateLatestOrder(long userId,
                                       long groupId,
                                       String billingFirstName,
                                       String billingLastName,
                                       String billingEmailAddress,
                                       String billingCompany,
                                       String billingStreet,
                                       String billingCity,
                                       String billingState,
                                       String billingZip,
                                       String billingCountry,
                                       String billingPhone,
                                       boolean shipToBilling,
                                       String shippingFirstName,
                                       String shippingLastName,
                                       String shippingEmailAddress,
                                       String shippingCompany,
                                       String shippingStreet,
                                       String shippingCity,
                                       String shippingState,
                                       String shippingZip,
                                       String shippingCountry,
                                       String shippingPhone,
                                       String ccName,
                                       String ccType,
                                       String ccNumber,
                                       int ccExpMonth,
                                       int ccExpYear,
                                       String ccVerNumber,
                                       String comments)
                                throws PortalException
Specified by:
updateLatestOrder in interface ShoppingOrderLocalService
Throws:
PortalException

updateOrder

public ShoppingOrder updateOrder(long orderId,
                                 String billingFirstName,
                                 String billingLastName,
                                 String billingEmailAddress,
                                 String billingCompany,
                                 String billingStreet,
                                 String billingCity,
                                 String billingState,
                                 String billingZip,
                                 String billingCountry,
                                 String billingPhone,
                                 boolean shipToBilling,
                                 String shippingFirstName,
                                 String shippingLastName,
                                 String shippingEmailAddress,
                                 String shippingCompany,
                                 String shippingStreet,
                                 String shippingCity,
                                 String shippingState,
                                 String shippingZip,
                                 String shippingCountry,
                                 String shippingPhone,
                                 String ccName,
                                 String ccType,
                                 String ccNumber,
                                 int ccExpMonth,
                                 int ccExpYear,
                                 String ccVerNumber,
                                 String comments)
                          throws PortalException
Specified by:
updateOrder in interface ShoppingOrderLocalService
Throws:
PortalException

updateOrder

public ShoppingOrder updateOrder(long orderId,
                                 String ppTxnId,
                                 String ppPaymentStatus,
                                 double ppPaymentGross,
                                 String ppReceiverEmail,
                                 String ppPayerEmail)
                          throws PortalException
Specified by:
updateOrder in interface ShoppingOrderLocalService
Throws:
PortalException

updateShoppingOrder

public ShoppingOrder updateShoppingOrder(ShoppingOrder shoppingOrder)
Updates the shopping order in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
updateShoppingOrder in interface ShoppingOrderLocalService
Parameters:
shoppingOrder - the shopping order
Returns:
the shopping order that was updated

getWrappedShoppingOrderLocalService

@Deprecated
public ShoppingOrderLocalService getWrappedShoppingOrderLocalService()
Deprecated. As of 6.1.0, replaced by getWrappedService()


setWrappedShoppingOrderLocalService

@Deprecated
public void setWrappedShoppingOrderLocalService(ShoppingOrderLocalService shoppingOrderLocalService)
Deprecated. As of 6.1.0, replaced by setWrappedService(com.liferay.portlet.shopping.service.ShoppingOrderLocalService)


getWrappedService

public ShoppingOrderLocalService getWrappedService()
Specified by:
getWrappedService in interface ServiceWrapper<ShoppingOrderLocalService>

setWrappedService

public void setWrappedService(ShoppingOrderLocalService shoppingOrderLocalService)
Specified by:
setWrappedService in interface ServiceWrapper<ShoppingOrderLocalService>

Liferay 7.0-ce-m6