public class ImageWrapper extends BaseModelWrapper<Image> implements Image, ModelWrapper<Image>
This class is a wrapper for Image.
Image,
Serialized FormmodelIMAGE_ID_ACCESSOR| Constructor and Description |
|---|
ImageWrapper(Image image) |
| Modifier and Type | Method and Description |
|---|---|
Image |
cloneWithOriginalValues() |
Map<String,Function<Image,Object>> |
getAttributeGetterFunctions() |
Map<String,BiConsumer<Image,Object>> |
getAttributeSetterBiConsumers() |
long |
getCompanyId()
Returns the company ID of this image.
|
long |
getCtCollectionId()
Returns the ct collection ID of this image.
|
int |
getHeight()
Returns the height of this image.
|
long |
getImageId()
Returns the image ID of this image.
|
Map<String,Object> |
getModelAttributes() |
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.
|
int |
getSize()
Returns the size of this image.
|
byte[] |
getTextObj() |
String |
getType()
Returns the type of this image.
|
int |
getWidth()
Returns the width of this image.
|
void |
persist()
Updates this model instance in the database or adds it if it does not yet
exist.
|
void |
setCompanyId(long companyId)
Sets the company ID of this image.
|
void |
setCtCollectionId(long ctCollectionId)
Sets the ct collection ID of this image.
|
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 |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this image.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this image.
|
void |
setSize(int size)
Sets the size 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.
|
protected ImageWrapper |
wrap(Image image) |
clone, compareTo, equals, getExpandoBridge, getModelClass, getModelClassName, getPrimaryKeyObj, getWrappedModel, hashCode, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toString, toUnescapedModel, toXmlStringclone, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel, toXmlStringgetModelClass, getModelClassNamegetWrappedModelpublic ImageWrapper(Image image)
public Map<String,Object> getModelAttributes()
getModelAttributes in interface BaseModel<Image>public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes in interface BaseModel<Image>public Image cloneWithOriginalValues()
cloneWithOriginalValues in interface BaseModel<Image>cloneWithOriginalValues in interface ImageModelpublic long getCompanyId()
getCompanyId in interface ImageModelgetCompanyId in interface ShardedModelpublic long getCtCollectionId()
getCtCollectionId in interface CTModel<Image>getCtCollectionId in interface ImageModelpublic int getHeight()
getHeight in interface ImageModelpublic long getImageId()
getImageId in interface ImageModelpublic Date getModifiedDate()
getModifiedDate in interface ImageModelpublic long getMvccVersion()
getMvccVersion in interface ImageModelgetMvccVersion in interface MVCCModelpublic long getPrimaryKey()
getPrimaryKey in interface CTModel<Image>getPrimaryKey in interface ImageModelpublic int getSize()
getSize in interface ImageModelpublic byte[] getTextObj()
getTextObj in interface Imagepublic String getType()
getType in interface ImageModelpublic int getWidth()
getWidth in interface ImageModelpublic void persist()
PersistedModelpersist in interface PersistedModelpublic void setCompanyId(long companyId)
setCompanyId in interface ImageModelsetCompanyId in interface ShardedModelcompanyId - the company ID of this imagepublic void setCtCollectionId(long ctCollectionId)
setCtCollectionId in interface CTModel<Image>setCtCollectionId in interface ImageModelctCollectionId - the ct collection ID of this imagepublic 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(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 setPrimaryKey(long primaryKey)
setPrimaryKey in interface CTModel<Image>setPrimaryKey in interface ImageModelprimaryKey - the primary key of this imagepublic void setSize(int size)
setSize in interface ImageModelsize - the size of this imagepublic void setTextObj(byte[] textObj)
setTextObj in interface Imagepublic void setType(String type)
setType in interface ImageModeltype - the type of this imagepublic void setWidth(int width)
setWidth in interface ImageModelwidth - the width of this imagepublic Map<String,Function<Image,Object>> getAttributeGetterFunctions()
getAttributeGetterFunctions in interface BaseModel<Image>public Map<String,BiConsumer<Image,Object>> getAttributeSetterBiConsumers()
getAttributeSetterBiConsumers in interface BaseModel<Image>protected ImageWrapper wrap(Image image)
wrap in class BaseModelWrapper<Image>