📄 relationship.java
字号:
/*
// $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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -