Package com.liferay.portal.kernel.model
Class ClassNameWrapper
Object
com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<ClassName>
com.liferay.portal.kernel.model.ClassNameWrapper
- All Implemented Interfaces:
BaseModel<ClassName>
,ClassedModel
,ClassName
,ClassNameModel
,ModelWrapper<ClassName>
,MVCCModel
,PersistedModel
,TypedModel
,Serializable
,Cloneable
,Comparable<ClassName>
public class ClassNameWrapper
extends BaseModelWrapper<ClassName>
implements ClassName, ModelWrapper<ClassName>
This class is a wrapper for ClassName
.
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Field Summary
Fields inherited from class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper
model
Fields inherited from interface com.liferay.portal.kernel.model.ClassName
CLASS_NAME_ID_ACCESSOR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the fully qualified class name of this class name.long
Returns the class name ID of this class name.long
Returns the mvcc version of this class name.long
Returns the primary key of this class name.getValue()
Returns the value of this class name.void
persist()
Updates this model instance in the database or adds it if it does not yet exist.void
setClassName
(String className) void
setClassNameId
(long classNameId) Sets the class name ID of this class name.void
setModelAttributes
(Map<String, Object> attributes) void
setMvccVersion
(long mvccVersion) Sets the mvcc version of this class name.void
setPrimaryKey
(long primaryKey) Sets the primary key of this class name.void
Sets the value of this class name.protected ClassNameWrapper
Methods inherited from class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper
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
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.liferay.portal.kernel.model.BaseModel
clone, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel
Methods inherited from interface com.liferay.portal.kernel.model.ClassedModel
getModelClass, getModelClassName
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.liferay.portal.kernel.model.ModelWrapper
getWrappedModel
-
Constructor Details
-
ClassNameWrapper
-
-
Method Details
-
getModelAttributes
- Specified by:
getModelAttributes
in interfaceBaseModel<ClassName>
-
setModelAttributes
- Specified by:
setModelAttributes
in interfaceBaseModel<ClassName>
-
cloneWithOriginalValues
- Specified by:
cloneWithOriginalValues
in interfaceBaseModel<ClassName>
- Specified by:
cloneWithOriginalValues
in interfaceClassNameModel
-
getClassName
Returns the fully qualified class name of this class name.- Specified by:
getClassName
in interfaceClassNameModel
- Specified by:
getClassName
in interfaceTypedModel
- Returns:
- the fully qualified class name of this class name
-
getClassNameId
public long getClassNameId()Returns the class name ID of this class name.- Specified by:
getClassNameId
in interfaceClassNameModel
- Specified by:
getClassNameId
in interfaceTypedModel
- Returns:
- the class name ID of this class name
-
getMvccVersion
public long getMvccVersion()Returns the mvcc version of this class name.- Specified by:
getMvccVersion
in interfaceClassNameModel
- Specified by:
getMvccVersion
in interfaceMVCCModel
- Returns:
- the mvcc version of this class name
-
getPrimaryKey
public long getPrimaryKey()Returns the primary key of this class name.- Specified by:
getPrimaryKey
in interfaceClassNameModel
- Returns:
- the primary key of this class name
-
getValue
Returns the value of this class name.- Specified by:
getValue
in interfaceClassNameModel
- Returns:
- the value of this class name
-
persist
public void persist()Description copied from interface:PersistedModel
Updates this model instance in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.- Specified by:
persist
in interfacePersistedModel
-
setClassName
- Specified by:
setClassName
in interfaceClassNameModel
-
setClassNameId
public void setClassNameId(long classNameId) Sets the class name ID of this class name.- Specified by:
setClassNameId
in interfaceClassNameModel
- Specified by:
setClassNameId
in interfaceTypedModel
- Parameters:
classNameId
- the class name ID of this class name
-
setMvccVersion
public void setMvccVersion(long mvccVersion) Sets the mvcc version of this class name.- Specified by:
setMvccVersion
in interfaceClassNameModel
- Specified by:
setMvccVersion
in interfaceMVCCModel
- Parameters:
mvccVersion
- the mvcc version of this class name
-
setPrimaryKey
public void setPrimaryKey(long primaryKey) Sets the primary key of this class name.- Specified by:
setPrimaryKey
in interfaceClassNameModel
- Parameters:
primaryKey
- the primary key of this class name
-
setValue
Sets the value of this class name.- Specified by:
setValue
in interfaceClassNameModel
- Parameters:
value
- the value of this class name
-
toXmlString
- Specified by:
toXmlString
in interfaceClassNameModel
-
wrap
- Specified by:
wrap
in classBaseModelWrapper<ClassName>
-