public class CounterWrapper extends BaseModelWrapper<Counter> implements Counter, ModelWrapper<Counter>
This class is a wrapper for Counter.
Counter,
Serialized FormmodelNAME_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, toXmlStringclone, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel, toXmlStringgetModelClass, getModelClassNamegetWrappedModelpublic 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 CounterModelpublic String getName()
getName in interface CounterModelpublic String getPrimaryKey()
getPrimaryKey in interface CounterModelpublic void setCurrentId(long currentId)
setCurrentId in interface CounterModelcurrentId - the current ID of this counterpublic void setName(String name)
setName in interface CounterModelname - the name of this counterpublic void setPrimaryKey(String primaryKey)
setPrimaryKey in interface CounterModelprimaryKey - the primary key of this counterprotected CounterWrapper wrap(Counter counter)
wrap in class BaseModelWrapper<Counter>