|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.elasticpath.service.impl.AbstractEpServiceImpl com.elasticpath.service.impl.AbstractEpPersistenceServiceImpl com.elasticpath.service.customer.impl.CustomerSessionServiceImpl
public class CustomerSessionServiceImpl
Service for retrieving and saving CustomerSessions.
Constructor Summary | |
---|---|
CustomerSessionServiceImpl()
|
Method Summary | |
---|---|
CustomerSession |
add(CustomerSession customerSession)
Adds the given customer session. |
void |
deleteByCustomer(long customerUid)
Delete all customerSession associated with customer with the given id. |
CustomerSession |
findByGuid(java.lang.String guid)
Find the customer session with the given guid. |
CustomerSession |
get(long customerSessionUid)
Get the customerSession with the given UID. |
java.lang.Object |
getObject(long uid)
Generic get method for all persistable domain models. |
CustomerSession |
load(long customerSessionUid)
Load the customer session with the given UID. |
void |
update(CustomerSession customerSession)
Updates the given customer session. |
void |
update(CustomerSession customerSession,
Customer customer)
Updates the given customer session. |
Methods inherited from class com.elasticpath.service.impl.AbstractEpPersistenceServiceImpl |
---|
getPersistenceEngine, setPersistenceEngine |
Methods inherited from class com.elasticpath.service.impl.AbstractEpServiceImpl |
---|
getElasticPath, setElasticPath |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.elasticpath.service.EpPersistenceService |
---|
getPersistenceEngine, setPersistenceEngine |
Methods inherited from interface com.elasticpath.service.EpService |
---|
getElasticPath, setElasticPath |
Constructor Detail |
---|
public CustomerSessionServiceImpl()
Method Detail |
---|
public CustomerSession add(CustomerSession customerSession) throws EpServiceException
add
in interface CustomerSessionService
customerSession
- the customer session to add
EpServiceException
- - in case of any errorspublic void deleteByCustomer(long customerUid) throws EpServiceException
deleteByCustomer
in interface CustomerSessionService
customerUid
- uid of the customer
EpServiceException
- if any thing goes wrong.public CustomerSession findByGuid(java.lang.String guid) throws EpServiceException
findByGuid
in interface CustomerSessionService
guid
- the customer session guid
EpServiceException
- - in case of any errorspublic CustomerSession get(long customerSessionUid) throws EpServiceException
get
in interface CustomerSessionService
customerSessionUid
- the customerSession UID
EpServiceException
- - in case of any errorspublic java.lang.Object getObject(long uid) throws EpServiceException
getObject
in interface EpPersistenceService
uid
- the persisted instance uid
EpServiceException
- - in case of any errorspublic CustomerSession load(long customerSessionUid) throws EpServiceException
load
in interface CustomerSessionService
customerSessionUid
- the customer session UID
EpServiceException
- - in case of any errorspublic void update(CustomerSession customerSession) throws EpServiceException
update
in interface CustomerSessionService
customerSession
- the customer session to update
EpServiceException
- - in case of any errorspublic void update(CustomerSession customerSession, Customer customer) throws EpServiceException
update
in interface CustomerSessionService
customerSession
- the customer session to updatecustomer
- the valid customer to be used to update customer session instance
EpServiceException
- - in case of any errors
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |