001 /** 002 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.counter.model; 016 017 import com.liferay.portal.kernel.bean.AutoEscape; 018 import com.liferay.portal.model.BaseModel; 019 import com.liferay.portal.model.CacheModel; 020 import com.liferay.portal.service.ServiceContext; 021 022 import com.liferay.portlet.expando.model.ExpandoBridge; 023 024 import java.io.Serializable; 025 026 /** 027 * 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. 028 * 029 * <p> 030 * 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}. 031 * </p> 032 * 033 * @author Brian Wing Shun Chan 034 * @see Counter 035 * @see com.liferay.counter.model.impl.CounterImpl 036 * @see com.liferay.counter.model.impl.CounterModelImpl 037 * @generated 038 */ 039 public interface CounterModel extends BaseModel<Counter> { 040 /* 041 * NOTE FOR DEVELOPERS: 042 * 043 * Never modify or reference this interface directly. All methods that expect a counter model instance should use the {@link Counter} interface instead. 044 */ 045 046 /** 047 * Returns the primary key of this counter. 048 * 049 * @return the primary key of this counter 050 */ 051 public String getPrimaryKey(); 052 053 /** 054 * Sets the primary key of this counter. 055 * 056 * @param primaryKey the primary key of this counter 057 */ 058 public void setPrimaryKey(String primaryKey); 059 060 /** 061 * Returns the name of this counter. 062 * 063 * @return the name of this counter 064 */ 065 @AutoEscape 066 public String getName(); 067 068 /** 069 * Sets the name of this counter. 070 * 071 * @param name the name of this counter 072 */ 073 public void setName(String name); 074 075 /** 076 * Returns the current ID of this counter. 077 * 078 * @return the current ID of this counter 079 */ 080 public long getCurrentId(); 081 082 /** 083 * Sets the current ID of this counter. 084 * 085 * @param currentId the current ID of this counter 086 */ 087 public void setCurrentId(long currentId); 088 089 public boolean isNew(); 090 091 public void setNew(boolean n); 092 093 public boolean isCachedModel(); 094 095 public void setCachedModel(boolean cachedModel); 096 097 public boolean isEscapedModel(); 098 099 public Serializable getPrimaryKeyObj(); 100 101 public void setPrimaryKeyObj(Serializable primaryKeyObj); 102 103 public ExpandoBridge getExpandoBridge(); 104 105 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 106 107 public Object clone(); 108 109 public int compareTo(Counter counter); 110 111 public int hashCode(); 112 113 public CacheModel<Counter> toCacheModel(); 114 115 public Counter toEscapedModel(); 116 117 public Counter toUnescapedModel(); 118 119 public String toString(); 120 121 public String toXmlString(); 122 }