Class MProductDownload

All Implemented Interfaces:
Serializable, Cloneable, Comparator<Object>, I_M_ProductDownload, I_Persistent, Evaluatee, ImmutablePOSupport

public class MProductDownload extends X_M_ProductDownload implements ImmutablePOSupport
Product Download Model
Version:
$Id: MProductDownload.java,v 1.2 2006/07/30 00:51:03 jjanke Exp $
Author:
Jorg Janke, Michael Judd BF [ 2736995 ] - toURL() in java.io.File has been deprecated
See Also:
  • Constructor Details

    • MProductDownload

      public MProductDownload(Properties ctx, String M_ProductDownload_UU, String trxName)
      UUID based Constructor
      Parameters:
      ctx - Context
      M_ProductDownload_UU - UUID key
      trxName - Transaction
    • MProductDownload

      public MProductDownload(Properties ctx, int M_ProductDownload_ID, String trxName)
      Standard Constructor
      Parameters:
      ctx - context
      M_ProductDownload_ID - id
      trxName - trx
    • MProductDownload

      public MProductDownload(Properties ctx, ResultSet rs, String trxName)
      Load Constructor
      Parameters:
      ctx - context
      rs - result set
      trxName - trx
    • MProductDownload

      public MProductDownload(MProductDownload copy)
      Copy constructor
      Parameters:
      copy -
    • MProductDownload

      public MProductDownload(Properties ctx, MProductDownload copy)
      Copy constructor
      Parameters:
      ctx -
      copy -
    • MProductDownload

      public MProductDownload(Properties ctx, MProductDownload copy, String trxName)
      Copy constructor
      Parameters:
      ctx -
      copy -
      trxName -
  • Method Details

    • migrateDownloads

      @Deprecated public static void migrateDownloads(Properties ctx)
      Deprecated.
      Migrate Download URLs (2.5.2c)
      Parameters:
      ctx - context
    • toString

      public String toString()
      String Representation
      Overrides:
      toString in class X_M_ProductDownload
      Returns:
      info
    • getDownloadName

      public String getDownloadName()
      Get Download Name
      Returns:
      download name (last part of name)
    • getDownloadURL

      public URI getDownloadURL(String directory)
      Get Download URL
      Parameters:
      directory - optional directory
      Returns:
      url
    • getDownloadFile

      public File getDownloadFile(String directory)
      Find download url
      Parameters:
      directory - optional directory
      Returns:
      file or null
    • getDownloadStream

      public InputStream getDownloadStream(String directory)
      Get Download Stream
      Parameters:
      directory - optional directory
      Returns:
      input stream or null
    • markImmutable

      public MProductDownload markImmutable()
      Description copied from interface: ImmutablePOSupport
      mark PO as immutable
      Specified by:
      markImmutable in interface ImmutablePOSupport
      Returns:
      PO