001package gudusoft.gsqlparser.nodes.postgresql; 002 003import gudusoft.gsqlparser.nodes.*; 004 005/** 006 * Represents an INHERITS clause in a CREATE TABLE statement. 007 * Example: INHERITS (parent_table1, parent_table2) 008 */ 009public class TInheritsClause extends TParseTreeNode { 010 011 private TObjectNameList parentTables; 012 013 014 public void init(Object arg1) { 015 parentTables = (TObjectNameList) arg1; 016 } 017 018 /** 019 * Gets the list of parent table names 020 * @return List of qualified names representing parent tables 021 */ 022 public TObjectNameList getParentTables() { 023 return parentTables; 024 } 025 026 /** 027 * Sets the list of parent table names 028 * @param parentTables List of qualified names representing parent tables 029 */ 030 public void setParentTables(TObjectNameList parentTables) { 031 this.parentTables = parentTables; 032 } 033 034 public void accept(TParseTreeVisitor v){ 035 v.preVisit(this); 036 v.postVisit(this); 037 } 038 039 public void acceptChildren(TParseTreeVisitor v){ 040 v.preVisit(this); 041 v.postVisit(this); 042 } 043 044}