Package com.liferay.counter.kernel.model
Class CounterWrapper
Object
com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<Counter>
com.liferay.counter.kernel.model.CounterWrapper
- All Implemented Interfaces:
Counter
,CounterModel
,BaseModel<Counter>
,ClassedModel
,ModelWrapper<Counter>
,Serializable
,Cloneable
,Comparable<Counter>
public class CounterWrapper
extends BaseModelWrapper<Counter>
implements Counter, ModelWrapper<Counter>
This class is a wrapper for Counter
.
- 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.counter.kernel.model.Counter
NAME_ACCESSOR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the current ID of this counter.getName()
Returns the name of this counter.Returns the primary key of this counter.void
setCurrentId
(long currentId) Sets the current ID of this counter.void
setModelAttributes
(Map<String, Object> attributes) void
Sets the name of this counter.void
setPrimaryKey
(String primaryKey) Sets the primary key of this counter.protected CounterWrapper
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
-
CounterWrapper
-
-
Method Details
-
getModelAttributes
- Specified by:
getModelAttributes
in interfaceBaseModel<Counter>
-
setModelAttributes
- Specified by:
setModelAttributes
in interfaceBaseModel<Counter>
-
cloneWithOriginalValues
- Specified by:
cloneWithOriginalValues
in interfaceBaseModel<Counter>
- Specified by:
cloneWithOriginalValues
in interfaceCounterModel
-
getCurrentId
public long getCurrentId()Returns the current ID of this counter.- Specified by:
getCurrentId
in interfaceCounterModel
- Returns:
- the current ID of this counter
-
getName
Returns the name of this counter.- Specified by:
getName
in interfaceCounterModel
- Returns:
- the name of this counter
-
getPrimaryKey
Returns the primary key of this counter.- Specified by:
getPrimaryKey
in interfaceCounterModel
- Returns:
- the primary key of this counter
-
setCurrentId
public void setCurrentId(long currentId) Sets the current ID of this counter.- Specified by:
setCurrentId
in interfaceCounterModel
- Parameters:
currentId
- the current ID of this counter
-
setName
Sets the name of this counter.- Specified by:
setName
in interfaceCounterModel
- Parameters:
name
- the name of this counter
-
setPrimaryKey
Sets the primary key of this counter.- Specified by:
setPrimaryKey
in interfaceCounterModel
- Parameters:
primaryKey
- the primary key of this counter
-
toXmlString
- Specified by:
toXmlString
in interfaceCounterModel
-
wrap
- Specified by:
wrap
in classBaseModelWrapper<Counter>
-