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 TypeMethodDescriptionintcountMyCouponsByEmail(String email) com.intershop.issup.component.mycoupon.capi.MyCouponBOcreateMyCouponBOByEmail(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.MyCouponBOgetMyCouponBOByCode(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.MyCouponBOresolve(MyCouponPO myCouponPO) Returns theMyCouponBOfor it's persistance object.Methods inherited from class com.intershop.component.repository.capi.AbstractDomainRepositoryBOExtension
getDomain, getRepository, getRepositoryIDMethods inherited from class com.intershop.beehive.core.capi.domain.AbstractPersistentObjectBOExtension
getPersistentObject, getQueryExecutorMethods inherited from class com.intershop.beehive.businessobject.capi.AbstractBusinessObjectExtension
getContext, getExtendedObject, getExtensionIDMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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 theMyCouponBOfor it's persistance object. If it's not existing, a new my coupon is created.- Specified by:
resolvein 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
MyCouponBOfor the given persistance object
-
createMyCouponBOByEmail
for the given parameters a new MyCoupon will be created- Specified by:
createMyCouponBOByEmailin interfacecom.intershop.issup.component.mycoupon.capi.MyCouponBORepository
-
countMyCouponsByEmail
- Specified by:
countMyCouponsByEmailin 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:
getMyCouponBOByCodein 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:
getMyCouponBOByEmailin interfacecom.intershop.issup.component.mycoupon.capi.MyCouponBORepository- Returns:
- the generated coupon code
-
getAllCouponBOs
Generates a coupon code- Specified by:
getAllCouponBOsin interfacecom.intershop.issup.component.mycoupon.capi.MyCouponBORepository- Returns:
- the generated coupon code
-