001 /** 002 * Copyright (c) 2000-present 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.portal.model; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.kernel.bean.AutoEscape; 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 ServiceComponent service. Represents a row in the "ServiceComponent" 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.portal.model.impl.ServiceComponentModelImpl} 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.portal.model.impl.ServiceComponentImpl}. 031 * </p> 032 * 033 * @author Brian Wing Shun Chan 034 * @see ServiceComponent 035 * @see com.liferay.portal.model.impl.ServiceComponentImpl 036 * @see com.liferay.portal.model.impl.ServiceComponentModelImpl 037 * @generated 038 */ 039 @ProviderType 040 public interface ServiceComponentModel extends BaseModel<ServiceComponent>, 041 MVCCModel { 042 /* 043 * NOTE FOR DEVELOPERS: 044 * 045 * Never modify or reference this interface directly. All methods that expect a service component model instance should use the {@link ServiceComponent} interface instead. 046 */ 047 048 /** 049 * Returns the primary key of this service component. 050 * 051 * @return the primary key of this service component 052 */ 053 public long getPrimaryKey(); 054 055 /** 056 * Sets the primary key of this service component. 057 * 058 * @param primaryKey the primary key of this service component 059 */ 060 public void setPrimaryKey(long primaryKey); 061 062 /** 063 * Returns the mvcc version of this service component. 064 * 065 * @return the mvcc version of this service component 066 */ 067 @Override 068 public long getMvccVersion(); 069 070 /** 071 * Sets the mvcc version of this service component. 072 * 073 * @param mvccVersion the mvcc version of this service component 074 */ 075 @Override 076 public void setMvccVersion(long mvccVersion); 077 078 /** 079 * Returns the service component ID of this service component. 080 * 081 * @return the service component ID of this service component 082 */ 083 public long getServiceComponentId(); 084 085 /** 086 * Sets the service component ID of this service component. 087 * 088 * @param serviceComponentId the service component ID of this service component 089 */ 090 public void setServiceComponentId(long serviceComponentId); 091 092 /** 093 * Returns the build namespace of this service component. 094 * 095 * @return the build namespace of this service component 096 */ 097 @AutoEscape 098 public String getBuildNamespace(); 099 100 /** 101 * Sets the build namespace of this service component. 102 * 103 * @param buildNamespace the build namespace of this service component 104 */ 105 public void setBuildNamespace(String buildNamespace); 106 107 /** 108 * Returns the build number of this service component. 109 * 110 * @return the build number of this service component 111 */ 112 public long getBuildNumber(); 113 114 /** 115 * Sets the build number of this service component. 116 * 117 * @param buildNumber the build number of this service component 118 */ 119 public void setBuildNumber(long buildNumber); 120 121 /** 122 * Returns the build date of this service component. 123 * 124 * @return the build date of this service component 125 */ 126 public long getBuildDate(); 127 128 /** 129 * Sets the build date of this service component. 130 * 131 * @param buildDate the build date of this service component 132 */ 133 public void setBuildDate(long buildDate); 134 135 /** 136 * Returns the data of this service component. 137 * 138 * @return the data of this service component 139 */ 140 @AutoEscape 141 public String getData(); 142 143 /** 144 * Sets the data of this service component. 145 * 146 * @param data the data of this service component 147 */ 148 public void setData(String data); 149 150 @Override 151 public boolean isNew(); 152 153 @Override 154 public void setNew(boolean n); 155 156 @Override 157 public boolean isCachedModel(); 158 159 @Override 160 public void setCachedModel(boolean cachedModel); 161 162 @Override 163 public boolean isEscapedModel(); 164 165 @Override 166 public Serializable getPrimaryKeyObj(); 167 168 @Override 169 public void setPrimaryKeyObj(Serializable primaryKeyObj); 170 171 @Override 172 public ExpandoBridge getExpandoBridge(); 173 174 @Override 175 public void setExpandoBridgeAttributes(BaseModel<?> baseModel); 176 177 @Override 178 public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge); 179 180 @Override 181 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 182 183 @Override 184 public Object clone(); 185 186 @Override 187 public int compareTo( 188 com.liferay.portal.model.ServiceComponent serviceComponent); 189 190 @Override 191 public int hashCode(); 192 193 @Override 194 public CacheModel<com.liferay.portal.model.ServiceComponent> toCacheModel(); 195 196 @Override 197 public com.liferay.portal.model.ServiceComponent toEscapedModel(); 198 199 @Override 200 public com.liferay.portal.model.ServiceComponent toUnescapedModel(); 201 202 @Override 203 public String toString(); 204 205 @Override 206 public String toXmlString(); 207 }