@ProviderType public class PortalPreferencesWrapper extends Object implements PortalPreferences, ModelWrapper<PortalPreferences>
This class is a wrapper for PortalPreferences
.
PortalPreferences
,
Serialized FormPORTAL_PREFERENCES_ID_ACCESSOR
Constructor and Description |
---|
PortalPreferencesWrapper(PortalPreferences portalPreferences) |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(PortalPreferences portalPreferences) |
boolean |
equals(Object obj) |
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance.
|
Map<String,Object> |
getModelAttributes() |
Class<?> |
getModelClass() |
String |
getModelClassName() |
long |
getMvccVersion()
Returns the mvcc version of this portal preferences.
|
long |
getOwnerId()
Returns the owner ID of this portal preferences.
|
int |
getOwnerType()
Returns the owner type of this portal preferences.
|
long |
getPortalPreferencesId()
Returns the portal preferences ID of this portal preferences.
|
String |
getPreferences()
Returns the preferences of this portal preferences.
|
long |
getPrimaryKey()
Returns the primary key of this portal preferences.
|
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
PortalPreferences |
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 |
setModelAttributes(Map<String,Object> attributes) |
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this portal preferences.
|
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database.
|
void |
setOwnerId(long ownerId)
Sets the owner ID of this portal preferences.
|
void |
setOwnerType(int ownerType)
Sets the owner type of this portal preferences.
|
void |
setPortalPreferencesId(long portalPreferencesId)
Sets the portal preferences ID of this portal preferences.
|
void |
setPreferences(String preferences)
Sets the preferences of this portal preferences.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this portal preferences.
|
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
CacheModel<PortalPreferences> |
toCacheModel()
Returns a cache model object for this entity used by entity cache.
|
PortalPreferences |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it
with an
AutoEscapeBeanHandler . |
String |
toString() |
PortalPreferences |
toUnescapedModel() |
String |
toXmlString()
Returns the XML representation of this model instance.
|
public PortalPreferencesWrapper(PortalPreferences portalPreferences)
public Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<PortalPreferences>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<PortalPreferences>
public Object clone()
BaseModel
clone
in interface BaseModel<PortalPreferences>
clone
in interface PortalPreferencesModel
clone
in class Object
public int compareTo(PortalPreferences portalPreferences)
compareTo
in interface PortalPreferencesModel
compareTo
in interface Comparable<PortalPreferences>
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<PortalPreferences>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface PortalPreferencesModel
public long getMvccVersion()
getMvccVersion
in interface MVCCModel
getMvccVersion
in interface PortalPreferencesModel
public long getOwnerId()
getOwnerId
in interface PortalPreferencesModel
public int getOwnerType()
getOwnerType
in interface PortalPreferencesModel
public long getPortalPreferencesId()
getPortalPreferencesId
in interface PortalPreferencesModel
public String getPreferences()
getPreferences
in interface PortalPreferencesModel
public long getPrimaryKey()
getPrimaryKey
in interface PortalPreferencesModel
public Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<PortalPreferences>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface PortalPreferencesModel
public int hashCode()
hashCode
in interface PortalPreferencesModel
hashCode
in class Object
public boolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.isCachedModel
in interface BaseModel<PortalPreferences>
isCachedModel
in interface PortalPreferencesModel
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<PortalPreferences>
isEscapedModel
in interface PortalPreferencesModel
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<PortalPreferences>
isNew
in interface PortalPreferencesModel
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<PortalPreferences>
setCachedModel
in interface PortalPreferencesModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes
in interface BaseModel<PortalPreferences>
setExpandoBridgeAttributes
in interface PortalPreferencesModel
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes
in interface BaseModel<PortalPreferences>
setExpandoBridgeAttributes
in interface PortalPreferencesModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<PortalPreferences>
setExpandoBridgeAttributes
in interface PortalPreferencesModel
serviceContext
- the service context to be appliedServiceContext.getExpandoBridgeAttributes()
public void setMvccVersion(long mvccVersion)
setMvccVersion
in interface MVCCModel
setMvccVersion
in interface PortalPreferencesModel
mvccVersion
- the mvcc version of this portal preferencespublic void setNew(boolean n)
BaseModel
setNew
in interface BaseModel<PortalPreferences>
setNew
in interface PortalPreferencesModel
n
- whether this model instance does not yet exist in the databasepublic void setOwnerId(long ownerId)
setOwnerId
in interface PortalPreferencesModel
ownerId
- the owner ID of this portal preferencespublic void setOwnerType(int ownerType)
setOwnerType
in interface PortalPreferencesModel
ownerType
- the owner type of this portal preferencespublic void setPortalPreferencesId(long portalPreferencesId)
setPortalPreferencesId
in interface PortalPreferencesModel
portalPreferencesId
- the portal preferences ID of this portal preferencespublic void setPreferences(String preferences)
setPreferences
in interface PortalPreferencesModel
preferences
- the preferences of this portal preferencespublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface PortalPreferencesModel
primaryKey
- the primary key of this portal preferencespublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<PortalPreferences>
setPrimaryKeyObj
in interface ClassedModel
setPrimaryKeyObj
in interface PortalPreferencesModel
primaryKeyObj
- the primary key of this model instancepublic CacheModel<PortalPreferences> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<PortalPreferences>
toCacheModel
in interface PortalPreferencesModel
public PortalPreferences toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.toEscapedModel
in interface BaseModel<PortalPreferences>
toEscapedModel
in interface PortalPreferencesModel
AutoEscapeBeanHandler
public String toString()
toString
in interface PortalPreferencesModel
toString
in class Object
public PortalPreferences toUnescapedModel()
toUnescapedModel
in interface BaseModel<PortalPreferences>
toUnescapedModel
in interface PortalPreferencesModel
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<PortalPreferences>
toXmlString
in interface PortalPreferencesModel
public boolean equals(Object obj)
equals
in class Object
public PortalPreferences getWrappedModel()
getWrappedModel
in interface ModelWrapper<PortalPreferences>
public boolean isEntityCacheEnabled()
BaseModel
true
if this model's entity cache is enabled.isEntityCacheEnabled
in interface BaseModel<PortalPreferences>
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<PortalPreferences>
true
if this model's finder cache is enabled;
false
otherwisepublic void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<PortalPreferences>