1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
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      private boolean _new;
66      private boolean _cachedModel;
67      private boolean _escapedModel;
68  
69  }