|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.model.ImageWrapper
public class ImageWrapper
This class is a wrapper for Image.
Image,
Serialized Form| Constructor Summary | |
|---|---|
ImageWrapper(Image image)
|
|
| Method Summary | |
|---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(Image image)
|
ExpandoBridge |
getExpandoBridge()
Gets the expando bridge for this model instance. |
int |
getHeight()
Gets the height of this image. |
long |
getImageId()
Gets the image id of this image. |
Date |
getModifiedDate()
Gets the modified date of this image. |
long |
getPrimaryKey()
Gets the primary key of this image. |
Serializable |
getPrimaryKeyObj()
Gets the primary key of this model instance. |
int |
getSize()
Gets the size of this image. |
String |
getText()
Gets the text of this image. |
byte[] |
getTextObj()
|
String |
getType()
Gets the type of this image. |
int |
getWidth()
Gets the width of this image. |
Image |
getWrappedImage()
|
int |
hashCode()
|
boolean |
isCachedModel()
Determines if this model instance was retrieved from the entity cache. |
boolean |
isEscapedModel()
Determines if this model instance is escaped. |
boolean |
isNew()
Determines if this model instance does not yet exist in the database. |
void |
setCachedModel(boolean cachedModel)
Sets whether this model instance was retrieved from the entity cache. |
void |
setEscapedModel(boolean escapedModel)
Sets whether this model instance is escaped, meaning that all strings returned from getter methods are HTML safe. |
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 |
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 pk)
Sets the primary key of this image |
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. |
Image |
toEscapedModel()
Gets a copy of this image as an escaped model instance by wrapping it with an AutoEscapeBeanHandler. |
String |
toString()
|
String |
toXmlString()
Gets the XML representation of this model instance. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ImageWrapper(Image image)
| Method Detail |
|---|
public long getPrimaryKey()
ImageModel
getPrimaryKey in interface ImageModelpublic void setPrimaryKey(long pk)
ImageModel
setPrimaryKey in interface ImageModelpk - the primary key of this imagepublic long getImageId()
ImageModel
getImageId in interface ImageModelpublic void setImageId(long imageId)
ImageModel
setImageId in interface ImageModelimageId - the image id of this imagepublic Date getModifiedDate()
ImageModel
getModifiedDate in interface ImageModelpublic void setModifiedDate(Date modifiedDate)
ImageModel
setModifiedDate in interface ImageModelmodifiedDate - the modified date of this imagepublic String getText()
ImageModel
getText in interface ImageModelpublic void setText(String text)
ImageModel
setText in interface ImageModeltext - the text of this imagepublic String getType()
ImageModel
getType in interface ImageModelpublic void setType(String type)
ImageModel
setType in interface ImageModeltype - the type of this imagepublic int getHeight()
ImageModel
getHeight in interface ImageModelpublic void setHeight(int height)
ImageModel
setHeight in interface ImageModelheight - the height of this imagepublic int getWidth()
ImageModel
getWidth in interface ImageModelpublic void setWidth(int width)
ImageModel
setWidth in interface ImageModelwidth - the width of this imagepublic int getSize()
ImageModel
getSize in interface ImageModelpublic void setSize(int size)
ImageModel
setSize in interface ImageModelsize - the size of this imagepublic Image toEscapedModel()
ImageModelAutoEscapeBeanHandler.
toEscapedModel in interface ImageModelAutoEscapeBeanHandlerpublic boolean isNew()
BaseModel
isNew in interface BaseModel<Image>isNew in interface ImageModeltrue if this model instance does not yet exist in
the database; false otherwisepublic void setNew(boolean n)
BaseModel
setNew in interface BaseModel<Image>setNew in interface ImageModeln - whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModel
isCachedModel in interface BaseModel<Image>isCachedModel in interface ImageModeltrue if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel in interface BaseModel<Image>setCachedModel in interface ImageModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic boolean isEscapedModel()
BaseModel
isEscapedModel in interface BaseModel<Image>isEscapedModel in interface ImageModeltrue if this model instance is escaped;
false otherwiseBaseModel.setEscapedModel(boolean)public void setEscapedModel(boolean escapedModel)
BaseModel
A model instance can be made escaped by wrapping it with an HTML auto
escape handler using its toEscapedModel method. For example,
UserModel.toEscapedModel().
setEscapedModel in interface BaseModel<Image>setEscapedModel in interface ImageModelescapedModel - whether this model instance is escapedAutoEscapeBeanHandlerpublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<Image>getPrimaryKeyObj in interface ImageModelpublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<Image>getExpandoBridge in interface ImageModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<Image>setExpandoBridgeAttributes in interface ImageModelserviceContext - the service context to retrieve the expando bridge
attributes fromServiceContext.getExpandoBridgeAttributes(
)public Object clone()
BaseModel
clone in interface BaseModel<Image>clone in interface ImageModelclone in class Objectpublic int compareTo(Image image)
compareTo in interface ImageModelcompareTo in interface Comparable<Image>public int hashCode()
hashCode in interface ImageModelhashCode in class Objectpublic String toString()
toString in interface ImageModeltoString in class Objectpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<Image>toXmlString in interface ImageModelpublic byte[] getTextObj()
getTextObj in interface Imagepublic void setTextObj(byte[] textObj)
setTextObj in interface Imagepublic Image getWrappedImage()
|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||