@ProviderType public class ExpandoTableWrapper extends 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 |
---|---|
Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(ExpandoTable expandoTable) |
boolean |
equals(Object obj) |
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.
|
Map<String,Object> |
getModelAttributes() |
Class<?> |
getModelClass() |
String |
getModelClassName() |
String |
getName()
Returns the name of this expando table.
|
long |
getPrimaryKey()
Returns the primary key of this expando table.
|
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(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(Map<String,Object> attributes) |
void |
setName(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(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 . |
String |
toString() |
ExpandoTable |
toUnescapedModel() |
String |
toXmlString()
Returns the XML representation of this model instance.
|
public ExpandoTableWrapper(ExpandoTable expandoTable)
public Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<ExpandoTable>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<ExpandoTable>
public Object clone()
BaseModel
clone
in interface ExpandoTableModel
clone
in interface BaseModel<ExpandoTable>
clone
in class Object
public int compareTo(ExpandoTable expandoTable)
compareTo
in interface ExpandoTableModel
compareTo
in interface Comparable<ExpandoTable>
public String getClassName()
getClassName
in interface ExpandoTableModel
getClassName
in interface TypedModel
public long getClassNameId()
getClassNameId
in interface ExpandoTableModel
getClassNameId
in interface TypedModel
public long getCompanyId()
getCompanyId
in interface ExpandoTableModel
getCompanyId
in interface ShardedModel
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface ExpandoTableModel
getExpandoBridge
in interface BaseModel<ExpandoTable>
getExpandoBridge
in interface ClassedModel
public String getName()
getName
in interface ExpandoTableModel
public long getPrimaryKey()
getPrimaryKey
in interface ExpandoTableModel
public Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface ExpandoTableModel
getPrimaryKeyObj
in interface BaseModel<ExpandoTable>
getPrimaryKeyObj
in interface ClassedModel
public long getTableId()
getTableId
in interface ExpandoTableModel
public int hashCode()
hashCode
in interface ExpandoTableModel
hashCode
in class Object
public boolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.isCachedModel
in interface ExpandoTableModel
isCachedModel
in interface BaseModel<ExpandoTable>
true
if this model instance was retrieved from the
entity cache; false
otherwiseBaseModel.setCachedModel(boolean)
public boolean isDefaultTable()
isDefaultTable
in interface ExpandoTable
public boolean isEscapedModel()
BaseModel
true
if this model instance is escaped.isEscapedModel
in interface ExpandoTableModel
isEscapedModel
in interface BaseModel<ExpandoTable>
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 ExpandoTableModel
isNew
in interface BaseModel<ExpandoTable>
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 ExpandoTableModel
setCachedModel
in interface BaseModel<ExpandoTable>
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public void setClassName(String className)
setClassName
in interface ExpandoTableModel
public void setClassNameId(long classNameId)
setClassNameId
in interface ExpandoTableModel
setClassNameId
in interface TypedModel
classNameId
- the class name ID of this expando tablepublic void setCompanyId(long companyId)
setCompanyId
in interface ExpandoTableModel
setCompanyId
in interface ShardedModel
companyId
- the company ID of this expando tablepublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes
in interface ExpandoTableModel
setExpandoBridgeAttributes
in interface BaseModel<ExpandoTable>
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes
in interface ExpandoTableModel
setExpandoBridgeAttributes
in interface BaseModel<ExpandoTable>
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface ExpandoTableModel
setExpandoBridgeAttributes
in interface BaseModel<ExpandoTable>
serviceContext
- the service context to be appliedServiceContext.getExpandoBridgeAttributes()
public void setName(String name)
setName
in interface ExpandoTableModel
name
- the name of this expando tablepublic void setNew(boolean n)
BaseModel
setNew
in interface ExpandoTableModel
setNew
in interface BaseModel<ExpandoTable>
n
- whether this model instance does not yet exist in the databasepublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface ExpandoTableModel
primaryKey
- the primary key of this expando tablepublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface ExpandoTableModel
setPrimaryKeyObj
in interface BaseModel<ExpandoTable>
setPrimaryKeyObj
in interface ClassedModel
primaryKeyObj
- the primary key of this model instancepublic void setTableId(long tableId)
setTableId
in interface ExpandoTableModel
tableId
- the table ID of this expando tablepublic CacheModel<ExpandoTable> toCacheModel()
BaseModel
toCacheModel
in interface ExpandoTableModel
toCacheModel
in interface BaseModel<ExpandoTable>
public ExpandoTable toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.toEscapedModel
in interface ExpandoTableModel
toEscapedModel
in interface BaseModel<ExpandoTable>
AutoEscapeBeanHandler
public String toString()
toString
in interface ExpandoTableModel
toString
in class Object
public ExpandoTable toUnescapedModel()
toUnescapedModel
in interface ExpandoTableModel
toUnescapedModel
in interface BaseModel<ExpandoTable>
public String toXmlString()
BaseModel
toXmlString
in interface ExpandoTableModel
toXmlString
in interface BaseModel<ExpandoTable>
public boolean equals(Object obj)
equals
in class Object
public ExpandoTable getWrappedModel()
getWrappedModel
in interface ModelWrapper<ExpandoTable>
public boolean isEntityCacheEnabled()
BaseModel
true
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()
BaseModel
true
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()
BaseModel
resetOriginalValues
in interface BaseModel<ExpandoTable>