java.lang.Object
com.intershop.beehive.orm.capi.common.ORMObjectFactory
com.intershop.beehive.core.capi.common.Factory
com.intershop.issup.component.mycoupon.orm.internal.mycoupon.orm.MyCouponPOFactory

public class MyCouponPOFactory extends com.intershop.beehive.core.capi.common.Factory
This class provides life cycle management methods for the class MyCouponPO.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Deprecated.
    use "NamingMgr.getInstance().lookupFactory(MyCouponPO.class)" instead
  • Constructor Summary

    Constructors
    Constructor
    Description
    MyCouponPOFactory(com.intershop.beehive.orm.capi.engine.ORMEngine engine, com.intershop.beehive.orm.capi.description.ClassDescription classDescription)
    The constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    create(com.intershop.beehive.core.capi.domain.Domain domain, String email, String coupon, Date creationDate)
    Creates a new instance of class MyCouponPO.
    create(String UUID, String domainID, String email, String coupon, Date creationDate)
    Creates a new instance of class MyCouponPO.
    Locates an instance of class MyCouponPO based on its primary key.
    getObjectByPrimaryKey(MyCouponPOKey key, com.intershop.beehive.orm.capi.common.FindMode mode)
    Locates an instance of class MyCouponPO based on its primary key.
    com.intershop.beehive.orm.capi.common.ORMObjectCollection
    Locates instances of class MyCouponPO based on the value of the attribute 'domainID'.
    com.intershop.beehive.orm.capi.common.ORMObjectCollection
    getObjectsByDomainID(String value, com.intershop.beehive.orm.capi.common.CacheMode cacheMode)
    Locates instances of class MyCouponPO based on the value of the attribute 'domainID'.
    void
    Removes an object by its primary key.

    Methods inherited from class com.intershop.beehive.core.capi.common.Factory

    createUUID, findAllInstances, findAllInstances, findByPrimaryKeyObject, findByPrimaryKeyObject, findBySQLJoin, findBySQLJoin, findBySQLWhere, findBySQLWhere

    Methods inherited from class com.intershop.beehive.orm.capi.common.ORMObjectFactory

    addObjectListener, getAllObjects, getAllObjects, getAllObjects, getClassDescription, getEngine, getObjectByAlternateKeyObject, getObjectByAlternateKeyObject, getObjectByPrimaryKeyObject, getObjectByPrimaryKeyObject, getObjectListeners, getObjectsBySQLJoin, getObjectsBySQLJoin, getObjectsBySQLJoin, getObjectsBySQLJoin, getObjectsBySQLWhere, getObjectsBySQLWhere, getObjectsBySQLWhere, getObjectsBySQLWhere, removeObjectListener

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • FACTORY_NAME

      @Deprecated public static final String FACTORY_NAME
      Deprecated.
      use "NamingMgr.getInstance().lookupFactory(MyCouponPO.class)" instead
      The name which can be used to lookup a factory from the naming manager.
      See Also:
  • Constructor Details

    • MyCouponPOFactory

      public MyCouponPOFactory(com.intershop.beehive.orm.capi.engine.ORMEngine engine, com.intershop.beehive.orm.capi.description.ClassDescription classDescription)
      The constructor.
  • Method Details

    • create

      public MyCouponPO create(String UUID, String domainID, String email, String coupon, Date creationDate)
      Creates a new instance of class MyCouponPO.
      Returns:
      the new instance of class MyCouponPO
    • create

      public MyCouponPO create(com.intershop.beehive.core.capi.domain.Domain domain, String email, String coupon, Date creationDate)
      Creates a new instance of class MyCouponPO.
      Returns:
      the new instance of class MyCouponPO
    • remove

      public void remove(MyCouponPOKey key)
      Removes an object by its primary key.
    • getObjectByPrimaryKey

      public MyCouponPO getObjectByPrimaryKey(MyCouponPOKey key)
      Locates an instance of class MyCouponPO based on its primary key.
      Parameters:
      key - the primary key to use for lookup
      Returns:
      the object for the specified primary key or null, if it wasn't found
    • getObjectByPrimaryKey

      public MyCouponPO getObjectByPrimaryKey(MyCouponPOKey key, com.intershop.beehive.orm.capi.common.FindMode mode)
      Locates an instance of class MyCouponPO based on its primary key.
      Parameters:
      key - the primary key to use for lookup
      mode - the strategy to use for the lookup
      Returns:
      the object for the specified primary key or null, if it wasn't found
    • getObjectsByDomainID

      public com.intershop.beehive.orm.capi.common.ORMObjectCollection getObjectsByDomainID(String value)
      Locates instances of class MyCouponPO based on the value of the attribute 'domainID'.
      Parameters:
      value - the value of the attribute 'domainID' to use for lookup
      Returns:
      a list of instances of class MyCouponPO that match the specified value of attribute domainID
    • getObjectsByDomainID

      public com.intershop.beehive.orm.capi.common.ORMObjectCollection getObjectsByDomainID(String value, com.intershop.beehive.orm.capi.common.CacheMode cacheMode)
      Locates instances of class MyCouponPO based on the value of the attribute 'domainID'. Depending on the passed cache mode, the collection internally caches the result objects or not. If caching is used, all results are cached in the collection and it can be iterated multiple times without repeated queries to the database. If no caching is used, the results will not be cached by the collection. Each call to iterator will execute the query again. This mode should be used when large result sets are expected and caching all results is not possible.
      Parameters:
      value - the value of the attribute 'domainID' to use for lookup
      cacheMode - the cache mode that specifies how to handle resolved objects
      Returns:
      a list of instances of class MyCouponPO that match the specified value of attribute domainID