Class ImageWrapper

Object
com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<Image>
com.liferay.portal.kernel.model.ImageWrapper
All Implemented Interfaces:
BaseModel<Image>, CTModel<Image>, ClassedModel, Image, ImageModel, ModelWrapper<Image>, MVCCModel, PersistedModel, ShardedModel, Serializable, Cloneable, Comparable<Image>

public class ImageWrapper extends BaseModelWrapper<Image> implements Image, ModelWrapper<Image>

This class is a wrapper for Image.

Author:
Brian Wing Shun Chan
See Also:
{$generated.description}
  • Constructor Details

    • ImageWrapper

      public ImageWrapper(Image image)
  • Method Details

    • getModelAttributes

      public Map<String,Object> getModelAttributes()
      Specified by:
      getModelAttributes in interface BaseModel<Image>
    • setModelAttributes

      public void setModelAttributes(Map<String,Object> attributes)
      Specified by:
      setModelAttributes in interface BaseModel<Image>
    • cloneWithOriginalValues

      public Image cloneWithOriginalValues()
      Specified by:
      cloneWithOriginalValues in interface BaseModel<Image>
      Specified by:
      cloneWithOriginalValues in interface ImageModel
    • getCompanyId

      public long getCompanyId()
      Returns the company ID of this image.
      Specified by:
      getCompanyId in interface ImageModel
      Specified by:
      getCompanyId in interface ShardedModel
      Returns:
      the company ID of this image
    • getCtCollectionId

      public long getCtCollectionId()
      Returns the ct collection ID of this image.
      Specified by:
      getCtCollectionId in interface CTModel<Image>
      Specified by:
      getCtCollectionId in interface ImageModel
      Returns:
      the ct collection ID of this image
    • getHeight

      public int getHeight()
      Returns the height of this image.
      Specified by:
      getHeight in interface ImageModel
      Returns:
      the height of this image
    • getImageId

      public long getImageId()
      Returns the image ID of this image.
      Specified by:
      getImageId in interface ImageModel
      Returns:
      the image ID of this image
    • getModifiedDate

      public Date getModifiedDate()
      Returns the modified date of this image.
      Specified by:
      getModifiedDate in interface ImageModel
      Returns:
      the modified date of this image
    • getMvccVersion

      public long getMvccVersion()
      Returns the mvcc version of this image.
      Specified by:
      getMvccVersion in interface ImageModel
      Specified by:
      getMvccVersion in interface MVCCModel
      Returns:
      the mvcc version of this image
    • getPrimaryKey

      public long getPrimaryKey()
      Returns the primary key of this image.
      Specified by:
      getPrimaryKey in interface CTModel<Image>
      Specified by:
      getPrimaryKey in interface ImageModel
      Returns:
      the primary key of this image
    • getSize

      public int getSize()
      Returns the size of this image.
      Specified by:
      getSize in interface ImageModel
      Returns:
      the size of this image
    • getTextObj

      public byte[] getTextObj()
      Specified by:
      getTextObj in interface Image
    • getType

      public String getType()
      Returns the type of this image.
      Specified by:
      getType in interface ImageModel
      Returns:
      the type of this image
    • getWidth

      public int getWidth()
      Returns the width of this image.
      Specified by:
      getWidth in interface ImageModel
      Returns:
      the width of this image
    • persist

      public void persist()
      Description copied from interface: PersistedModel
      Updates this model instance in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
      Specified by:
      persist in interface PersistedModel
    • setCompanyId

      public void setCompanyId(long companyId)
      Sets the company ID of this image.
      Specified by:
      setCompanyId in interface ImageModel
      Specified by:
      setCompanyId in interface ShardedModel
      Parameters:
      companyId - the company ID of this image
    • setCtCollectionId

      public void setCtCollectionId(long ctCollectionId)
      Sets the ct collection ID of this image.
      Specified by:
      setCtCollectionId in interface CTModel<Image>
      Specified by:
      setCtCollectionId in interface ImageModel
      Parameters:
      ctCollectionId - the ct collection ID of this image
    • setHeight

      public void setHeight(int height)
      Sets the height of this image.
      Specified by:
      setHeight in interface ImageModel
      Parameters:
      height - the height of this image
    • setImageId

      public void setImageId(long imageId)
      Sets the image ID of this image.
      Specified by:
      setImageId in interface ImageModel
      Parameters:
      imageId - the image ID of this image
    • setModifiedDate

      public void setModifiedDate(Date modifiedDate)
      Sets the modified date of this image.
      Specified by:
      setModifiedDate in interface ImageModel
      Parameters:
      modifiedDate - the modified date of this image
    • setMvccVersion

      public void setMvccVersion(long mvccVersion)
      Sets the mvcc version of this image.
      Specified by:
      setMvccVersion in interface ImageModel
      Specified by:
      setMvccVersion in interface MVCCModel
      Parameters:
      mvccVersion - the mvcc version of this image
    • setPrimaryKey

      public void setPrimaryKey(long primaryKey)
      Sets the primary key of this image.
      Specified by:
      setPrimaryKey in interface CTModel<Image>
      Specified by:
      setPrimaryKey in interface ImageModel
      Parameters:
      primaryKey - the primary key of this image
    • setSize

      public void setSize(int size)
      Sets the size of this image.
      Specified by:
      setSize in interface ImageModel
      Parameters:
      size - the size of this image
    • setTextObj

      public void setTextObj(byte[] textObj)
      Specified by:
      setTextObj in interface Image
    • setType

      public void setType(String type)
      Sets the type of this image.
      Specified by:
      setType in interface ImageModel
      Parameters:
      type - the type of this image
    • setWidth

      public void setWidth(int width)
      Sets the width of this image.
      Specified by:
      setWidth in interface ImageModel
      Parameters:
      width - the width of this image
    • toXmlString

      public String toXmlString()
      Specified by:
      toXmlString in interface ImageModel
    • getAttributeGetterFunctions

      public Map<String,Function<Image,Object>> getAttributeGetterFunctions()
      Specified by:
      getAttributeGetterFunctions in interface BaseModel<Image>
    • getAttributeSetterBiConsumers

      public Map<String,BiConsumer<Image,Object>> getAttributeSetterBiConsumers()
      Specified by:
      getAttributeSetterBiConsumers in interface BaseModel<Image>
    • wrap

      protected ImageWrapper wrap(Image image)
      Specified by:
      wrap in class BaseModelWrapper<Image>