1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portal.model.impl;
16  
17  import com.liferay.portal.model.BaseModel;
18  import com.liferay.portal.service.ServiceContext;
19  import com.liferay.portlet.expando.model.ExpandoBridge;
20  
21  /**
22   * <a href="BaseModelImpl.java.html"><b><i>View Source</i></b></a>
23   *
24   * @author Brian Wing Shun Chan
25   */
26  public abstract class BaseModelImpl<T> implements BaseModel<T> {
27  
28      public BaseModelImpl() {
29      }
30  
31      public boolean isNew() {
32          return _new;
33      }
34  
35      public boolean setNew(boolean n) {
36          return _new = n;
37      }
38  
39      public boolean isCachedModel() {
40          return _cachedModel;
41      }
42  
43      public void setCachedModel(boolean cachedModel) {
44          _cachedModel = cachedModel;
45      }
46  
47      public boolean isEscapedModel() {
48          return _escapedModel;
49      }
50  
51      public void setEscapedModel(boolean escapedModel) {
52          _escapedModel = escapedModel;
53      }
54  
55      public ExpandoBridge getExpandoBridge() {
56          throw new UnsupportedOperationException();
57      }
58  
59      public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
60          throw new UnsupportedOperationException();
61      }
62  
63      public abstract Object clone();
64  
65      public T toEscapedModel() {
66          throw new UnsupportedOperationException();
67      }
68  
69      private boolean _new;
70      private boolean _cachedModel;
71      private boolean _escapedModel;
72  
73  }