@ProviderType public class ExpandoTableWrapper extends java.lang.Object implements ExpandoTable, ModelWrapper<ExpandoTable>
This class is a wrapper for ExpandoTable.
ExpandoTable,
Serialized FormTABLE_ID_ACCESSOR| Constructor and Description |
|---|
ExpandoTableWrapper(ExpandoTable expandoTable) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(ExpandoTable expandoTable) |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getClassName()
Returns the fully qualified class name of this expando table.
|
long |
getClassNameId()
Returns the class name ID of this expando table.
|
long |
getCompanyId()
Returns the company ID of this expando table.
|
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance.
|
java.util.Map<java.lang.String,java.lang.Object> |
getModelAttributes() |
java.lang.Class<?> |
getModelClass() |
java.lang.String |
getModelClassName() |
java.lang.String |
getName()
Returns the name of this expando table.
|
long |
getPrimaryKey()
Returns the primary key of this expando table.
|
java.io.Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
long |
getTableId()
Returns the table ID of this expando table.
|
ExpandoTable |
getWrappedModel() |
int |
hashCode() |
boolean |
isCachedModel()
Returns
true if this model instance was retrieved from the
entity cache. |
boolean |
isDefaultTable() |
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 |
setClassName(java.lang.String className) |
void |
setClassNameId(long classNameId)
Sets the class name ID of this expando table.
|
void |
setCompanyId(long companyId)
Sets the company ID of this expando table.
|
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(java.util.Map<java.lang.String,java.lang.Object> attributes) |
void |
setName(java.lang.String name)
Sets the name of this expando table.
|
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 table.
|
void |
setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
void |
setTableId(long tableId)
Sets the table ID of this expando table.
|
CacheModel<ExpandoTable> |
toCacheModel()
Returns a cache model object for this entity used by entity cache.
|
ExpandoTable |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it
with an
AutoEscapeBeanHandler. |
java.lang.String |
toString() |
ExpandoTable |
toUnescapedModel() |
java.lang.String |
toXmlString()
Returns the XML representation of this model instance.
|
public ExpandoTableWrapper(ExpandoTable expandoTable)
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<ExpandoTable>public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes in interface BaseModel<ExpandoTable>public java.lang.Object clone()
BaseModelclone in interface BaseModel<ExpandoTable>clone in interface ExpandoTableModelclone in class java.lang.Objectpublic int compareTo(ExpandoTable expandoTable)
compareTo in interface ExpandoTableModelcompareTo in interface java.lang.Comparable<ExpandoTable>public java.lang.String getClassName()
getClassName in interface TypedModelgetClassName in interface ExpandoTableModelpublic long getClassNameId()
getClassNameId in interface TypedModelgetClassNameId in interface ExpandoTableModelpublic long getCompanyId()
getCompanyId in interface ShardedModelgetCompanyId in interface ExpandoTableModelpublic ExpandoBridge getExpandoBridge()
BaseModelgetExpandoBridge in interface BaseModel<ExpandoTable>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface ExpandoTableModelpublic java.lang.String getName()
getName in interface ExpandoTableModelpublic long getPrimaryKey()
getPrimaryKey in interface ExpandoTableModelpublic java.io.Serializable getPrimaryKeyObj()
BaseModelgetPrimaryKeyObj in interface BaseModel<ExpandoTable>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface ExpandoTableModelpublic long getTableId()
getTableId in interface ExpandoTableModelpublic int hashCode()
hashCode in interface ExpandoTableModelhashCode in class java.lang.Objectpublic boolean isCachedModel()
BaseModeltrue if this model instance was retrieved from the
entity cache.isCachedModel in interface BaseModel<ExpandoTable>isCachedModel in interface ExpandoTableModeltrue if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public boolean isDefaultTable()
isDefaultTable in interface ExpandoTablepublic boolean isEscapedModel()
BaseModeltrue if this model instance is escaped.isEscapedModel in interface BaseModel<ExpandoTable>isEscapedModel in interface ExpandoTableModeltrue 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<ExpandoTable>isNew in interface ExpandoTableModeltrue 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<ExpandoTable>setCachedModel in interface ExpandoTableModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic void setClassName(java.lang.String className)
setClassName in interface ExpandoTableModelpublic void setClassNameId(long classNameId)
setClassNameId in interface TypedModelsetClassNameId in interface ExpandoTableModelclassNameId - the class name ID of this expando tablepublic void setCompanyId(long companyId)
setCompanyId in interface ShardedModelsetCompanyId in interface ExpandoTableModelcompanyId - the company ID of this expando tablepublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface BaseModel<ExpandoTable>setExpandoBridgeAttributes in interface ExpandoTableModelpublic void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface BaseModel<ExpandoTable>setExpandoBridgeAttributes in interface ExpandoTableModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModelsetExpandoBridgeAttributes in interface BaseModel<ExpandoTable>setExpandoBridgeAttributes in interface ExpandoTableModelserviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes()public void setName(java.lang.String name)
setName in interface ExpandoTableModelname - the name of this expando tablepublic void setNew(boolean n)
BaseModelsetNew in interface BaseModel<ExpandoTable>setNew in interface ExpandoTableModeln - whether this model instance does not yet exist in the databasepublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface ExpandoTableModelprimaryKey - the primary key of this expando tablepublic void setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
BaseModelsetPrimaryKeyObj in interface BaseModel<ExpandoTable>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface ExpandoTableModelprimaryKeyObj - the primary key of this model instancepublic void setTableId(long tableId)
setTableId in interface ExpandoTableModeltableId - the table ID of this expando tablepublic CacheModel<ExpandoTable> toCacheModel()
BaseModeltoCacheModel in interface BaseModel<ExpandoTable>toCacheModel in interface ExpandoTableModelpublic ExpandoTable toEscapedModel()
BaseModelAutoEscapeBeanHandler.toEscapedModel in interface BaseModel<ExpandoTable>toEscapedModel in interface ExpandoTableModelAutoEscapeBeanHandlerpublic java.lang.String toString()
toString in interface ExpandoTableModeltoString in class java.lang.Objectpublic ExpandoTable toUnescapedModel()
toUnescapedModel in interface BaseModel<ExpandoTable>toUnescapedModel in interface ExpandoTableModelpublic java.lang.String toXmlString()
BaseModeltoXmlString in interface BaseModel<ExpandoTable>toXmlString in interface ExpandoTableModelpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic ExpandoTable getWrappedModel()
getWrappedModel in interface ModelWrapper<ExpandoTable>public boolean isEntityCacheEnabled()
BaseModeltrue if this model's entity cache is enabled.isEntityCacheEnabled in interface BaseModel<ExpandoTable>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<ExpandoTable>true if this model's finder cache is enabled;
false otherwisepublic void resetOriginalValues()
BaseModelresetOriginalValues in interface BaseModel<ExpandoTable>