1 19 20 package org.netbeans.modules.dbschema; 21 22 import java.io.*; 23 24 28 public abstract class DBMemberElement extends DBElement implements Cloneable { 29 30 private TableElement declaringTable; 31 32 34 protected DBMemberElement() { 35 } 36 37 42 protected DBMemberElement(Impl impl, TableElement declaringTable) { 43 super(impl); 44 this.declaringTable = declaringTable; 45 } 46 47 50 final Impl getMemberImpl() { 51 return (Impl) getElementImpl(); 52 } 53 54 56 57 61 public TableElement getDeclaringTable() { 62 return declaringTable; 63 } 64 65 68 public void setDeclaringTable(TableElement te) { 69 if (declaringTable == null) 70 declaringTable = te; 71 } 72 73 76 public interface Impl extends DBElement.Impl { 77 } 78 79 82 static abstract class Memory extends DBElement.Memory implements DBMemberElement.Impl { 83 84 public Memory() { 85 super(); 86 } 87 88 89 public Memory(DBMemberElement el) { 90 super(el); 91 } 92 } 93 } 94 | Popular Tags |