@ProviderType public class ListTypeWrapper extends Object implements ListType, ModelWrapper<ListType>
This class is a wrapper for ListType
.
ListType
,
Serialized FormLIST_TYPE_ID_ACCESSOR
Constructor and Description |
---|
ListTypeWrapper(ListType listType) |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(ListType listType) |
boolean |
equals(Object obj) |
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance.
|
long |
getListTypeId()
Returns the list type ID of this list type.
|
Map<String,Object> |
getModelAttributes() |
Class<?> |
getModelClass() |
String |
getModelClassName() |
long |
getMvccVersion()
Returns the mvcc version of this list type.
|
String |
getName()
Returns the name of this list type.
|
long |
getPrimaryKey()
Returns the primary key of this list type.
|
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
String |
getType()
Returns the type of this list type.
|
ListType |
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 |
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(long listTypeId)
Sets the list type ID of this list type.
|
void |
setModelAttributes(Map<String,Object> attributes) |
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this list type.
|
void |
setName(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(long primaryKey)
Sets the primary key of this list type.
|
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
void |
setType(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 . |
String |
toString() |
ListType |
toUnescapedModel() |
String |
toXmlString()
Returns the XML representation of this model instance.
|
public ListTypeWrapper(ListType listType)
public Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<ListType>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<ListType>
public Object clone()
BaseModel
clone
in interface BaseModel<ListType>
clone
in interface ListTypeModel
clone
in class Object
public int compareTo(ListType listType)
compareTo
in interface ListTypeModel
compareTo
in interface Comparable<ListType>
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<ListType>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface ListTypeModel
public long getListTypeId()
getListTypeId
in interface ListTypeModel
public long getMvccVersion()
getMvccVersion
in interface ListTypeModel
getMvccVersion
in interface MVCCModel
public String getName()
getName
in interface ListTypeModel
public long getPrimaryKey()
getPrimaryKey
in interface ListTypeModel
public Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<ListType>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface ListTypeModel
public String getType()
getType
in interface ListTypeModel
public int hashCode()
hashCode
in interface ListTypeModel
hashCode
in class Object
public boolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.isCachedModel
in interface BaseModel<ListType>
isCachedModel
in interface ListTypeModel
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 BaseModel<ListType>
isEscapedModel
in interface ListTypeModel
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 BaseModel<ListType>
isNew
in interface ListTypeModel
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 BaseModel<ListType>
setCachedModel
in interface ListTypeModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes
in interface BaseModel<ListType>
setExpandoBridgeAttributes
in interface ListTypeModel
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes
in interface BaseModel<ListType>
setExpandoBridgeAttributes
in interface ListTypeModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<ListType>
setExpandoBridgeAttributes
in interface ListTypeModel
serviceContext
- the service context to be appliedServiceContext.getExpandoBridgeAttributes()
public void setListTypeId(long listTypeId)
setListTypeId
in interface ListTypeModel
listTypeId
- the list type ID of this list typepublic void setMvccVersion(long mvccVersion)
setMvccVersion
in interface ListTypeModel
setMvccVersion
in interface MVCCModel
mvccVersion
- the mvcc version of this list typepublic void setName(String name)
setName
in interface ListTypeModel
name
- the name of this list typepublic void setNew(boolean n)
BaseModel
setNew
in interface BaseModel<ListType>
setNew
in interface ListTypeModel
n
- whether this model instance does not yet exist in the databasepublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface ListTypeModel
primaryKey
- the primary key of this list typepublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<ListType>
setPrimaryKeyObj
in interface ClassedModel
setPrimaryKeyObj
in interface ListTypeModel
primaryKeyObj
- the primary key of this model instancepublic void setType(String type)
setType
in interface ListTypeModel
type
- the type of this list typepublic CacheModel<ListType> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<ListType>
toCacheModel
in interface ListTypeModel
public ListType toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.toEscapedModel
in interface BaseModel<ListType>
toEscapedModel
in interface ListTypeModel
AutoEscapeBeanHandler
public String toString()
toString
in interface ListTypeModel
toString
in class Object
public ListType toUnescapedModel()
toUnescapedModel
in interface BaseModel<ListType>
toUnescapedModel
in interface ListTypeModel
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<ListType>
toXmlString
in interface ListTypeModel
public boolean equals(Object obj)
equals
in class Object
public ListType getWrappedModel()
getWrappedModel
in interface ModelWrapper<ListType>
public boolean isEntityCacheEnabled()
BaseModel
true
if this model's entity cache is enabled.isEntityCacheEnabled
in interface BaseModel<ListType>
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<ListType>
true
if this model's finder cache is enabled;
false
otherwisepublic void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<ListType>