public class ImageWrapper extends BaseModelWrapper<Image> implements Image, ModelWrapper<Image>
This class is a wrapper for Image
.
Image
,
Serialized Formmodel
IMAGE_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.
|
String |
toXmlString() |
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
clone, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel
getModelClass, getModelClassName
getWrappedModel
public 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 ImageModel
public long getCompanyId()
getCompanyId
in interface ImageModel
getCompanyId
in interface ShardedModel
public long getCtCollectionId()
getCtCollectionId
in interface CTModel<Image>
getCtCollectionId
in interface ImageModel
public int getHeight()
getHeight
in interface ImageModel
public long getImageId()
getImageId
in interface ImageModel
public Date getModifiedDate()
getModifiedDate
in interface ImageModel
public long getMvccVersion()
getMvccVersion
in interface ImageModel
getMvccVersion
in interface MVCCModel
public long getPrimaryKey()
getPrimaryKey
in interface CTModel<Image>
getPrimaryKey
in interface ImageModel
public int getSize()
getSize
in interface ImageModel
public byte[] getTextObj()
getTextObj
in interface Image
public String getType()
getType
in interface ImageModel
public int getWidth()
getWidth
in interface ImageModel
public void persist()
PersistedModel
persist
in interface PersistedModel
public void setCompanyId(long companyId)
setCompanyId
in interface ImageModel
setCompanyId
in interface ShardedModel
companyId
- the company ID of this imagepublic void setCtCollectionId(long ctCollectionId)
setCtCollectionId
in interface CTModel<Image>
setCtCollectionId
in interface ImageModel
ctCollectionId
- the ct collection ID of this imagepublic void setHeight(int height)
setHeight
in interface ImageModel
height
- the height of this imagepublic void setImageId(long imageId)
setImageId
in interface ImageModel
imageId
- the image ID of this imagepublic void setModifiedDate(Date modifiedDate)
setModifiedDate
in interface ImageModel
modifiedDate
- the modified date of this imagepublic void setMvccVersion(long mvccVersion)
setMvccVersion
in interface ImageModel
setMvccVersion
in interface MVCCModel
mvccVersion
- the mvcc version of this imagepublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface CTModel<Image>
setPrimaryKey
in interface ImageModel
primaryKey
- the primary key of this imagepublic void setSize(int size)
setSize
in interface ImageModel
size
- the size of this imagepublic void setTextObj(byte[] textObj)
setTextObj
in interface Image
public void setType(String type)
setType
in interface ImageModel
type
- the type of this imagepublic void setWidth(int width)
setWidth
in interface ImageModel
width
- the width of this imagepublic String toXmlString()
toXmlString
in interface ImageModel
public 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>