Class MyCouponBORepositoryImpl
java.lang.Object
com.intershop.beehive.businessobject.capi.AbstractBusinessObjectExtension<B>
com.intershop.beehive.core.capi.domain.AbstractPersistentObjectBOExtension<com.intershop.component.repository.capi.RepositoryBO>
com.intershop.component.repository.capi.AbstractDomainRepositoryBOExtension
com.intershop.issup.component.mycoupon.internal.MyCouponBORepositoryImpl
- All Implemented Interfaces:
com.intershop.beehive.businessobject.capi.BusinessObjectExtension<com.intershop.component.repository.capi.RepositoryBO>
,com.intershop.beehive.businessobject.capi.BusinessObjectRepository
,com.intershop.beehive.core.capi.util.ObjectMapper<MyCouponPO,
,com.intershop.issup.component.mycoupon.capi.MyCouponBO> com.intershop.issup.component.mycoupon.capi.MyCouponBORepository
public class MyCouponBORepositoryImpl
extends com.intershop.component.repository.capi.AbstractDomainRepositoryBOExtension
implements com.intershop.issup.component.mycoupon.capi.MyCouponBORepository, com.intershop.beehive.core.capi.util.ObjectMapper<MyCouponPO,com.intershop.issup.component.mycoupon.capi.MyCouponBO>
-
Field Summary
Fields inherited from interface com.intershop.issup.component.mycoupon.capi.MyCouponBORepository
EXTENSION_ID
-
Constructor Summary
ConstructorsConstructorDescriptionMyCouponBORepositoryImpl
(String extensionID, com.intershop.component.repository.capi.RepositoryBO extendedObject) -
Method Summary
Modifier and TypeMethodDescriptionint
countMyCouponsByEmail
(String email) com.intershop.issup.component.mycoupon.capi.MyCouponBO
createMyCouponBOByEmail
(String email) for the given parameters a new MyCoupon will be createdCollection<com.intershop.issup.component.mycoupon.capi.MyCouponBO>
Generates a coupon codecom.intershop.issup.component.mycoupon.capi.MyCouponBO
getMyCouponBOByCode
(String couponCode) Generates a coupon codeCollection<com.intershop.issup.component.mycoupon.capi.MyCouponBO>
getMyCouponBOByEmail
(String email) Generates a coupon codecom.intershop.issup.component.mycoupon.capi.MyCouponBO
resolve
(MyCouponPO myCouponPO) Returns theMyCouponBO
for it's persistance object.Methods inherited from class com.intershop.component.repository.capi.AbstractDomainRepositoryBOExtension
getDomain, getRepository, getRepositoryID
Methods inherited from class com.intershop.beehive.core.capi.domain.AbstractPersistentObjectBOExtension
getPersistentObject, getQueryExecutor
Methods inherited from class com.intershop.beehive.businessobject.capi.AbstractBusinessObjectExtension
getContext, getExtendedObject, getExtensionID
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.intershop.beehive.businessobject.capi.BusinessObjectRepository
getContext, getRepositoryID
-
Constructor Details
-
MyCouponBORepositoryImpl
public MyCouponBORepositoryImpl(String extensionID, com.intershop.component.repository.capi.RepositoryBO extendedObject)
-
-
Method Details
-
resolve
Returns theMyCouponBO
for it's persistance object. If it's not existing, a new my coupon is created.- Specified by:
resolve
in interfacecom.intershop.beehive.core.capi.util.ObjectMapper<MyCouponPO,
com.intershop.issup.component.mycoupon.capi.MyCouponBO> - Parameters:
myCouponPO
- - persistance object, that should converted to its business object- Returns:
- the
MyCouponBO
for the given persistance object
-
createMyCouponBOByEmail
for the given parameters a new MyCoupon will be created- Specified by:
createMyCouponBOByEmail
in interfacecom.intershop.issup.component.mycoupon.capi.MyCouponBORepository
-
countMyCouponsByEmail
- Specified by:
countMyCouponsByEmail
in interfacecom.intershop.issup.component.mycoupon.capi.MyCouponBORepository
-
getMyCouponBOByCode
public com.intershop.issup.component.mycoupon.capi.MyCouponBO getMyCouponBOByCode(String couponCode) Generates a coupon code- Specified by:
getMyCouponBOByCode
in interfacecom.intershop.issup.component.mycoupon.capi.MyCouponBORepository
- Returns:
- the generated coupon code
-
getMyCouponBOByEmail
public Collection<com.intershop.issup.component.mycoupon.capi.MyCouponBO> getMyCouponBOByEmail(String email) Generates a coupon code- Specified by:
getMyCouponBOByEmail
in interfacecom.intershop.issup.component.mycoupon.capi.MyCouponBORepository
- Returns:
- the generated coupon code
-
getAllCouponBOs
Generates a coupon code- Specified by:
getAllCouponBOs
in interfacecom.intershop.issup.component.mycoupon.capi.MyCouponBORepository
- Returns:
- the generated coupon code
-