|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.counter.model.CounterWrapper
@ProviderType public class CounterWrapper
This class is a wrapper for Counter
.
Counter
,
Serialized FormConstructor Summary | |
---|---|
CounterWrapper(Counter counter)
|
Method Summary | |
---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(Counter counter)
|
boolean |
equals(Object obj)
|
long |
getCurrentId()
Returns the current ID of this counter. |
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance. |
Map<String,Object> |
getModelAttributes()
|
Class<?> |
getModelClass()
|
String |
getModelClassName()
|
String |
getName()
Returns the name of this counter. |
String |
getPrimaryKey()
Returns the primary key of this counter. |
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 |
isEscapedModel()
Returns true if this model instance is escaped. |
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(Map<String,Object> attributes)
|
void |
setName(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(String primaryKey)
Sets the primary key of this counter. |
void |
setPrimaryKeyObj(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 . |
String |
toString()
|
Counter |
toUnescapedModel()
|
String |
toXmlString()
Returns the XML representation of this model instance. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CounterWrapper(Counter counter)
Method Detail |
---|
public Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<Counter>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<Counter>
public String getPrimaryKey()
getPrimaryKey
in interface CounterModel
public void setPrimaryKey(String primaryKey)
setPrimaryKey
in interface CounterModel
primaryKey
- the primary key of this counterpublic String getName()
getName
in interface CounterModel
public void setName(String name)
setName
in interface CounterModel
name
- the name of this counterpublic long getCurrentId()
getCurrentId
in interface CounterModel
public void setCurrentId(long currentId)
setCurrentId
in interface CounterModel
currentId
- the current ID of this counterpublic boolean isNew()
BaseModel
true
if this model instance does not yet exist in
the database.
isNew
in interface CounterModel
isNew
in interface BaseModel<Counter>
true
if this model instance does not yet exist in
the database; false
otherwisepublic void setNew(boolean n)
BaseModel
setNew
in interface CounterModel
setNew
in interface BaseModel<Counter>
n
- whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.
isCachedModel
in interface CounterModel
isCachedModel
in interface BaseModel<Counter>
true
if this model instance was retrieved from the
entity cache; false
otherwiseBaseModel.setCachedModel(boolean)
public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel
in interface CounterModel
setCachedModel
in interface BaseModel<Counter>
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public boolean isEscapedModel()
BaseModel
true
if this model instance is escaped.
isEscapedModel
in interface CounterModel
isEscapedModel
in interface BaseModel<Counter>
true
if this model instance is escaped;
false
otherwisepublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface CounterModel
getPrimaryKeyObj
in interface BaseModel<Counter>
getPrimaryKeyObj
in interface ClassedModel
public void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface CounterModel
setPrimaryKeyObj
in interface BaseModel<Counter>
setPrimaryKeyObj
in interface ClassedModel
primaryKeyObj
- the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface CounterModel
getExpandoBridge
in interface BaseModel<Counter>
getExpandoBridge
in interface ClassedModel
public void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes
in interface CounterModel
setExpandoBridgeAttributes
in interface BaseModel<Counter>
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes
in interface CounterModel
setExpandoBridgeAttributes
in interface BaseModel<Counter>
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface CounterModel
setExpandoBridgeAttributes
in interface BaseModel<Counter>
serviceContext
- the service context to be appliedServiceContext.getExpandoBridgeAttributes(
)
public Object clone()
BaseModel
clone
in interface CounterModel
clone
in interface BaseModel<Counter>
clone
in class Object
public int compareTo(Counter counter)
compareTo
in interface CounterModel
compareTo
in interface Comparable<Counter>
public int hashCode()
hashCode
in interface CounterModel
hashCode
in class Object
public CacheModel<Counter> toCacheModel()
BaseModel
toCacheModel
in interface CounterModel
toCacheModel
in interface BaseModel<Counter>
public Counter toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface CounterModel
toEscapedModel
in interface BaseModel<Counter>
AutoEscapeBeanHandler
public Counter toUnescapedModel()
toUnescapedModel
in interface CounterModel
toUnescapedModel
in interface BaseModel<Counter>
public String toString()
toString
in interface CounterModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface CounterModel
toXmlString
in interface BaseModel<Counter>
public void persist() throws SystemException
PersistedModel
persist
in interface PersistedModel
SystemException
- if a system exception occurredpublic boolean equals(Object obj)
equals
in class Object
public Counter getWrappedCounter()
getWrappedModel()
public Counter getWrappedModel()
getWrappedModel
in interface ModelWrapper<Counter>
public void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<Counter>
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |