|
Liferay 6.0-ee | |||||||||
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 FormConstructor 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 entity 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()
getPrimaryKey
in interface ImageModel
public void setPrimaryKey(long pk)
setPrimaryKey
in interface ImageModel
pk
- the primary key of this imagepublic long getImageId()
getImageId
in interface ImageModel
public void setImageId(long imageId)
setImageId
in interface ImageModel
imageId
- the image id of this imagepublic Date getModifiedDate()
getModifiedDate
in interface ImageModel
public void setModifiedDate(Date modifiedDate)
setModifiedDate
in interface ImageModel
modifiedDate
- the modified date of this imagepublic String getText()
getText
in interface ImageModel
public void setText(String text)
setText
in interface ImageModel
text
- the text of this imagepublic String getType()
getType
in interface ImageModel
public void setType(String type)
setType
in interface ImageModel
type
- the type of this imagepublic int getHeight()
getHeight
in interface ImageModel
public void setHeight(int height)
setHeight
in interface ImageModel
height
- the height of this imagepublic int getWidth()
getWidth
in interface ImageModel
public void setWidth(int width)
setWidth
in interface ImageModel
width
- the width of this imagepublic int getSize()
getSize
in interface ImageModel
public void setSize(int size)
setSize
in interface ImageModel
size
- the size of this imagepublic boolean isNew()
BaseModel
isNew
in interface BaseModel<Image>
isNew
in interface ImageModel
true
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 ImageModel
n
- whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModel
isCachedModel
in interface BaseModel<Image>
isCachedModel
in interface ImageModel
true
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 ImageModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public boolean isEscapedModel()
BaseModel
isEscapedModel
in interface BaseModel<Image>
isEscapedModel
in interface ImageModel
true
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 ImageModel
escapedModel
- whether this model instance is escapedAutoEscapeBeanHandler
public Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<Image>
getPrimaryKeyObj
in interface ImageModel
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<Image>
getExpandoBridge
in interface ImageModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<Image>
setExpandoBridgeAttributes
in interface ImageModel
serviceContext
- the service context to retrieve the expando bridge
attributes fromServiceContext.getExpandoBridgeAttributes(
)
public Object clone()
BaseModel
clone
in interface BaseModel<Image>
clone
in interface ImageModel
clone
in class Object
public int compareTo(Image image)
compareTo
in interface ImageModel
compareTo
in interface Comparable<Image>
public int hashCode()
hashCode
in interface ImageModel
hashCode
in class Object
public Image toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface BaseModel<Image>
toEscapedModel
in interface ImageModel
AutoEscapeBeanHandler
public String toString()
toString
in interface ImageModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<Image>
toXmlString
in interface ImageModel
public byte[] getTextObj()
getTextObj
in interface Image
public void setTextObj(byte[] textObj)
setTextObj
in interface Image
public Image getWrappedImage()
|
Liferay 6.0-ee | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |