assoc.java

来自「这个weblogging 设计得比较精巧」· Java 代码 · 共 35 行

JAVA
35
字号
/* * Created on Jan 13, 2004 */package org.roller.pojos;import org.roller.RollerException;import java.io.Serializable;/** * Interface for hierarchical assocations. * @author David M Johnson */public interface Assoc extends Serializable{    public static final String PARENT = "PARENT";    public static final String GRANDPARENT = "GRANDPARENT";    /** Object that owns this association. */    public HierarchicalPersistentObject getObject();    public void setObject(HierarchicalPersistentObject hpo);        /** Associated object. */    public HierarchicalPersistentObject getAncestor();     public void setAncestor(HierarchicalPersistentObject hpo);         /** Type of relationship, PARENT or GRANDPARENT. */       public String getRelation();        /** Save association. */    public abstract void save() throws RollerException;        /** Remove association. */    public abstract void remove() throws RollerException;}

⌨️ 快捷键说明

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