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  
19  /**
20   * <a href="BaseModelImpl.java.html"><b><i>View Source</i></b></a>
21   *
22   * @author Brian Wing Shun Chan
23   */
24  public abstract class BaseModelImpl<T> implements BaseModel<T> {
25  
26      public BaseModelImpl() {
27      }
28  
29      public boolean isNew() {
30          return _new;
31      }
32  
33      public boolean setNew(boolean n) {
34          return _new = n;
35      }
36  
37      public boolean isCachedModel() {
38          return _cachedModel;
39      }
40  
41      public void setCachedModel(boolean cachedModel) {
42          _cachedModel = cachedModel;
43      }
44  
45      public boolean isEscapedModel() {
46          return _escapedModel;
47      }
48  
49      public void setEscapedModel(boolean escapedModel) {
50          _escapedModel = escapedModel;
51      }
52  
53      public abstract Object clone();
54  
55      private boolean _new;
56      private boolean _cachedModel;
57      private boolean _escapedModel;
58  
59  }