@ProviderType public class ListTypeWrapper extends java.lang.Object implements ListType, ModelWrapper<ListType>
This class is a wrapper for ListType.
ListType,
Serialized Form| Constructor and Description |
|---|
ListTypeWrapper(ListType listType) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(ListType listType) |
boolean |
equals(java.lang.Object obj) |
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance.
|
int |
getListTypeId()
Returns the list type ID of this list type.
|
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 list type.
|
int |
getPrimaryKey()
Returns the primary key of this list type.
|
java.io.Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
java.lang.String |
getType()
Returns the type of this list type.
|
ListType |
getWrappedListType()
Deprecated.
As of 6.1.0, replaced by
getWrappedModel() |
ListType |
getWrappedModel() |
int |
hashCode() |
boolean |
isCachedModel()
Returns
true if this model instance was retrieved from the
entity cache. |
boolean |
isEscapedModel()
Returns
true if this model instance is escaped. |
boolean |
isNew()
Returns
true if this model instance does not yet exist in
the database. |
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 |
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 |
setListTypeId(int listTypeId)
Sets the list type ID of this list type.
|
void |
setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes) |
void |
setName(java.lang.String name)
Sets the name of this list type.
|
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database.
|
void |
setPrimaryKey(int primaryKey)
Sets the primary key of this list type.
|
void |
setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
void |
setType(java.lang.String type)
Sets the type of this list type.
|
CacheModel<ListType> |
toCacheModel()
Returns a cache model object for this entity used by entity cache.
|
ListType |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it
with an
AutoEscapeBeanHandler. |
java.lang.String |
toString() |
ListType |
toUnescapedModel() |
java.lang.String |
toXmlString()
Returns the XML representation of this model instance.
|
public ListTypeWrapper(ListType listType)
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<ListType>public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes in interface BaseModel<ListType>public int getPrimaryKey()
getPrimaryKey in interface ListTypeModelpublic void setPrimaryKey(int primaryKey)
setPrimaryKey in interface ListTypeModelprimaryKey - the primary key of this list typepublic int getListTypeId()
getListTypeId in interface ListTypeModelpublic void setListTypeId(int listTypeId)
setListTypeId in interface ListTypeModellistTypeId - the list type ID of this list typepublic java.lang.String getName()
getName in interface ListTypeModelpublic void setName(java.lang.String name)
setName in interface ListTypeModelname - the name of this list typepublic java.lang.String getType()
getType in interface ListTypeModelpublic void setType(java.lang.String type)
setType in interface ListTypeModeltype - the type of this list typepublic boolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.isNew in interface BaseModel<ListType>isNew in interface ListTypeModeltrue if this model instance does not yet exist in
the database; false otherwisepublic void setNew(boolean n)
BaseModelsetNew in interface BaseModel<ListType>setNew in interface ListTypeModeln - whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModeltrue if this model instance was retrieved from the
entity cache.isCachedModel in interface BaseModel<ListType>isCachedModel in interface ListTypeModeltrue if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public void setCachedModel(boolean cachedModel)
BaseModelsetCachedModel in interface BaseModel<ListType>setCachedModel in interface ListTypeModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic boolean isEscapedModel()
BaseModeltrue if this model instance is escaped.isEscapedModel in interface BaseModel<ListType>isEscapedModel in interface ListTypeModeltrue if this model instance is escaped;
false otherwisepublic java.io.Serializable getPrimaryKeyObj()
BaseModelgetPrimaryKeyObj in interface BaseModel<ListType>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface ListTypeModelpublic void setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
BaseModelsetPrimaryKeyObj in interface BaseModel<ListType>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface ListTypeModelprimaryKeyObj - the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModelgetExpandoBridge in interface BaseModel<ListType>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface ListTypeModelpublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface BaseModel<ListType>setExpandoBridgeAttributes in interface ListTypeModelpublic void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface BaseModel<ListType>setExpandoBridgeAttributes in interface ListTypeModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModelsetExpandoBridgeAttributes in interface BaseModel<ListType>setExpandoBridgeAttributes in interface ListTypeModelserviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes(
)public java.lang.Object clone()
BaseModelclone in interface BaseModel<ListType>clone in interface ListTypeModelclone in class java.lang.Objectpublic int compareTo(ListType listType)
compareTo in interface ListTypeModelcompareTo in interface java.lang.Comparable<ListType>public int hashCode()
hashCode in interface ListTypeModelhashCode in class java.lang.Objectpublic CacheModel<ListType> toCacheModel()
BaseModeltoCacheModel in interface BaseModel<ListType>toCacheModel in interface ListTypeModelpublic ListType toEscapedModel()
BaseModelAutoEscapeBeanHandler.toEscapedModel in interface BaseModel<ListType>toEscapedModel in interface ListTypeModelAutoEscapeBeanHandlerpublic ListType toUnescapedModel()
toUnescapedModel in interface BaseModel<ListType>toUnescapedModel in interface ListTypeModelpublic java.lang.String toString()
toString in interface ListTypeModeltoString in class java.lang.Objectpublic java.lang.String toXmlString()
BaseModeltoXmlString in interface BaseModel<ListType>toXmlString in interface ListTypeModelpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic ListType getWrappedListType()
getWrappedModel()public ListType getWrappedModel()
getWrappedModel in interface ModelWrapper<ListType>public void resetOriginalValues()
BaseModelresetOriginalValues in interface BaseModel<ListType>