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

    Constructors
    Constructor
    Description
    MyCouponBORepositoryImpl(String extensionID, com.intershop.component.repository.capi.RepositoryBO extendedObject)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    com.intershop.issup.component.mycoupon.capi.MyCouponBO
    for the given parameters a new MyCoupon will be created
    Collection<com.intershop.issup.component.mycoupon.capi.MyCouponBO>
    Generates a coupon code
    com.intershop.issup.component.mycoupon.capi.MyCouponBO
    Generates a coupon code
    Collection<com.intershop.issup.component.mycoupon.capi.MyCouponBO>
    Generates a coupon code
    com.intershop.issup.component.mycoupon.capi.MyCouponBO
    resolve(MyCouponPO myCouponPO)
    Returns the MyCouponBO 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

      public com.intershop.issup.component.mycoupon.capi.MyCouponBO resolve(MyCouponPO myCouponPO)
      Returns the MyCouponBO for it's persistance object. If it's not existing, a new my coupon is created.
      Specified by:
      resolve in interface com.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

      public com.intershop.issup.component.mycoupon.capi.MyCouponBO createMyCouponBOByEmail(String email)
      for the given parameters a new MyCoupon will be created
      Specified by:
      createMyCouponBOByEmail in interface com.intershop.issup.component.mycoupon.capi.MyCouponBORepository
    • countMyCouponsByEmail

      public int countMyCouponsByEmail(String email)
      Specified by:
      countMyCouponsByEmail in interface com.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 interface com.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 interface com.intershop.issup.component.mycoupon.capi.MyCouponBORepository
      Returns:
      the generated coupon code
    • getAllCouponBOs

      public Collection<com.intershop.issup.component.mycoupon.capi.MyCouponBO> getAllCouponBOs()
      Generates a coupon code
      Specified by:
      getAllCouponBOs in interface com.intershop.issup.component.mycoupon.capi.MyCouponBORepository
      Returns:
      the generated coupon code