Liferay 7.0-ce-b4

com.liferay.portal.model
Class ImageWrapper

java.lang.Object
  extended by com.liferay.portal.model.ImageWrapper
All Implemented Interfaces:
BaseModel<Image>, ClassedModel, Image, ImageModel, ModelWrapper<Image>, MVCCModel, PersistedModel, ShardedModel, Serializable, Cloneable, Comparable<Image>

@ProviderType
public class ImageWrapper
extends Object
implements Image, ModelWrapper<Image>

This class is a wrapper for Image.

See Also:
Image, Serialized Form

Field Summary
 
Fields inherited from interface com.liferay.portal.model.Image
IMAGE_ID_ACCESSOR
 
Constructor Summary
ImageWrapper(Image image)
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(Image image)
           
 boolean equals(Object obj)
           
 long getCompanyId()
          Returns the company ID of this image.
 ExpandoBridge getExpandoBridge()
          Returns the expando bridge for this model instance.
 int getHeight()
          Returns the height of this image.
 long getImageId()
          Returns the image ID of this image.
 Map<String,Object> getModelAttributes()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 Date getModifiedDate()
          Returns the modified date of this image.
 long getMvccVersion()
          Returns the mvcc version of this image.
 long getPrimaryKey()
          Returns the primary key of this image.
 Serializable getPrimaryKeyObj()
          Returns the primary key of this model instance.
 int getSize()
          Returns the size of this image.
 byte[] getTextObj()
           
 String getType()
          Returns the type of this image.
 int getWidth()
          Returns the width of this image.
 Image getWrappedModel()
           
 int hashCode()
           
 boolean isCachedModel()
          Returns true if this model instance was retrieved from the entity cache.
 boolean isEntityCacheEnabled()
          Returns true if this model's entity cache is enabled.
 boolean isEscapedModel()
          Returns true if this model instance is escaped.
 boolean isFinderCacheEnabled()
          Returns true if this model's finder cache is enabled.
 boolean isNew()
          Returns true if this model instance does not yet exist in the database.
 void persist()
          Updates this model instance in the database or adds it if it does not yet exist.
 void resetOriginalValues()
          Reset all original fields to current values.
 void setCachedModel(boolean cachedModel)
          Sets whether this model instance was retrieved from the entity cache.
 void setCompanyId(long companyId)
          Sets the company ID of this image.
 void setExpandoBridgeAttributes(BaseModel<?> baseModel)
           
 void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
           
 void setExpandoBridgeAttributes(ServiceContext serviceContext)
          Sets the expando bridge attributes for this model instance to the attributes stored in the service context.
 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 setNew(boolean n)
          Sets whether this model instance does not yet exist in the database.
 void setPrimaryKey(long primaryKey)
          Sets the primary key of this image.
 void setPrimaryKeyObj(Serializable primaryKeyObj)
          Sets the primary key of this model instance.
 void setSize(int size)
          Sets the size of this image.
 void setTextObj(byte[] textObj)
           
 void setType(String type)
          Sets the type of this image.
 void setWidth(int width)
          Sets the width of this image.
 CacheModel<Image> toCacheModel()
          Returns a cache model object for this entity used by entity cache.
 Image toEscapedModel()
          Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
 String toString()
           
 Image toUnescapedModel()
           
 String toXmlString()
          Returns the XML representation of this model instance.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ImageWrapper

public ImageWrapper(Image image)
Method Detail

getModelClass

public Class<?> getModelClass()
Specified by:
getModelClass in interface ClassedModel

getModelClassName

public String getModelClassName()
Specified by:
getModelClassName in interface ClassedModel

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>

clone

public Object clone()
Description copied from interface: BaseModel
Creates a shallow clone of this model instance.

Specified by:
clone in interface BaseModel<Image>
Specified by:
clone in interface ImageModel
Overrides:
clone in class Object
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(Image image)
Specified by:
compareTo in interface ImageModel
Specified by:
compareTo in interface Comparable<Image>

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

getExpandoBridge

public ExpandoBridge getExpandoBridge()
Description copied from interface: BaseModel
Returns the expando bridge for this model instance.

Specified by:
getExpandoBridge in interface BaseModel<Image>
Specified by:
getExpandoBridge in interface ClassedModel
Specified by:
getExpandoBridge in interface ImageModel
Returns:
the expando bridge for this model instance

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 ImageModel
Returns:
the primary key of this image

getPrimaryKeyObj

public Serializable getPrimaryKeyObj()
Description copied from interface: BaseModel
Returns the primary key of this model instance.

Specified by:
getPrimaryKeyObj in interface BaseModel<Image>
Specified by:
getPrimaryKeyObj in interface ClassedModel
Specified by:
getPrimaryKeyObj in interface ImageModel
Returns:
the primary key of this model instance

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

hashCode

public int hashCode()
Specified by:
hashCode in interface ImageModel
Overrides:
hashCode in class Object

isCachedModel

