1 18 21 package org.apache.roller.pojos; 22 23 import org.apache.roller.RollerException; 24 import java.util.List ; 25 26 33 public abstract class HierarchicalPersistentObject extends PersistentObject 34 { 35 HierarchicalPersistentObject mNewParent = null; 36 37 38 public abstract Assoc createAssoc( 39 HierarchicalPersistentObject object, 40 HierarchicalPersistentObject ancestor, 41 String relation ) throws RollerException; 42 43 44 public abstract Class getAssocClass(); 45 46 47 public abstract String getObjectPropertyName(); 48 49 50 public abstract String getAncestorPropertyName(); 51 52 53 public abstract void setParent(HierarchicalPersistentObject parent); 54 55 public abstract Assoc getParentAssoc() throws RollerException; 56 57 public abstract List getChildAssocs() throws RollerException; 58 59 public abstract List getAllDescendentAssocs() throws RollerException; 60 61 public abstract List getAncestorAssocs() throws RollerException; 62 63 64 public abstract boolean isInUse() throws RollerException; 65 66 67 public HierarchicalPersistentObject getNewParent() 68 { 69 return mNewParent; 70 } 71 72 } 73 | Popular Tags |