public class PortalPreferencesWrapper extends BaseModelWrapper<PortalPreferences> implements ModelWrapper<PortalPreferences>, PortalPreferences
This class is a wrapper for PortalPreferences
.
PortalPreferences
,
Serialized Formmodel
PORTAL_PREFERENCES_ID_ACCESSOR
Constructor and Description |
---|
PortalPreferencesWrapper(PortalPreferences portalPreferences) |
Modifier and Type | Method and Description |
---|---|
PortalPreferences |
cloneWithOriginalValues() |
long |
getCompanyId()
Returns the company ID of this portal preferences.
|
java.util.Map<java.lang.String,java.lang.Object> |
getModelAttributes() |
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.
|
long |
getPrimaryKey()
Returns the primary key of this portal preferences.
|
void |
persist()
Updates this model instance in the database or adds it if it does not yet
exist.
|
void |
setCompanyId(long companyId)
Sets the company ID of this portal preferences.
|
void |
setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes) |
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this portal preferences.
|
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 |
setPrimaryKey(long primaryKey)
Sets the primary key of this portal preferences.
|
java.lang.String |
toXmlString() |
protected PortalPreferencesWrapper |
wrap(PortalPreferences portalPreferences) |
clone, compareTo, equals, getExpandoBridge, getModelClass, getModelClassName, getPrimaryKeyObj, getWrappedModel, hashCode, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toString, toUnescapedModel
finalize, getClass, notify, notifyAll, wait, wait, wait
getWrappedModel
clone, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel
getModelClass, getModelClassName
public PortalPreferencesWrapper(PortalPreferences portalPreferences)
public java.util.Map<java.lang.String,java.lang.Object> getModelAttributes()
getModelAttributes
in interface BaseModel<PortalPreferences>
public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes
in interface BaseModel<PortalPreferences>
public PortalPreferences cloneWithOriginalValues()
cloneWithOriginalValues
in interface BaseModel<PortalPreferences>
cloneWithOriginalValues
in interface PortalPreferencesModel
public long getCompanyId()
getCompanyId
in interface PortalPreferencesModel
getCompanyId
in interface ShardedModel
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 long getPrimaryKey()
getPrimaryKey
in interface PortalPreferencesModel
public void persist()
PersistedModel
persist
in interface PersistedModel
public void setCompanyId(long companyId)
setCompanyId
in interface PortalPreferencesModel
setCompanyId
in interface ShardedModel
companyId
- the company ID of this portal preferencespublic void setMvccVersion(long mvccVersion)
setMvccVersion
in interface MVCCModel
setMvccVersion
in interface PortalPreferencesModel
mvccVersion
- the mvcc version of this portal preferencespublic 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 setPrimaryKey(long primaryKey)
setPrimaryKey
in interface PortalPreferencesModel
primaryKey
- the primary key of this portal preferencespublic java.lang.String toXmlString()
toXmlString
in interface PortalPreferencesModel
protected PortalPreferencesWrapper wrap(PortalPreferences portalPreferences)
wrap
in class BaseModelWrapper<PortalPreferences>