001package gudusoft.gsqlparser.dlineage.dataflow.model.xml; 002 003import java.util.ArrayList; 004import java.util.List; 005 006import javax.xml.bind.annotation.XmlAttribute; 007import javax.xml.bind.annotation.XmlElement; 008import javax.xml.bind.annotation.XmlType; 009 010import gudusoft.gsqlparser.dlineage.dataflow.model.ModelBindingManager; 011import gudusoft.gsqlparser.util.SQLUtil; 012 013@XmlType(propOrder = { "id", "server", "database", "schema", "name", "type", "coordinate", "arguments", "procedures" }) 014public class oraclePackage { 015 016 private String id; 017 018 private String server; 019 020 private String database; 021 022 private String schema; 023 024 private String name; 025 026 private String type; 027 028 private String coordinate; 029 030 private List<argument> arguments; 031 032 private List<procedure> procedures; 033 034 public oraclePackage() { 035 } 036 037 @XmlAttribute(required = false) 038 public String getCoordinate() { 039 if (ModelBindingManager.getGlobalOption()!=null && ModelBindingManager.getGlobalOption().isIgnoreCoordinate()) { 040 return null; 041 } 042 return this.coordinate; 043 } 044 045 public void setCoordinate(String coordinate) { 046 if (ModelBindingManager.getGlobalOption()!=null && ModelBindingManager.getGlobalOption().isIgnoreCoordinate()) { 047 return; 048 } 049 this.coordinate = coordinate; 050 } 051 052 @XmlAttribute(required = false) 053 public String getName() { 054 return this.name; 055 } 056 057 public void setName(String name) { 058 this.name = name; 059 } 060 061 @XmlAttribute(required = false) 062 public String getId() { 063 return this.id; 064 } 065 066 public void setId(String id) { 067 this.id = id; 068 } 069 070 @XmlAttribute(required = false) 071 public String getType() { 072 return this.type; 073 } 074 075 public void setType(String type) { 076 this.type = type; 077 } 078 079 @XmlElement(name = "procedure", required = false) 080 public List<procedure> getProcedures() { 081 if (this.procedures == null) { 082 this.procedures = new ArrayList<procedure>(); 083 } 084 return this.procedures; 085 } 086 087 public void setProcedures(List<procedure> procedures) { 088 this.procedures = procedures; 089 } 090 091 @XmlElement(name = "argument", required = false) 092 public List<argument> getArguments() { 093 if (this.arguments == null) { 094 this.arguments = new ArrayList<argument>(); 095 } 096 return this.arguments; 097 } 098 099 public void setArguments(List<argument> arguments) { 100 this.arguments = arguments; 101 } 102 103 @XmlAttribute(required = false) 104 public String getDatabase() { 105 return database; 106 } 107 108 public void setDatabase(String database) { 109 if (SQLUtil.parseNames(database).size() > 1) { 110 database = "\"" + database + "\""; 111 } 112 this.database = database; 113 } 114 115 @XmlAttribute(required = false) 116 public String getSchema() { 117 return schema; 118 } 119 120 public void setSchema(String schema) { 121 if (SQLUtil.parseNames(schema).size() > 1) { 122 schema = "\"" + schema + "\""; 123 } 124 this.schema = schema; 125 } 126 127 @XmlAttribute(required = false) 128 public String getServer() { 129 return server; 130 } 131 132 public void setServer(String server) { 133 this.server = server; 134 } 135}