@ProviderType public class ExpandoRowWrapper extends Object implements ExpandoRow, ModelWrapper<ExpandoRow>
This class is a wrapper for ExpandoRow
.
ExpandoRow
,
Serialized FormROW_ID_ACCESSOR
Constructor and Description |
---|
ExpandoRowWrapper(ExpandoRow expandoRow) |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(ExpandoRow expandoRow) |
boolean |
equals(Object obj) |
long |
getClassPK()
Returns the class pk of this expando row.
|
long |
getCompanyId()
Returns the company ID of this expando row.
|
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance.
|
Map<String,Object> |
getModelAttributes() |
Class<?> |
getModelClass() |
String |
getModelClassName() |
Date |
getModifiedDate()
Returns the modified date of this expando row.
|
long |
getPrimaryKey()
Returns the primary key of this expando row.
|
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
long |
getRowId()
Returns the row ID of this expando row.
|
long |
getTableId()
Returns the table ID of this expando row.
|
ExpandoRow |
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 |
setClassPK(long classPK)
Sets the class pk of this expando row.
|
void |
setCompanyId(long companyId)
Sets the company ID of this expando row.
|
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 |
setModelAttributes(Map<String,Object> attributes) |
void |
setModifiedDate(Date modifiedDate)
Sets the modified date of this expando row.
|
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 expando row.
|
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
void |
setRowId(long rowId)
Sets the row ID of this expando row.
|
void |
setTableId(long tableId)
Sets the table ID of this expando row.
|
CacheModel<ExpandoRow> |
toCacheModel()
Returns a cache model object for this entity used by entity cache.
|
ExpandoRow |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it
with an
AutoEscapeBeanHandler . |
String |
toString() |
ExpandoRow |
toUnescapedModel() |
String |
toXmlString()
Returns the XML representation of this model instance.
|
public ExpandoRowWrapper(ExpandoRow expandoRow)
public Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<ExpandoRow>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<ExpandoRow>
public Object clone()
BaseModel
clone
in interface ExpandoRowModel
clone
in interface BaseModel<ExpandoRow>
clone
in class Object
public int compareTo(ExpandoRow expandoRow)
compareTo
in interface ExpandoRowModel
compareTo
in interface Comparable<ExpandoRow>
public long getClassPK()
getClassPK
in interface ExpandoRowModel
public long getCompanyId()
getCompanyId
in interface ExpandoRowModel
getCompanyId
in interface ShardedModel
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface ExpandoRowModel
getExpandoBridge
in interface BaseModel<ExpandoRow>
getExpandoBridge
in interface ClassedModel
public Date getModifiedDate()
getModifiedDate
in interface ExpandoRowModel
public long getPrimaryKey()
getPrimaryKey
in interface ExpandoRowModel
public Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface ExpandoRowModel
getPrimaryKeyObj
in interface BaseModel<ExpandoRow>
getPrimaryKeyObj
in interface ClassedModel
public long getRowId()
getRowId
in interface ExpandoRowModel
public long getTableId()
getTableId
in interface ExpandoRowModel
public int hashCode()
hashCode
in interface ExpandoRowModel
hashCode
in class Object
public boolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.isCachedModel
in interface ExpandoRowModel
isCachedModel
in interface BaseModel<ExpandoRow>
true
if this model instance was retrieved from the
entity cache; false
otherwiseBaseModel.setCachedModel(boolean)
public boolean isEscapedModel()
BaseModel
true
if this model instance is escaped.isEscapedModel
in interface ExpandoRowModel
isEscapedModel
in interface BaseModel<ExpandoRow>
true
if this model instance is escaped;
false
otherwisepublic boolean isNew()
BaseModel
true
if this model instance does not yet exist in
the database.isNew
in interface ExpandoRowModel
isNew
in interface BaseModel<ExpandoRow>
true
if this model instance does not yet exist in
the database; false
otherwisepublic void persist()
PersistedModel
persist
in interface PersistedModel
public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel
in interface ExpandoRowModel
setCachedModel
in interface BaseModel<ExpandoRow>
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public void setClassPK(long classPK)
setClassPK
in interface ExpandoRowModel
classPK
- the class pk of this expando rowpublic void setCompanyId(long companyId)
setCompanyId
in interface ExpandoRowModel
setCompanyId
in interface ShardedModel
companyId
- the company ID of this expando rowpublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes
in interface ExpandoRowModel
setExpandoBridgeAttributes
in interface BaseModel<ExpandoRow>
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes
in interface ExpandoRowModel
setExpandoBridgeAttributes
in interface BaseModel<ExpandoRow>
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface ExpandoRowModel
setExpandoBridgeAttributes
in interface BaseModel<ExpandoRow>
serviceContext
- the service context to be appliedServiceContext.getExpandoBridgeAttributes()
public void setModifiedDate(Date modifiedDate)
setModifiedDate
in interface ExpandoRowModel
modifiedDate
- the modified date of this expando rowpublic void setNew(boolean n)
BaseModel
setNew
in interface ExpandoRowModel
setNew
in interface BaseModel<ExpandoRow>
n
- whether this model instance does not yet exist in the databasepublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface ExpandoRowModel
primaryKey
- the primary key of this expando rowpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface ExpandoRowModel
setPrimaryKeyObj
in interface BaseModel<ExpandoRow>
setPrimaryKeyObj
in interface ClassedModel
primaryKeyObj
- the primary key of this model instancepublic void setRowId(long rowId)
setRowId
in interface ExpandoRowModel
rowId
- the row ID of this expando rowpublic void setTableId(long tableId)
setTableId
in interface ExpandoRowModel
tableId
- the table ID of this expando rowpublic CacheModel<ExpandoRow> toCacheModel()
BaseModel
toCacheModel
in interface ExpandoRowModel
toCacheModel
in interface BaseModel<ExpandoRow>
public ExpandoRow toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.toEscapedModel
in interface ExpandoRowModel
toEscapedModel
in interface BaseModel<ExpandoRow>
AutoEscapeBeanHandler
public String toString()
toString
in interface ExpandoRowModel
toString
in class Object
public ExpandoRow toUnescapedModel()
toUnescapedModel
in interface ExpandoRowModel
toUnescapedModel
in interface BaseModel<ExpandoRow>
public String toXmlString()
BaseModel
toXmlString
in interface ExpandoRowModel
toXmlString
in interface BaseModel<ExpandoRow>
public boolean equals(Object obj)
equals
in class Object
public ExpandoRow getWrappedModel()
getWrappedModel
in interface ModelWrapper<ExpandoRow>
public boolean isEntityCacheEnabled()
BaseModel
true
if this model's entity cache is enabled.isEntityCacheEnabled
in interface BaseModel<ExpandoRow>
true
if this model's entity cache is enabled;
false
otherwisepublic boolean isFinderCacheEnabled()
BaseModel
true
if this model's finder cache is enabled.isFinderCacheEnabled
in interface BaseModel<ExpandoRow>
true
if this model's finder cache is enabled;
false
otherwisepublic void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<ExpandoRow>