Class TVarDeclStmt
- Namespace
- gudusoft.gsqlparser.nodes
- Assembly
- gudusoft.gsqlparser.dll
Represents declare statement that used to decalre variable, constant, exception and subtype. Or Signifies that the statement is a pragma (compiler directive), including exception_init_pragma, autonomous_transaction_pragma, restrict_references_pragma, serially_resuable_pragma and pragma_timestamp
public class TVarDeclStmt : TCustomSqlStatement, Visitable
- Inheritance
-
TVarDeclStmt
- Implements
- Inherited Members
Constructors
TVarDeclStmt()
public TVarDeclStmt()
TVarDeclStmt(EDbVendor)
public TVarDeclStmt(EDbVendor dbvendor)
Parameters
dbvendorEDbVendor
Fields
whatDeclared_constant
public const int whatDeclared_constant = 2
Field Value
- See Also
whatDeclared_exception
public const int whatDeclared_exception = 3
Field Value
- See Also
whatDeclared_pragma_autonomous_transaction
public const int whatDeclared_pragma_autonomous_transaction = 6
Field Value
- See Also
whatDeclared_pragma_exception_init
public const int whatDeclared_pragma_exception_init = 5
Field Value
- See Also
whatDeclared_pragma_interface
public const int whatDeclared_pragma_interface = 10
Field Value
- See Also
whatDeclared_pragma_restrict_references
public const int whatDeclared_pragma_restrict_references = 9
Field Value
- See Also
whatDeclared_pragma_serially_reusable
public const int whatDeclared_pragma_serially_reusable = 7
Field Value
- See Also
whatDeclared_pragma_timestamp
public const int whatDeclared_pragma_timestamp = 8
Field Value
- See Also
whatDeclared_subtype
public const int whatDeclared_subtype = 4
Field Value
- See Also
whatDeclared_variable
public const int whatDeclared_variable = 1
Field Value
- See Also
Properties
AliasItem
public virtual TObjectName AliasItem { get; set; }
Property Value
CollateName
public virtual TObjectName CollateName { get; set; }
Property Value
DataType
Datatype of declared element. @return
public virtual TTypeName DataType { get; set; }
Property Value
DeclareType
public virtual EDeclareType DeclareType { get; set; }
Property Value
DefaultValue
public virtual TExpression DefaultValue { get; set; }
Property Value
ElementName
Name of element that declared. @return
public virtual TObjectName ElementName { get; set; }
Property Value
Error_number
public virtual TExpression Error_number { get; set; }
Property Value
Exception_name
public virtual TObjectName Exception_name { get; set; }
Property Value
HowtoSetValue
How deafult value of a variable or constant was set.
:= | DEFAULT
or DEFAULT keyword howtoSetValue_default; @return
public virtual int HowtoSetValue { get; set; }
Property Value
NotNull
Specifies that no element can have the value NULL. @return
public virtual bool NotNull { get; set; }
Property Value
Value
public virtual TExpression Value { get; set; }
Property Value
- See Also
WhatDeclared
public virtual int WhatDeclared { get; set; }
Property Value
Methods
accept(TParseTreeVisitor)
public override void accept(TParseTreeVisitor v)
Parameters
acceptChildren(TParseTreeVisitor)
public override void acceptChildren(TParseTreeVisitor v)
Parameters
doParseStatement(TCustomSqlStatement)
analyze SQL
public override int doParseStatement(TCustomSqlStatement psql)
Parameters
psqlTCustomSqlStatement
Returns
init(object)
Initialize a query tree node.
public override void init(object arg1)
Parameters
arg1object
init(object, object)
public override void init(object arg1, object arg2)
Parameters
init(object, object, object, object)
public override void init(object arg1, object arg2, object arg3, object arg4)
Parameters
setAliasItem(TObjectName)
public void setAliasItem(TObjectName on)
Parameters
onTObjectName
setCollateName(TObjectName)
public void setCollateName(TObjectName on)
Parameters
onTObjectName
setDeclareType(EDeclareType)
public void setDeclareType(EDeclareType t)
Parameters
setDefaultValue(TExpression)
public void setDefaultValue(TExpression e)