|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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)
|
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 |
---|
public ImageWrapper(Image image)
Method Detail |
---|
public Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<Image>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<Image>
public long getPrimaryKey()
getPrimaryKey
in interface ImageModel
public void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface ImageModel
primaryKey
- 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
true
if this model instance does not yet exist in
the database.
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
true
if this model instance was retrieved from the
entity cache.
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
true
if this model instance is escaped.
isEscapedModel
in interface BaseModel<Image>
isEscapedModel
in interface ImageModel
true
if this model instance is escaped;
false
otherwisepublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<Image>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface ImageModel
public void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<Image>
setPrimaryKeyObj
in interface ClassedModel
setPrimaryKeyObj
in interface ImageModel
primaryKeyObj
- the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<Image>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface ImageModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<Image>
setExpandoBridgeAttributes
in interface ImageModel
serviceContext
- the service contextServiceContext.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 CacheModel<Image> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<Image>
toCacheModel
in interface ImageModel
public Image toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface BaseModel<Image>
toEscapedModel
in interface ImageModel
AutoEscapeBeanHandler
public Image toUnescapedModel()
toUnescapedModel
in interface BaseModel<Image>
toUnescapedModel
in interface ImageModel
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 void persist() throws SystemException
PersistedModel
persist
in interface PersistedModel
SystemException
- if a system exception occurredpublic byte[] getTextObj()
getTextObj
in interface Image
public void setTextObj(byte[] textObj)
setTextObj
in interface Image
public boolean equals(Object obj)
equals
in class Object
public Image getWrappedImage()
getWrappedModel()
public Image getWrappedModel()
getWrappedModel
in interface ModelWrapper<Image>
public void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<Image>
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |