001 /** 002 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved. 003 * 004 * The contents of this file are subject to the terms of the Liferay Enterprise 005 * Subscription License ("License"). You may not use this file except in 006 * compliance with the License. You can obtain a copy of the License by 007 * contacting Liferay, Inc. See the License for the specific language governing 008 * permissions and limitations under the License, including but not limited to 009 * distribution rights of the Software. 010 * 011 * 012 * 013 */ 014 015 package com.liferay.counter.model; 016 017 import com.liferay.portal.kernel.annotation.AutoEscape; 018 import com.liferay.portal.model.BaseModel; 019 import com.liferay.portal.service.ServiceContext; 020 021 import com.liferay.portlet.expando.model.ExpandoBridge; 022 023 import java.io.Serializable; 024 025 /** 026 * 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. 027 * 028 * <p> 029 * This interface and its corresponding implementation {@link 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 {@link com.liferay.counter.model.impl.CounterImpl}. 030 * </p> 031 * 032 * <p> 033 * Never modify or reference this interface directly. All methods that expect a counter model instance should use the {@link Counter} interface instead. 034 * </p> 035 * 036 * @author Brian Wing Shun Chan 037 * @see Counter 038 * @see com.liferay.counter.model.impl.CounterImpl 039 * @see com.liferay.counter.model.impl.CounterModelImpl 040 * @generated 041 */ 042 public interface CounterModel extends BaseModel<Counter> { 043 /** 044 * Gets the primary key of this counter. 045 * 046 * @return the primary key of this counter 047 */ 048 public String getPrimaryKey(); 049 050 /** 051 * Sets the primary key of this counter 052 * 053 * @param pk the primary key of this counter 054 */ 055 public void setPrimaryKey(String pk); 056 057 /** 058 * Gets the name of this counter. 059 * 060 * @return the name of this counter 061 */ 062 @AutoEscape 063 public String getName(); 064 065 /** 066 * Sets the name of this counter. 067 * 068 * @param name the name of this counter 069 */ 070 public void setName(String name); 071 072 /** 073 * Gets the current id of this counter. 074 * 075 * @return the current id of this counter 076 */ 077 public long getCurrentId(); 078 079 /** 080 * Sets the current id of this counter. 081 * 082 * @param currentId the current id of this counter 083 */ 084 public void setCurrentId(long currentId); 085 086 public boolean isNew(); 087 088 public void setNew(boolean n); 089 090 public boolean isCachedModel(); 091 092 public void setCachedModel(boolean cachedModel); 093 094 public boolean isEscapedModel(); 095 096 public void setEscapedModel(boolean escapedModel); 097 098 public Serializable getPrimaryKeyObj(); 099 100 public ExpandoBridge getExpandoBridge(); 101 102 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 103 104 public Object clone(); 105 106 public int compareTo(Counter counter); 107 108 public int hashCode(); 109 110 public Counter toEscapedModel(); 111 112 public String toString(); 113 114 public String toXmlString(); 115 }