Class AbstractMediaModel

java.lang.Object
de.hybris.platform.servicelayer.model.AbstractItemModel
de.hybris.platform.core.model.ItemModel
de.hybris.platform.core.model.media.AbstractMediaModel
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DerivedMediaModel, MediaModel

public class AbstractMediaModel extends ItemModel
Generated model class for type AbstractMedia first defined at extension core.
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel

    de.hybris.platform.servicelayer.model.AbstractItemModel.NewModelContextFactory
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Generated model type code constant.
    static final String
    Generated constant - Attribute key of AbstractMedia.dataPK attribute defined at extension core.
    static final String
    Generated constant - Attribute key of AbstractMedia.location attribute defined at extension core.
    static final String
    Generated constant - Attribute key of AbstractMedia.locationHash attribute defined at extension core.
    static final String
    Generated constant - Attribute key of AbstractMedia.mime attribute defined at extension core.
    static final String
    Generated constant - Attribute key of AbstractMedia.realFileName attribute defined at extension core.
    static final String
    Generated constant - Attribute key of AbstractMedia.size attribute defined at extension core.

    Fields inherited from class de.hybris.platform.core.model.ItemModel

    _COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALED

    Fields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel

    LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY
  • Constructor Summary

    Constructors
    Constructor
    Description
    Generated constructor - Default constructor for generic creation.
    Deprecated, for removal: This API element is subject to removal in a future version.
    since 4.1.1 Please use the default constructor without parameters
    AbstractMediaModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx)
    Generated constructor - Default constructor for creation with existing context
  • Method Summary

    Modifier and Type
    Method
    Description
    Generated method - Getter of the AbstractMedia.dataPK attribute defined at extension core.
    Generated method - Getter of the AbstractMedia.location attribute defined at extension core.
    Generated method - Getter of the AbstractMedia.locationHash attribute defined at extension core.
    Generated method - Getter of the AbstractMedia.mime attribute defined at extension core.
    Deprecated, for removal: This API element is subject to removal in a future version.
    since ages - use { @link #getRealFileName()} instead
    Generated method - Getter of the AbstractMedia.realFileName attribute defined at extension core.
    Generated method - Getter of the AbstractMedia.size attribute defined at extension core.
    void
    setDataPK(Long value)
    Generated method - Setter of AbstractMedia.dataPK attribute defined at extension core.
    void
    Generated method - Setter of AbstractMedia.location attribute defined at extension core.
    void
    Generated method - Setter of AbstractMedia.locationHash attribute defined at extension core.
    void
    setMime(String value)
    Generated method - Setter of AbstractMedia.mime attribute defined at extension core.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    since ages - use { @link #setRealFileName(java.lang.String)} instead
    void
    Generated method - Setter of AbstractMedia.realFileName attribute defined at extension core.
    void
    setSize(Long value)
    Generated method - Setter of AbstractMedia.size attribute defined at extension core.

    Methods inherited from class de.hybris.platform.core.model.ItemModel

    getComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwner

    Methods inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel

    equals, getItemModelContext, getItemtype, getPersistenceContext, getPk, getProperty, getProperty, getTenantId, hashCode, readResolve, setProperty, setProperty, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toString, writeReplace

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • _TYPECODE

      public static final String _TYPECODE
      Generated model type code constant.
      See Also:
    • MIME

      public static final String MIME
      Generated constant - Attribute key of AbstractMedia.mime attribute defined at extension core.
      See Also:
    • SIZE

      public static final String SIZE
      Generated constant - Attribute key of AbstractMedia.size attribute defined at extension core.
      See Also:
    • DATAPK

      public static final String DATAPK
      Generated constant - Attribute key of AbstractMedia.dataPK attribute defined at extension core.
      See Also:
    • LOCATION

      public static final String LOCATION
      Generated constant - Attribute key of AbstractMedia.location attribute defined at extension core.
      See Also:
    • LOCATIONHASH

      public static final String LOCATIONHASH
      Generated constant - Attribute key of AbstractMedia.locationHash attribute defined at extension core.
      See Also:
    • REALFILENAME

      public static final String REALFILENAME
      Generated constant - Attribute key of AbstractMedia.realFileName attribute defined at extension core.
      See Also:
  • Constructor Details

    • AbstractMediaModel

      public AbstractMediaModel()
      Generated constructor - Default constructor for generic creation.
    • AbstractMediaModel

      public AbstractMediaModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx)
      Generated constructor - Default constructor for creation with existing context
      Parameters:
      ctx - the model context to be injected, must not be null
    • AbstractMediaModel

      @Deprecated(since="4.1.1", forRemoval=true) public AbstractMediaModel(ItemModel _owner)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 4.1.1 Please use the default constructor without parameters
      Generated constructor - for all mandatory and initial attributes.
      Parameters:
      _owner - initial attribute declared by type Item at extension core
  • Method Details

    • getDataPK

      @Accessor(qualifier="dataPK", type=GETTER) public Long getDataPK()
      Generated method - Getter of the AbstractMedia.dataPK attribute defined at extension core.
      Returns:
      the dataPK - PK of the referenced data file.
    • getLocation

      @Accessor(qualifier="location", type=GETTER) public String getLocation()
      Generated method - Getter of the AbstractMedia.location attribute defined at extension core.
      Returns:
      the location - Generated location (by one of Storage Strategies) to media within storage.
    • getLocationHash

      @Accessor(qualifier="locationHash", type=GETTER) public String getLocationHash()
      Generated method - Getter of the AbstractMedia.locationHash attribute defined at extension core.
      Returns:
      the locationHash - Computed hash of folder qualifier and location
    • getMime

      @Accessor(qualifier="mime", type=GETTER) public String getMime()
      Generated method - Getter of the AbstractMedia.mime attribute defined at extension core.
      Returns:
      the mime - Mime type of referenced data file.
    • getRealfilename

      @Deprecated(since="ages", forRemoval=true) public String getRealfilename()
      Deprecated, for removal: This API element is subject to removal in a future version.
      since ages - use { @link #getRealFileName()} instead
      Generated method - Getter of the AbstractMedia.realFileName attribute defined at extension core.
      Returns:
      the realFileName
    • getRealFileName

      @Accessor(qualifier="realFileName", type=GETTER) public String getRealFileName()
      Generated method - Getter of the AbstractMedia.realFileName attribute defined at extension core.
      Returns:
      the realFileName
    • getSize

      @Accessor(qualifier="size", type=GETTER) public Long getSize()
      Generated method - Getter of the AbstractMedia.size attribute defined at extension core.
      Returns:
      the size - Size of referenced data file.
    • setDataPK

      @Accessor(qualifier="dataPK", type=SETTER) public void setDataPK(Long value)
      Generated method - Setter of AbstractMedia.dataPK attribute defined at extension core.
      Parameters:
      value - the dataPK - PK of the referenced data file.
    • setLocation

      @Accessor(qualifier="location", type=SETTER) public void setLocation(String value)
      Generated method - Setter of AbstractMedia.location attribute defined at extension core.
      Parameters:
      value - the location - Generated location (by one of Storage Strategies) to media within storage.
    • setLocationHash

      @Accessor(qualifier="locationHash", type=SETTER) public void setLocationHash(String value)
      Generated method - Setter of AbstractMedia.locationHash attribute defined at extension core.
      Parameters:
      value - the locationHash - Computed hash of folder qualifier and location
    • setMime

      @Accessor(qualifier="mime", type=SETTER) public void setMime(String value)
      Generated method - Setter of AbstractMedia.mime attribute defined at extension core.
      Parameters:
      value - the mime - Mime type of referenced data file.
    • setRealfilename

      @Deprecated(since="ages", forRemoval=true) public void setRealfilename(String value)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since ages - use { @link #setRealFileName(java.lang.String)} instead
      Generated method - Setter of AbstractMedia.realFileName attribute defined at extension core.
      Parameters:
      value - the realFileName
    • setRealFileName

      @Accessor(qualifier="realFileName", type=SETTER) public void setRealFileName(String value)
      Generated method - Setter of AbstractMedia.realFileName attribute defined at extension core.
      Parameters:
      value - the realFileName
    • setSize

      @Accessor(qualifier="size", type=SETTER) public void setSize(Long value)
      Generated method - Setter of AbstractMedia.size attribute defined at extension core.
      Parameters:
      value - the size - Size of referenced data file.