public class CounterWrapper extends BaseModelWrapper<Counter> implements Counter, ModelWrapper<Counter>
This class is a wrapper for Counter
.
Counter
,
Serialized Formmodel
NAME_ACCESSOR
Constructor and Description |
---|
CounterWrapper(Counter counter) |
Modifier and Type | Method and Description |
---|---|
Counter |
cloneWithOriginalValues() |
long |
getCurrentId()
Returns the current ID of this counter.
|
Map<String,Object> |
getModelAttributes() |
String |
getName()
Returns the name of this counter.
|
String |
getPrimaryKey()
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 |
setName(String name)
Sets the name of this counter.
|
void |
setPrimaryKey(String primaryKey)
Sets the primary key of this counter.
|
String |
toXmlString() |
protected CounterWrapper |
wrap(Counter counter) |
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
clone, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel
getModelClass, getModelClassName
getWrappedModel
public CounterWrapper(Counter counter)
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<Counter>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<Counter>
public Counter cloneWithOriginalValues()
cloneWithOriginalValues
in interface CounterModel
cloneWithOriginalValues
in interface BaseModel<Counter>
public long getCurrentId()
getCurrentId
in interface CounterModel
public String getName()
getName
in interface CounterModel
public String getPrimaryKey()
getPrimaryKey
in interface CounterModel
public void setCurrentId(long currentId)
setCurrentId
in interface CounterModel
currentId
- the current ID of this counterpublic void setName(String name)
setName
in interface CounterModel
name
- the name of this counterpublic void setPrimaryKey(String primaryKey)
setPrimaryKey
in interface CounterModel
primaryKey
- the primary key of this counterpublic String toXmlString()
toXmlString
in interface CounterModel
protected CounterWrapper wrap(Counter counter)
wrap
in class BaseModelWrapper<Counter>