|
Liferay 6.0.3 | |||||||||
| 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()
|
long |
getImageId()
|
Date |
getModifiedDate()
|
long |
getPrimaryKey()
|
Serializable |
getPrimaryKeyObj()
Gets the primary key for this model instance. |
int |
getSize()
|
String |
getText()
|
byte[] |
getTextObj()
|
String |
getType()
|
int |
getWidth()
|
Image |
getWrappedImage()
|
int |
hashCode()
|
boolean |
isCachedModel()
Determines if this model instance was retrieved from the entity cache. |
boolean |
isEscapedModel()
Determines if this model instance has been wrapped with an HTML auto escape handler. |
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 has been wrapped with an HTML auto escape handler. |
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)
|
void |
setImageId(long imageId)
|
void |
setModifiedDate(Date modifiedDate)
|
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database. |
void |
setPrimaryKey(long pk)
|
void |
setSize(int size)
|
void |
setText(String text)
|
void |
setTextObj(byte[] textObj)
|
void |
setType(String type)
|
void |
setWidth(int width)
|
Image |
toEscapedModel()
|
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()
getPrimaryKey in interface ImageModelpublic void setPrimaryKey(long pk)
setPrimaryKey in interface ImageModelpublic long getImageId()
getImageId in interface ImageModelpublic void setImageId(long imageId)
setImageId in interface ImageModelpublic Date getModifiedDate()
getModifiedDate in interface ImageModelpublic void setModifiedDate(Date modifiedDate)
setModifiedDate in interface ImageModelpublic String getText()
getText in interface ImageModelpublic void setText(String text)
setText in interface ImageModelpublic String getType()
getType in interface ImageModelpublic void setType(String type)
setType in interface ImageModelpublic int getHeight()
getHeight in interface ImageModelpublic void setHeight(int height)
setHeight in interface ImageModelpublic int getWidth()
getWidth in interface ImageModelpublic void setWidth(int width)
setWidth in interface ImageModelpublic int getSize()
getSize in interface ImageModelpublic void setSize(int size)
setSize in interface ImageModelpublic Image toEscapedModel()
toEscapedModel in interface ImageModelpublic 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 has been wrapped with an
HTML auto escape handler; false otherwiseBaseModel.setEscapedModel(boolean)public void setEscapedModel(boolean escapedModel)
BaseModel
A model instance can be wrapped 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 has been wrapped with an
HTML auto escape handlerAutoEscapeBeanHandlerpublic 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.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||