Package com.liferay.counter.kernel.model
Interface CounterModel
- All Superinterfaces:
BaseModel<Counter>,ClassedModel,Cloneable,Comparable<Counter>,Serializable
- All Known Subinterfaces:
Counter
- All Known Implementing Classes:
CounterWrapper
The base model interface for the Counter service. Represents a row in the "Counter" database table, with each column mapped to a property of this class.
This interface and its corresponding implementation com.liferay.counter.model.impl.CounterModelImpl exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in com.liferay.counter.model.impl.CounterImpl.
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Method Summary
Modifier and TypeMethodDescriptionlongReturns the current ID of this counter.getName()Returns the name of this counter.Returns the primary key of this counter.voidsetCurrentId(long currentId) Sets the current ID of this counter.voidSets the name of this counter.voidsetPrimaryKey(String primaryKey) Sets the primary key of this counter.default StringMethods inherited from interface com.liferay.portal.kernel.model.BaseModel
clone, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getExpandoBridge, getModelAttributes, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setModelAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModelMethods inherited from interface com.liferay.portal.kernel.model.ClassedModel
getModelClass, getModelClassNameMethods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
getPrimaryKey
String getPrimaryKey()Returns the primary key of this counter.- Returns:
- the primary key of this counter
-
setPrimaryKey
Sets the primary key of this counter.- Parameters:
primaryKey- the primary key of this counter
-
getName
Returns the name of this counter.- Returns:
- the name of this counter
-
setName
Sets the name of this counter.- Parameters:
name- the name of this counter
-
getCurrentId
long getCurrentId()Returns the current ID of this counter.- Returns:
- the current ID of this counter
-
setCurrentId
void setCurrentId(long currentId) Sets the current ID of this counter.- Parameters:
currentId- the current ID of this counter
-
cloneWithOriginalValues
Counter cloneWithOriginalValues()- Specified by:
cloneWithOriginalValuesin interfaceBaseModel<Counter>
-
toXmlString
-