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 aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.kernel.bean.AutoEscape; 020 import com.liferay.portal.model.BaseModel; 021 import com.liferay.portal.model.CacheModel; 022 import com.liferay.portal.service.ServiceContext; 023 024 import com.liferay.portlet.expando.model.ExpandoBridge; 025 026 import java.io.Serializable; 027 028 /** 029 * 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. 030 * 031 * <p> 032 * 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}. 033 * </p> 034 * 035 * @author Brian Wing Shun Chan 036 * @see Counter 037 * @see com.liferay.counter.model.impl.CounterImpl 038 * @see com.liferay.counter.model.impl.CounterModelImpl 039 * @generated 040 */ 041 @ProviderType 042 public interface CounterModel extends BaseModel<Counter> { 043 /* 044 * NOTE FOR DEVELOPERS: 045 * 046 * Never modify or reference this interface directly. All methods that expect a counter model instance should use the {@link Counter} interface instead. 047 */ 048 049 /** 050 * Returns the primary key of this counter. 051 * 052 * @return the primary key of this counter 053 */ 054 public String getPrimaryKey(); 055 056 /** 057 * Sets the primary key of this counter. 058 * 059 * @param primaryKey the primary key of this counter 060 */ 061 public void setPrimaryKey(String primaryKey); 062 063 /** 064 * Returns the name of this counter. 065 * 066 * @return the name of this counter 067 */ 068 @AutoEscape 069 public String getName(); 070 071 /** 072 * Sets the name of this counter. 073 * 074 * @param name the name of this counter 075 */ 076 public void setName(String name); 077 078 /** 079 * Returns the current ID of this counter. 080 * 081 * @return the current ID of this counter 082 */ 083 public long getCurrentId(); 084 085 /** 086 * Sets the current ID of this counter. 087 * 088 * @param currentId the current ID of this counter 089 */ 090 public void setCurrentId(long currentId); 091 092 @Override 093 public boolean isNew(); 094 095 @Override 096 public void setNew(boolean n); 097 098 @Override 099 public boolean isCachedModel(); 100 101 @Override 102 public void setCachedModel(boolean cachedModel); 103 104 @Override 105 public boolean isEscapedModel(); 106 107 @Override 108 public Serializable getPrimaryKeyObj(); 109 110 @Override 111 public void setPrimaryKeyObj(Serializable primaryKeyObj); 112 113 @Override 114 public ExpandoBridge getExpandoBridge(); 115 116 @Override 117 public void setExpandoBridgeAttributes(BaseModel<?> baseModel); 118 119 @Override 120 public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge); 121 122 @Override 123 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 124 125 @Override 126 public Object clone(); 127 128 @Override 129 public int compareTo(Counter counter); 130 131 @Override 132 public int hashCode(); 133 134 @Override 135 public CacheModel<Counter> toCacheModel(); 136 137 @Override 138 public Counter toEscapedModel(); 139 140 @Override 141 public Counter toUnescapedModel(); 142 143 @Override 144 public String toString(); 145 146 @Override 147 public String toXmlString(); 148 }