Liferay 6.1.2-ce-ga3

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>, PersistedModel, Serializable, Cloneable, Comparable<Image>

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

This class is a wrapper for Image.

See Also:
Image, Serialized Form

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)
           
 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 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.
 String getText()
          Returns the text of this image.
 byte[] getTextObj()
           
 String getType()
          Returns the type of this image.
 int getWidth()
          Returns the width of this image.
 Image getWrappedImage()
          Deprecated. Renamed to getWrappedModel()
 Image getWrappedModel()
           
 int hashCode()
           
 boolean isCachedModel()
          Returns true if this model instance was retrieved from the entity cache.
 boolean isEscapedModel()
          Returns true if this model instance is escaped.
 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 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 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 setText(String text)
          Sets the text 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>

getPrimaryKey

public long getPrimaryKey()
Returns the primary key of this image.

Specified by:
getPrimaryKey in interface ImageModel
Returns:
the primary key of this image

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

getImageId

public long getImageId()
Returns the image ID of this image.

Specified by:
getImageId in interface ImageModel
Returns:
the image ID 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

getModifiedDate

public Date getModifiedDate()
Returns the modified date of this image.

Specified by:
getModifiedDate in interface ImageModel
Returns:
the modified date 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

getText

public String getText()
Returns the text of this image.

Specified by:
getText in interface ImageModel
Returns:
the text of this image

setText

public void setText(String text)
Sets the text of this image.

Specified by:
setText in interface ImageModel
Parameters:
text - the text of this image

getType

public String getType()
Returns the type of this image.

Specified by:
getType in interface ImageModel
Returns:
the type of this 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

getHeight

public int getHeight()
Returns the height of this image.

Specified by:
getHeight in interface ImageModel
Returns:
the height 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

getWidth

public int getWidth()
Returns the width of this image.

Specified by:
getWidth in interface ImageModel
Returns:
the width 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

getSize

public int getSize()
Returns the size of this image.

Specified by:
getSize in interface ImageModel
Returns:
the size 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

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

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

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)

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

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

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

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

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

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
See Also:
ServiceContext.getExpandoBridgeAttributes( )

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>

hashCode

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

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

toUnescapedModel

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

toString

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

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

persist

public void persist()
             throws SystemException
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
Throws:
SystemException - if a system exception occurred

getTextObj

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

setTextObj

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

equals

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

getWrappedImage

public Image getWrappedImage()
Deprecated. Renamed to getWrappedModel()


getWrappedModel

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

resetOriginalValues

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

Specified by:
resetOriginalValues in interface BaseModel<Image>

Liferay 6.1.2-ce-ga3