001package gudusoft.gsqlparser.nodes; 002 003/** 004 * DB2 fetch first clause. 005 * <br> 006 * Oracle fetch first/next clause 007 */ 008public class TFetchFirstClause extends TParseTreeNode { 009 private TExpression fetchValue; 010 011 public TExpression getFetchValue() { 012 return fetchValue; 013 } 014 015 public void init(Object arg1){ 016 this.fetchValue = (TExpression)arg1; 017 } 018 019 public void setFetchValue(TExpression fetchValue) { 020 this.fetchValue = fetchValue; 021 } 022 023 public void accept(TParseTreeVisitor v){ 024 v.preVisit(this); 025// this.getItems().accept(v); 026 v.postVisit(this); 027 } 028 029 public void acceptChildren(TParseTreeVisitor v){ 030 v.preVisit(this); 031 if (fetchValue != null){ 032 fetchValue.acceptChildren(v); 033 } 034 v.postVisit(this); 035 } 036}