001package gudusoft.gsqlparser.dlineage.dataflow.model; 002 003import gudusoft.gsqlparser.TCustomSqlStatement; 004import gudusoft.gsqlparser.nodes.TObjectName; 005 006public class Variable extends Table { 007 008 /** 009 * True when this record's field columns were materialized from its TYPE 010 * declaration, in declaration order (#695). Ordinal pairing (FETCH, 011 * SELECT INTO) is only sound against this order — fields discovered from 012 * consumption arrive in reference order and must not be paired by 013 * position. 014 */ 015 private boolean typeOrderedFields = false; 016 017 public boolean isTypeOrderedFields() { 018 return typeOrderedFields; 019 } 020 021 public void setTypeOrderedFields(boolean typeOrderedFields) { 022 this.typeOrderedFields = typeOrderedFields; 023 } 024 025 public Variable(TObjectName cursorVariable) { 026 super(cursorVariable); 027 this.setVariable(true); 028 } 029 030 public Variable(String cursorVariable) { 031 super(cursorVariable); 032 this.setVariable(true); 033 } 034 035 public Variable(TCustomSqlStatement stmt, TObjectName cursorVariable) { 036 super(stmt, cursorVariable); 037 this.setVariable(true); 038 } 039} 040