@ProviderType public class ImageWrapper extends java.lang.Object implements Image, ModelWrapper<Image>
This class is a wrapper for Image.
Image,
Serialized FormIMAGE_ID_ACCESSOR| Constructor and Description |
|---|
ImageWrapper(Image image) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(Image image) |
boolean |
equals(java.lang.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.
|
java.util.Map<java.lang.String,java.lang.Object> |
getModelAttributes() |
java.lang.Class<?> |
getModelClass() |
java.lang.String |
getModelClassName() |
java.util.Date |
getModifiedDate()
Returns the modified date of this image.
|
long |
getMvccVersion()
Returns the mvcc version of this image.
|
long |
getPrimaryKey()
Returns the primary key of this image.
|
java.io.Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
int |
getSize()
Returns the size of this image.
|
byte[] |
getTextObj() |
java.lang.String |
getType()
Returns the type of this image.
|
int |
getWidth()
Returns the width of this image.
|
Image |
getWrappedImage()
Deprecated.
As of 6.1.0, replaced by
getWrappedModel() |
Image |
getWrappedModel() |
int |
hashCode() |
boolean |
isCachedModel()
Returns
true if this model instance was retrieved from the
entity cache. |
boolean |
isEntityCacheEnabled()
Returns
true if this model's entity cache is enabled. |
boolean |
isEscapedModel()
Returns
true if this model instance is escaped. |
boolean |
isFinderCacheEnabled()
Returns
true if this model's finder cache is enabled. |
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(BaseModel<?> baseModel) |
void |
setExpandoBridgeAttributes(ExpandoBridge expandoBridge) |
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(java.util.Map<java.lang.String,java.lang.Object> attributes) |
void |
setModifiedDate(java.util.Date modifiedDate)
Sets the modified date of this image.
|
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version 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(java.io.Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
void |
setSize(int size)
Sets the size of this image.
|
void |
setTextObj(byte[] textObj) |
void |
setType(java.lang.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. |
java.lang.String |
toString() |
Image |
toUnescapedModel() |
java.lang.String |
toXmlString()
Returns the XML representation of this model instance.
|
public ImageWrapper(Image image)
public java.lang.Class<?> getModelClass()
getModelClass in interface ClassedModelpublic java.lang.String getModelClassName()
getModelClassName in interface ClassedModelpublic java.util.Map<java.lang.String,java.lang.Object> getModelAttributes()
getModelAttributes in interface BaseModel<Image>public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes in interface BaseModel<Image>public java.lang.Object clone()
BaseModelclone in interface BaseModel<Image>clone in interface ImageModelclone in class java.lang.Objectpublic int compareTo(Image image)
compareTo in interface ImageModelcompareTo in interface java.lang.Comparable<Image>public ExpandoBridge getExpandoBridge()
BaseModelgetExpandoBridge in interface BaseModel<Image>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface ImageModelpublic int getHeight()
getHeight in interface ImageModelpublic long getImageId()
getImageId in interface ImageModelpublic java.util.Date getModifiedDate()
getModifiedDate in interface ImageModelpublic long getMvccVersion()
getMvccVersion in interface ImageModelgetMvccVersion in interface MVCCModelpublic long getPrimaryKey()
getPrimaryKey in interface ImageModelpublic java.io.Serializable getPrimaryKeyObj()
BaseModelgetPrimaryKeyObj in interface BaseModel<Image>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface ImageModelpublic int getSize()
getSize in interface ImageModelpublic byte[] getTextObj()
getTextObj in interface Imagepublic java.lang.String getType()
getType in interface ImageModelpublic int getWidth()
getWidth in interface ImageModelpublic int hashCode()
hashCode in interface ImageModelhashCode in class java.lang.Objectpublic boolean isCachedModel()
BaseModeltrue if this model instance was retrieved from the
entity cache.isCachedModel in interface BaseModel<Image>isCachedModel in interface ImageModeltrue if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public boolean isEscapedModel()
BaseModeltrue if this model instance is escaped.isEscapedModel in interface BaseModel<Image>isEscapedModel in interface ImageModeltrue if this model instance is escaped;
false otherwisepublic boolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.isNew in interface BaseModel<Image>isNew in interface ImageModeltrue if this model instance does not yet exist in
the database; false otherwisepublic void persist()
PersistedModelpersist in interface PersistedModelpublic void setCachedModel(boolean cachedModel)
BaseModelsetCachedModel in interface BaseModel<Image>setCachedModel in interface ImageModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface BaseModel<Image>setExpandoBridgeAttributes in interface ImageModelpublic void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface BaseModel<Image>setExpandoBridgeAttributes in interface ImageModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModelsetExpandoBridgeAttributes in interface BaseModel<Image>setExpandoBridgeAttributes in interface ImageModelserviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes(
)public void setHeight(int height)
setHeight in interface ImageModelheight - the height of this imagepublic void setImageId(long imageId)
setImageId in interface ImageModelimageId - the image ID of this imagepublic void setModifiedDate(java.util.Date modifiedDate)
setModifiedDate in interface ImageModelmodifiedDate - the modified date of this imagepublic void setMvccVersion(long mvccVersion)
setMvccVersion in interface ImageModelsetMvccVersion in interface MVCCModelmvccVersion - the mvcc version of this imagepublic void setNew(boolean n)
BaseModelsetNew in interface BaseModel<Image>setNew in interface ImageModeln - whether this model instance does not yet exist in the databasepublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface ImageModelprimaryKey - the primary key of this imagepublic void setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
BaseModelsetPrimaryKeyObj in interface BaseModel<Image>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface ImageModelprimaryKeyObj - the primary key of this model instancepublic void setSize(int size)
setSize in interface ImageModelsize - the size of this imagepublic void setTextObj(byte[] textObj)
setTextObj in interface Imagepublic void setType(java.lang.String type)
setType in interface ImageModeltype - the type of this imagepublic void setWidth(int width)
setWidth in interface ImageModelwidth - the width of this imagepublic CacheModel<Image> toCacheModel()
BaseModeltoCacheModel in interface BaseModel<Image>toCacheModel in interface ImageModelpublic Image toEscapedModel()
BaseModelAutoEscapeBeanHandler.toEscapedModel in interface BaseModel<Image>toEscapedModel in interface ImageModelAutoEscapeBeanHandlerpublic java.lang.String toString()
toString in interface ImageModeltoString in class java.lang.Objectpublic Image toUnescapedModel()
toUnescapedModel in interface BaseModel<Image>toUnescapedModel in interface ImageModelpublic java.lang.String toXmlString()
BaseModeltoXmlString in interface BaseModel<Image>toXmlString in interface ImageModelpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object@Deprecated public Image getWrappedImage()
getWrappedModel()public Image getWrappedModel()
getWrappedModel in interface ModelWrapper<Image>public boolean isEntityCacheEnabled()
BaseModeltrue if this model's entity cache is enabled.isEntityCacheEnabled in interface BaseModel<Image>true if this model's entity cache is enabled;
false otherwisepublic boolean isFinderCacheEnabled()
BaseModeltrue if this model's finder cache is enabled.isFinderCacheEnabled in interface BaseModel<Image>true if this model's finder cache is enabled;
false otherwisepublic void resetOriginalValues()
BaseModelresetOriginalValues in interface BaseModel<Image>