model.java

来自「Java/J2EE框架Jdon-Framework系统的Sample」· Java 代码 · 共 55 行

JAVA
55
字号
/**
 * Copyright 2005 Jdon.com
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */

package com.jdon.controller.model;

import java.io.*;

/**
  * Base domain model
  * it can be DTO or nested Model.
  * it is the important message between business
  * layer and view layer.
  * in view layer, it is created by form object(such as
  * ActionForm object);in business layer, it is created
  * by business components(such as session bean).
  *
 * 基本域对象接口
 *
 * 记录基本对象的数据。
 * 在J2EE多个层次之间来往传递,或是DTO,或是数据模型。
 *
 * 重要特性:是否被修改;由于Model是联系前后台重要纽带,
 * 其是否被修改关系到后台是否要触发数据库操作,特别是在
 * 嵌套Model中,这一特性非常重要。
 * setModified通常被Model子类的setXXX方法调用。
 *
 * <p>Copyright: Jdon.com Copyright (c) 2003</p>
 * <p></p>
 * @author banq
 * @version 1.0
 */
public abstract class Model extends Cacheable implements Cloneable, Serializable {
  private boolean modified;
  public boolean isModified() {
    return modified;
  }

  public void setModified(boolean modified) {
    this.modified = modified;
  }

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?