relationship.java

来自「数据仓库展示程序」· Java 代码 · 共 40 行

JAVA
40
字号
/*
// $Id: //open/mondrian/src/main/mondrian/jolap/Relationship.java#3 $
// This software is subject to the terms of the Common Public License
// Agreement, available at the following URL:
// http://www.opensource.org/licenses/cpl.html.
// (C) Copyright 2002-2005 Kana Software, Inc. and others.
// All Rights Reserved.
// You must accept the terms of that agreement to use this software.
//
// jhyde, Dec 24, 2002
*/
package mondrian.jolap;

/**
 * Defines an association between two classes.
 *
 * <p>Instances of a relationship are held in {@link RelationshipList} or
 * {@link OrderedRelationshipList}.
 *
 * @author jhyde
 * @since Dec 24, 2002
 * @version $Id: //open/mondrian/src/main/mondrian/jolap/Relationship.java#3 $
 **/
class Relationship {
    Class fromClass;
    Class toClass;

    /** Constructs a two-way relationship. **/
    public Relationship(Class fromClass, String name, Class toClass, String inverseName) {
        this.fromClass = fromClass;
        this.toClass = toClass;
    }
    /** Constructs a one-way relationship. **/
    public Relationship(Class fromClass, String name, Class toClass) {
        this(fromClass, name, toClass, null);
    }
}

// End Relationship.java

⌨️ 快捷键说明

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