Package com.liferay.portal.kernel.model
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>
This class is a wrapper for Image
.
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Field Summary
Fields inherited from class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper
model
Fields inherited from interface com.liferay.portal.kernel.model.Image
IMAGE_ID_ACCESSOR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the company ID of this image.long
Returns the ct collection ID of this image.int
Returns the height of this image.long
Returns the image ID of this image.Returns the modified date of this image.long
Returns the mvcc version of this image.long
Returns the primary key of this image.int
getSize()
Returns the size of this image.byte[]
getType()
Returns the type of this image.int
getWidth()
Returns the width of this image.void
persist()
Updates this model instance in the database or adds it if it does not yet exist.void
setCompanyId
(long companyId) Sets the company ID of this image.void
setCtCollectionId
(long ctCollectionId) Sets the ct collection ID of this image.void
setHeight
(int height) Sets the height of this image.void
setImageId
(long imageId) Sets the image ID of this image.void
setModelAttributes
(Map<String, Object> attributes) void
setModifiedDate
(Date modifiedDate) Sets the modified date of this image.void
setMvccVersion
(long mvccVersion) Sets the mvcc version of this image.void
setPrimaryKey
(long primaryKey) Sets the primary key of this image.void
setSize
(int size) Sets the size of this image.void
setTextObj
(byte[] textObj) void
Sets the type of this image.void
setWidth
(int width) Sets the width of this image.protected ImageWrapper
Methods inherited from class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper
clone, compareTo, equals, getExpandoBridge, getModelClass, getModelClassName, getPrimaryKeyObj, getWrappedModel, hashCode, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toString, toUnescapedModel
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.liferay.portal.kernel.model.BaseModel
clone, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel
Methods inherited from interface com.liferay.portal.kernel.model.ClassedModel
getModelClass, getModelClassName
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.liferay.portal.kernel.model.ModelWrapper
getWrappedModel
-
Constructor Details
-
ImageWrapper
-
-
Method Details
-
getModelAttributes
- Specified by:
getModelAttributes
in interfaceBaseModel<Image>
-
setModelAttributes
- Specified by:
setModelAttributes
in interfaceBaseModel<Image>
-
cloneWithOriginalValues
- Specified by:
cloneWithOriginalValues
in interfaceBaseModel<Image>
- Specified by:
cloneWithOriginalValues
in interfaceImageModel
-
getCompanyId
public long getCompanyId()Returns the company ID of this image.- Specified by:
getCompanyId
in interfaceImageModel
- Specified by:
getCompanyId
in interfaceShardedModel
- Returns:
- the company ID of this image
-
getCtCollectionId
public long getCtCollectionId()Returns the ct collection ID of this image.- Specified by:
getCtCollectionId
in interfaceCTModel<Image>
- Specified by:
getCtCollectionId
in interfaceImageModel
- Returns:
- the ct collection ID of this image
-
getHeight
public int getHeight()Returns the height of this image.- Specified by:
getHeight
in interfaceImageModel
- Returns:
- the height of this image
-
getImageId
public long getImageId()Returns the image ID of this image.- Specified by:
getImageId
in interfaceImageModel
- Returns:
- the image ID of this image
-
getModifiedDate
Returns the modified date of this image.- Specified by:
getModifiedDate
in interfaceImageModel
- Returns:
- the modified date of this image
-
getMvccVersion
public long getMvccVersion()Returns the mvcc version of this image.- Specified by:
getMvccVersion
in interfaceImageModel
- Specified by:
getMvccVersion
in interfaceMVCCModel
- Returns:
- the mvcc version of this image
-
getPrimaryKey
public long getPrimaryKey()Returns the primary key of this image.- Specified by:
getPrimaryKey
in interfaceCTModel<Image>
- Specified by:
getPrimaryKey
in interfaceImageModel
- Returns:
- the primary key of this image
-
getSize
public int getSize()Returns the size of this image.- Specified by:
getSize
in interfaceImageModel
- Returns:
- the size of this image
-
getTextObj
public byte[] getTextObj()- Specified by:
getTextObj
in interfaceImage
-
getType
Returns the type of this image.- Specified by:
getType
in interfaceImageModel
- Returns:
- the type of this image
-
getWidth
public int getWidth()Returns the width of this image.- Specified by:
getWidth
in interfaceImageModel
- 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 interfacePersistedModel
-
setCompanyId
public void setCompanyId(long companyId) Sets the company ID of this image.- Specified by:
setCompanyId
in interfaceImageModel
- Specified by:
setCompanyId
in interfaceShardedModel
- 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 interfaceCTModel<Image>
- Specified by:
setCtCollectionId
in interfaceImageModel
- 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 interfaceImageModel
- Parameters:
height
- the height of this image
-
setImageId
public void setImageId(long imageId) Sets the image ID of this image.- Specified by:
setImageId
in interfaceImageModel
- Parameters:
imageId
- the image ID of this image
-
setModifiedDate
Sets the modified date of this image.- Specified by:
setModifiedDate
in interfaceImageModel
- 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 interfaceImageModel
- Specified by:
setMvccVersion
in interfaceMVCCModel
- 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 interfaceCTModel<Image>
- Specified by:
setPrimaryKey
in interfaceImageModel
- Parameters:
primaryKey
- the primary key of this image
-
setSize
public void setSize(int size) Sets the size of this image.- Specified by:
setSize
in interfaceImageModel
- Parameters:
size
- the size of this image
-
setTextObj
public void setTextObj(byte[] textObj) - Specified by:
setTextObj
in interfaceImage
-
setType
Sets the type of this image.- Specified by:
setType
in interfaceImageModel
- Parameters:
type
- the type of this image
-
setWidth
public void setWidth(int width) Sets the width of this image.- Specified by:
setWidth
in interfaceImageModel
- Parameters:
width
- the width of this image
-
toXmlString
- Specified by:
toXmlString
in interfaceImageModel
-
getAttributeGetterFunctions
- Specified by:
getAttributeGetterFunctions
in interfaceBaseModel<Image>
-
getAttributeSetterBiConsumers
- Specified by:
getAttributeSetterBiConsumers
in interfaceBaseModel<Image>
-
wrap
- Specified by:
wrap
in classBaseModelWrapper<Image>
-