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 |
---|---|
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.
|
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, toXmlString
clone, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel, toXmlString
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 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 counterprotected CounterWrapper wrap(Counter counter)
wrap
in class BaseModelWrapper<Counter>