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:
java.io.Serializable
- Direct Known Subclasses:
DerivedMediaModel,MediaModel
public class AbstractMediaModel extends ItemModel
Generated model class for type AbstractMedia first defined at extension core.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
AbstractItemModel.NewModelContextFactory
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String_TYPECODEGenerated model type code constant.static java.lang.StringDATAPKGenerated constant - Attribute key ofAbstractMedia.dataPKattribute defined at extensioncore.static java.lang.StringLOCATIONGenerated constant - Attribute key ofAbstractMedia.locationattribute defined at extensioncore.static java.lang.StringLOCATIONHASHGenerated constant - Attribute key ofAbstractMedia.locationHashattribute defined at extensioncore.static java.lang.StringMIMEGenerated constant - Attribute key ofAbstractMedia.mimeattribute defined at extensioncore.static java.lang.StringREALFILENAMEGenerated constant - Attribute key ofAbstractMedia.realFileNameattribute defined at extensioncore.static java.lang.StringSIZEGenerated constant - Attribute key ofAbstractMedia.sizeattribute defined at extensioncore.-
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 AbstractMediaModel()Generated constructor - Default constructor for generic creation.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 parametersAbstractMediaModel(ItemModelContext ctx)Generated constructor - Default constructor for creation with existing context
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.LonggetDataPK()Generated method - Getter of theAbstractMedia.dataPKattribute defined at extensioncore.java.lang.StringgetLocation()Generated method - Getter of theAbstractMedia.locationattribute defined at extensioncore.java.lang.StringgetLocationHash()Generated method - Getter of theAbstractMedia.locationHashattribute defined at extensioncore.java.lang.StringgetMime()Generated method - Getter of theAbstractMedia.mimeattribute defined at extensioncore.java.lang.StringgetRealfilename()Deprecated, for removal: This API element is subject to removal in a future version.since ages - use { @link #getRealFileName()} insteadjava.lang.StringgetRealFileName()Generated method - Getter of theAbstractMedia.realFileNameattribute defined at extensioncore.java.lang.LonggetSize()Generated method - Getter of theAbstractMedia.sizeattribute defined at extensioncore.voidsetDataPK(java.lang.Long value)Generated method - Setter ofAbstractMedia.dataPKattribute defined at extensioncore.voidsetLocation(java.lang.String value)Generated method - Setter ofAbstractMedia.locationattribute defined at extensioncore.voidsetLocationHash(java.lang.String value)Generated method - Setter ofAbstractMedia.locationHashattribute defined at extensioncore.voidsetMime(java.lang.String value)Generated method - Setter ofAbstractMedia.mimeattribute defined at extensioncore.voidsetRealfilename(java.lang.String value)Deprecated, for removal: This API element is subject to removal in a future version.since ages - use { @link #setRealFileName(java.lang.String)} insteadvoidsetRealFileName(java.lang.String value)Generated method - Setter ofAbstractMedia.realFileNameattribute defined at extensioncore.voidsetSize(java.lang.Long value)Generated method - Setter ofAbstractMedia.sizeattribute defined at extensioncore.-
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
-
-
-
-
Field Detail
-
_TYPECODE
public static final java.lang.String _TYPECODE
Generated model type code constant.- See Also:
- Constant Field Values
-
MIME
public static final java.lang.String MIME
Generated constant - Attribute key ofAbstractMedia.mimeattribute defined at extensioncore.- See Also:
- Constant Field Values
-
SIZE
public static final java.lang.String SIZE
Generated constant - Attribute key ofAbstractMedia.sizeattribute defined at extensioncore.- See Also:
- Constant Field Values
-
DATAPK
public static final java.lang.String DATAPK
Generated constant - Attribute key ofAbstractMedia.dataPKattribute defined at extensioncore.- See Also:
- Constant Field Values
-
LOCATION
public static final java.lang.String LOCATION
Generated constant - Attribute key ofAbstractMedia.locationattribute defined at extensioncore.- See Also:
- Constant Field Values
-
LOCATIONHASH
public static final java.lang.String LOCATIONHASH
Generated constant - Attribute key ofAbstractMedia.locationHashattribute defined at extensioncore.- See Also:
- Constant Field Values
-
REALFILENAME
public static final java.lang.String REALFILENAME
Generated constant - Attribute key ofAbstractMedia.realFileNameattribute defined at extensioncore.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AbstractMediaModel
public AbstractMediaModel()
Generated constructor - Default constructor for generic creation.
-
AbstractMediaModel
public AbstractMediaModel(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 parametersGenerated constructor - for all mandatory and initial attributes.- Parameters:
_owner- initial attribute declared by typeItemat extensioncore
-
-
Method Detail
-
getDataPK
@Accessor(qualifier="dataPK", type=GETTER) public java.lang.Long getDataPK()
Generated method - Getter of theAbstractMedia.dataPKattribute defined at extensioncore.- Returns:
- the dataPK - PK of the referenced data file.
-
getLocation
@Accessor(qualifier="location", type=GETTER) public java.lang.String getLocation()
Generated method - Getter of theAbstractMedia.locationattribute defined at extensioncore.- Returns:
- the location - Generated location (by one of Storage Strategies) to media within storage.
-
getLocationHash
@Accessor(qualifier="locationHash", type=GETTER) public java.lang.String getLocationHash()
Generated method - Getter of theAbstractMedia.locationHashattribute defined at extensioncore.- Returns:
- the locationHash - Computed hash of folder qualifier and location
-
getMime
@Accessor(qualifier="mime", type=GETTER) public java.lang.String getMime()
Generated method - Getter of theAbstractMedia.mimeattribute defined at extensioncore.- Returns:
- the mime - Mime type of referenced data file.
-
getRealfilename
@Deprecated(since="ages", forRemoval=true) public java.lang.String getRealfilename()Deprecated, for removal: This API element is subject to removal in a future version.since ages - use { @link #getRealFileName()} insteadGenerated method - Getter of theAbstractMedia.realFileNameattribute defined at extensioncore.- Returns:
- the realFileName
-
getRealFileName
@Accessor(qualifier="realFileName", type=GETTER) public java.lang.String getRealFileName()
Generated method - Getter of theAbstractMedia.realFileNameattribute defined at extensioncore.- Returns:
- the realFileName
-
getSize
@Accessor(qualifier="size", type=GETTER) public java.lang.Long getSize()
Generated method - Getter of theAbstractMedia.sizeattribute defined at extensioncore.- Returns:
- the size - Size of referenced data file.
-
setDataPK
@Accessor(qualifier="dataPK", type=SETTER) public void setDataPK(java.lang.Long value)
Generated method - Setter ofAbstractMedia.dataPKattribute defined at extensioncore.- Parameters:
value- the dataPK - PK of the referenced data file.
-
setLocation
@Accessor(qualifier="location", type=SETTER) public void setLocation(java.lang.String value)
Generated method - Setter ofAbstractMedia.locationattribute defined at extensioncore.- Parameters:
value- the location - Generated location (by one of Storage Strategies) to media within storage.
-
setLocationHash
@Accessor(qualifier="locationHash", type=SETTER) public void setLocationHash(java.lang.String value)
Generated method - Setter ofAbstractMedia.locationHashattribute defined at extensioncore.- Parameters:
value- the locationHash - Computed hash of folder qualifier and location
-
setMime
@Accessor(qualifier="mime", type=SETTER) public void setMime(java.lang.String value)
Generated method - Setter ofAbstractMedia.mimeattribute defined at extensioncore.- Parameters:
value- the mime - Mime type of referenced data file.
-
setRealfilename
@Deprecated(since="ages", forRemoval=true) public void setRealfilename(java.lang.String value)Deprecated, for removal: This API element is subject to removal in a future version.since ages - use { @link #setRealFileName(java.lang.String)} insteadGenerated method - Setter ofAbstractMedia.realFileNameattribute defined at extensioncore.- Parameters:
value- the realFileName
-
setRealFileName
@Accessor(qualifier="realFileName", type=SETTER) public void setRealFileName(java.lang.String value)
Generated method - Setter ofAbstractMedia.realFileNameattribute defined at extensioncore.- Parameters:
value- the realFileName
-
-