001package gudusoft.gsqlparser.nodes; 002 003import gudusoft.gsqlparser.ERestrictionType; 004 005/** 006 * Oracle, DB2 restrict clause in create view statement 007 */ 008public class TRestrictionClause extends TParseTreeNode { 009 010 /** 011 * @deprecated As of v1.8.7.2, replaced by {@link gudusoft.gsqlparser.ERestrictionType} 012 */ 013 public final static int with_read_only = 1; 014 /** 015 * @deprecated As of v1.8.7.2, replaced by {@link gudusoft.gsqlparser.ERestrictionType} 016 */ 017 public final static int with_check_option = 2; 018 /** 019 * @deprecated As of v1.8.7.2, replaced by {@link gudusoft.gsqlparser.ERestrictionType} 020 */ 021 public final static int with_local_check_option = 3; 022 /** 023 * @deprecated As of v1.8.7.2, replaced by {@link gudusoft.gsqlparser.ERestrictionType} 024 */ 025 public final static int with_cascaded_check_option = 4; 026 027 private ERestrictionType restrictionType; 028 029 public void setRestrictionType(ERestrictionType restrictionType) { 030 this.restrictionType = restrictionType; 031 } 032 033 public ERestrictionType getRestrictionType() { 034 035 return restrictionType; 036 } 037 038 private int type; 039 040 public void setType(int type) { 041 this.type = type; 042 } 043 044 private TObjectName constraintName; 045 046 /** 047 * @deprecated As of v1.8.7.2, replaced by {@link #getRestrictionType} 048 */ 049 public int getType() { 050 return type; 051 } 052 053 public TObjectName getConstraintName() { 054 return constraintName; 055 } 056 057 public void init(Object arg1){ 058 restrictionType = (ERestrictionType)arg1; 059 } 060 061 public void init(Object arg1,Object arg2){ 062 init(arg1); 063 this.constraintName = (TObjectName)arg2; 064 } 065 066 public void setConstraintName(TObjectName constraintName) { 067 this.constraintName = constraintName; 068 } 069}