@ProviderType public class CounterWrapper extends java.lang.Object implements Counter, ModelWrapper<Counter>
This class is a wrapper for Counter.
Counter,
Serialized FormNAME_ACCESSOR| Constructor and Description |
|---|
CounterWrapper(Counter counter) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(Counter counter) |
boolean |
equals(java.lang.Object obj) |
long |
getCurrentId()
Returns the current ID of this counter.
|
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance.
|
java.util.Map<java.lang.String,java.lang.Object> |
getModelAttributes() |
java.lang.Class<?> |
getModelClass() |
java.lang.String |
getModelClassName() |
java.lang.String |
getName()
Returns the name of this counter.
|
java.lang.String |
getPrimaryKey()
Returns the primary key of this counter.
|
java.io.Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
Counter |
getWrappedCounter()
Deprecated.
As of 6.1.0, replaced by
getWrappedModel() |
Counter |
getWrappedModel() |
int |
hashCode() |
boolean |
isCachedModel()
Returns
true if this model instance was retrieved from the
entity cache. |
boolean |
isEntityCacheEnabled()
Returns
true if this model's entity cache is enabled. |
boolean |
isEscapedModel()
Returns
true if this model instance is escaped. |
boolean |
isFinderCacheEnabled()
Returns
true if this model's finder cache is enabled. |
boolean |
isNew()
Returns
true if this model instance does not yet exist in
the database. |
void |
persist()
Updates this model instance in the database or adds it if it does not yet
exist.
|
void |
resetOriginalValues()
Reset all original fields to current values.
|
void |
setCachedModel(boolean cachedModel)
Sets whether this model instance was retrieved from the entity cache.
|
void |
setCurrentId(long currentId)
Sets the current ID of this counter.
|
void |
setExpandoBridgeAttributes(BaseModel<?> baseModel) |
void |
setExpandoBridgeAttributes(ExpandoBridge expandoBridge) |
void |
setExpandoBridgeAttributes(ServiceContext serviceContext)
Sets the expando bridge attributes for this model instance to the
attributes stored in the service context.
|
void |
setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes) |
void |
setName(java.lang.String name)
Sets the name of this counter.
|
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database.
|
void |
setPrimaryKey(java.lang.String primaryKey)
Sets the primary key of this counter.
|
void |
setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
CacheModel<Counter> |
toCacheModel()
Returns a cache model object for this entity used by entity cache.
|
Counter |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it
with an
AutoEscapeBeanHandler. |
java.lang.String |
toString() |
Counter |
toUnescapedModel() |
java.lang.String |
toXmlString()
Returns the XML representation of this model instance.
|
public CounterWrapper(Counter counter)
public java.lang.Class<?> getModelClass()
getModelClass in interface ClassedModelpublic java.lang.String getModelClassName()
getModelClassName in interface ClassedModelpublic java.util.Map<java.lang.String,java.lang.Object> getModelAttributes()
getModelAttributes in interface BaseModel<Counter>public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes in interface BaseModel<Counter>public java.lang.Object clone()
BaseModelclone in interface CounterModelclone in interface BaseModel<Counter>clone in class java.lang.Objectpublic int compareTo(Counter counter)
compareTo in interface CounterModelcompareTo in interface java.lang.Comparable<Counter>public long getCurrentId()
getCurrentId in interface CounterModelpublic ExpandoBridge getExpandoBridge()
BaseModelgetExpandoBridge in interface CounterModelgetExpandoBridge in interface BaseModel<Counter>getExpandoBridge in interface ClassedModelpublic java.lang.String getName()
getName in interface CounterModelpublic java.lang.String getPrimaryKey()
getPrimaryKey in interface CounterModelpublic java.io.Serializable getPrimaryKeyObj()
BaseModelgetPrimaryKeyObj in interface CounterModelgetPrimaryKeyObj in interface BaseModel<Counter>getPrimaryKeyObj in interface ClassedModelpublic int hashCode()
hashCode in interface CounterModelhashCode in class java.lang.Objectpublic boolean isCachedModel()
BaseModeltrue if this model instance was retrieved from the
entity cache.isCachedModel in interface CounterModelisCachedModel in interface BaseModel<Counter>true if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public boolean isEscapedModel()
BaseModeltrue if this model instance is escaped.isEscapedModel in interface CounterModelisEscapedModel in interface BaseModel<Counter>true if this model instance is escaped;
false otherwisepublic boolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.isNew in interface CounterModelisNew in interface BaseModel<Counter>true if this model instance does not yet exist in
the database; false otherwisepublic void persist()
PersistedModelpersist in interface PersistedModelpublic void setCachedModel(boolean cachedModel)
BaseModelsetCachedModel in interface CounterModelsetCachedModel in interface BaseModel<Counter>cachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic void setCurrentId(long currentId)
setCurrentId in interface CounterModelcurrentId - the current ID of this counterpublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface CounterModelsetExpandoBridgeAttributes in interface BaseModel<Counter>public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface CounterModelsetExpandoBridgeAttributes in interface BaseModel<Counter>public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModelsetExpandoBridgeAttributes in interface CounterModelsetExpandoBridgeAttributes in interface BaseModel<Counter>serviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes(
)public void setName(java.lang.String name)
setName in interface CounterModelname - the name of this counterpublic void setNew(boolean n)
BaseModelsetNew in interface CounterModelsetNew in interface BaseModel<Counter>n - whether this model instance does not yet exist in the databasepublic void setPrimaryKey(java.lang.String primaryKey)
setPrimaryKey in interface CounterModelprimaryKey - the primary key of this counterpublic void setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
BaseModelsetPrimaryKeyObj in interface CounterModelsetPrimaryKeyObj in interface BaseModel<Counter>setPrimaryKeyObj in interface ClassedModelprimaryKeyObj - the primary key of this model instancepublic CacheModel<Counter> toCacheModel()
BaseModeltoCacheModel in interface CounterModeltoCacheModel in interface BaseModel<Counter>public Counter toEscapedModel()
BaseModelAutoEscapeBeanHandler.toEscapedModel in interface CounterModeltoEscapedModel in interface BaseModel<Counter>AutoEscapeBeanHandlerpublic java.lang.String toString()
toString in interface CounterModeltoString in class java.lang.Objectpublic Counter toUnescapedModel()
toUnescapedModel in interface CounterModeltoUnescapedModel in interface BaseModel<Counter>public java.lang.String toXmlString()
BaseModeltoXmlString in interface CounterModeltoXmlString in interface BaseModel<Counter>public boolean equals(java.lang.Object obj)
equals in class java.lang.Object@Deprecated public Counter getWrappedCounter()
getWrappedModel()public Counter getWrappedModel()
getWrappedModel in interface ModelWrapper<Counter>public boolean isEntityCacheEnabled()
BaseModeltrue if this model's entity cache is enabled.isEntityCacheEnabled in interface BaseModel<Counter>true if this model's entity cache is enabled;
false otherwisepublic boolean isFinderCacheEnabled()
BaseModeltrue if this model's finder cache is enabled.isFinderCacheEnabled in interface BaseModel<Counter>true if this model's finder cache is enabled;
false otherwisepublic void resetOriginalValues()
BaseModelresetOriginalValues in interface BaseModel<Counter>