Interface CounterModel

All Superinterfaces:
BaseModel<Counter>, ClassedModel, Cloneable, Comparable<Counter>, Serializable
All Known Subinterfaces:
Counter
All Known Implementing Classes:
CounterWrapper

@ProviderType public interface CounterModel extends BaseModel<Counter>
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 Details

    • getPrimaryKey

      String getPrimaryKey()
      Returns the primary key of this counter.
      Returns:
      the primary key of this counter
    • setPrimaryKey

      void setPrimaryKey(String primaryKey)
      Sets the primary key of this counter.
      Parameters:
      primaryKey - the primary key of this counter
    • getName

      @AutoEscape String getName()
      Returns the name of this counter.
      Returns:
      the name of this counter
    • setName

      void setName(String name)
      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:
      cloneWithOriginalValues in interface BaseModel<Counter>
    • toXmlString

      default String toXmlString()