001package gudusoft.gsqlparser.nodes; 002 003 004import gudusoft.gsqlparser.TSourceToken; 005import gudusoft.gsqlparser.nodes.hive.THiveKeyValueProperty; 006 007public class TAlterDatabaseSqlNode extends TParseTreeNode { 008 private TObjectName databaseName; 009 private TPTNodeList <THiveKeyValueProperty> dbProperties; 010 private TObjectName newDatabaseName; 011 private TObjectName ownerName; 012 private TSourceToken locationString; 013 014 public TObjectName getNewDatabaseName() { 015 return newDatabaseName; 016 } 017 018 public TObjectName getOwnerName() { 019 return ownerName; 020 } 021 022 public void setOwnerName(TObjectName ownerName) { 023 024 this.ownerName = ownerName; 025 } 026 027 public void setNewDatabaseName(TObjectName newDatabaseName) { 028 029 this.newDatabaseName = newDatabaseName; 030 } 031 032 public TPTNodeList<THiveKeyValueProperty> getDbProperties() { 033 return dbProperties; 034 } 035 036 public TObjectName getDatabaseName() { 037 return databaseName; 038 } 039 040 public void init(Object arg1,Object arg2){ 041 databaseName = (TObjectName)arg1; 042 dbProperties = (TPTNodeList)arg2; 043 } 044 045 public void init(Object arg1){ 046 databaseName = (TObjectName)arg1; 047 } 048 049 public void setDatabaseName(TObjectName databaseName) { 050 this.databaseName = databaseName; 051 } 052 053 public void setDbProperties(TPTNodeList<THiveKeyValueProperty> dbProperties) { 054 this.dbProperties = dbProperties; 055 } 056 057 public TSourceToken getLocationString() { 058 return locationString; 059 } 060 061 public void setLocationString(TSourceToken locationString) { 062 this.locationString = locationString; 063 } 064}