public boolean isCachedModel()
Description copied from interface: BaseModel
Returns true if this model instance was retrieved from the entity cache.

Specified by:
isCachedModel in interface BaseModel<Image>
Specified by:
isCachedModel in interface ImageModel
Returns:
true if this model instance was retrieved from the entity cache; false otherwise
See Also:
BaseModel.setCachedModel(boolean)

isEscapedModel

public boolean isEscapedModel()
Description copied from interface: BaseModel
Returns true if this model instance is escaped.

Specified by:
isEscapedModel in interface BaseModel<Image>
Specified by:
isEscapedModel in interface ImageModel
Returns:
true if this model instance is escaped; false otherwise

isNew

public boolean isNew()
Description copied from interface: BaseModel
Returns true if this model instance does not yet exist in the database.

Specified by:
isNew in interface BaseModel<Image>
Specified by:
isNew in interface ImageModel
Returns:
true if this model instance does not yet exist in the database; false otherwise

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

setCachedModel

public void setCachedModel(boolean cachedModel)
Description copied from interface: BaseModel
Sets whether this model instance was retrieved from the entity cache.

Specified by:
setCachedModel in interface BaseModel<Image>
Specified by:
setCachedModel in interface ImageModel
Parameters:
cachedModel - whether this model instance was retrieved from the entity cache
See Also:
EntityCache

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

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(BaseModel<?> baseModel)
Specified by:
setExpandoBridgeAttributes in interface BaseModel<Image>
Specified by:
setExpandoBridgeAttributes in interface ImageModel

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
Specified by:
setExpandoBridgeAttributes in interface BaseModel<Image>
Specified by:
setExpandoBridgeAttributes in interface ImageModel

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ServiceContext serviceContext)
Description copied from interface: BaseModel
Sets the expando bridge attributes for this model instance to the attributes stored in the service context.

Specified by:
setExpandoBridgeAttributes in interface BaseModel<Image>
Specified by:
setExpandoBridgeAttributes in interface ImageModel
Parameters:
serviceContext - the service context to be applied
See Also:
ServiceContext.getExpandoBridgeAttributes()

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

setNew

public void setNew(boolean n)
Description copied from interface: BaseModel
Sets whether this model instance does not yet exist in the database.

Specified by:
setNew in interface BaseModel<Image>
Specified by:
setNew in interface ImageModel
Parameters:
n - whether this model instance does not yet exist in the database

setPrimaryKey

public void setPrimaryKey(long primaryKey)
Sets the primary key of this image.

Specified by:
setPrimaryKey in interface ImageModel
Parameters:
primaryKey - the primary key of this image

setPrimaryKeyObj

public void setPrimaryKeyObj(Serializable primaryKeyObj)
Description copied from interface: BaseModel
Sets the primary key of this model instance.

Specified by:
setPrimaryKeyObj in interface BaseModel<Image>
Specified by:
setPrimaryKeyObj in interface ClassedModel
Specified by:
setPrimaryKeyObj in interface ImageModel
Parameters:
primaryKeyObj - the primary key of this model instance

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

toCacheModel

public CacheModel<Image> toCacheModel()
Description copied from interface: BaseModel
Returns a cache model object for this entity used by entity cache.

Specified by:
toCacheModel in interface BaseModel<Image>
Specified by:
toCacheModel in interface ImageModel
Returns:
the cache model object

toEscapedModel

public Image toEscapedModel()
Description copied from interface: BaseModel
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.

Specified by:
toEscapedModel in interface BaseModel<Image>
Specified by:
toEscapedModel in interface ImageModel
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

toString

public String toString()
Specified by:
toString in interface ImageModel
Overrides:
toString in class Object

toUnescapedModel

public Image toUnescapedModel()
Specified by:
toUnescapedModel in interface BaseModel<Image>
Specified by:
toUnescapedModel in interface ImageModel

toXmlString

public String toXmlString()
Description copied from interface: BaseModel
Returns the XML representation of this model instance.

Specified by:
toXmlString in interface BaseModel<Image>
Specified by:
toXmlString in interface ImageModel
Returns:
the XML representation of this model instance

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getWrappedModel

public Image getWrappedModel()
Specified by:
getWrappedModel in interface ModelWrapper<Image>

isEntityCacheEnabled

public boolean isEntityCacheEnabled()
Description copied from interface: BaseModel
Returns true if this model's entity cache is enabled.

Specified by:
isEntityCacheEnabled in interface BaseModel<Image>
Returns:
true if this model's entity cache is enabled; false otherwise

isFinderCacheEnabled

public boolean isFinderCacheEnabled()
Description copied from interface: BaseModel
Returns true if this model's finder cache is enabled.

Specified by:
isFinderCacheEnabled in interface BaseModel<Image>
Returns:
true if this model's finder cache is enabled; false otherwise

resetOriginalValues

public void resetOriginalValues()
Description copied from interface: BaseModel
Reset all original fields to current values.

Specified by:
resetOriginalValues in interface BaseModel<Image>

Liferay 7.0-ce-b4