001package gudusoft.gsqlparser.dlineage.dataflow.sqlenv.model;
002
003import javax.xml.bind.annotation.XmlAttribute;
004import javax.xml.bind.annotation.XmlType;
005
006/**
007 * Export model for a SQL synonym: its name plus the base object it points at
008 * (database/schema/object). The source parts may be absent when unknown.
009 */
010@XmlType(
011        propOrder = {"name", "sourceDatabase", "sourceSchema", "sourceName"}
012)
013public class Synonym {
014    private String name;
015    private String sourceDatabase;
016    private String sourceSchema;
017    private String sourceName;
018
019    @XmlAttribute(required = true)
020    public String getName() {
021        return name;
022    }
023
024    public void setName(String name) {
025        this.name = name;
026    }
027
028    @XmlAttribute(required = false)
029    public String getSourceDatabase() {
030        return sourceDatabase;
031    }
032
033    public void setSourceDatabase(String sourceDatabase) {
034        this.sourceDatabase = sourceDatabase;
035    }
036
037    @XmlAttribute(required = false)
038    public String getSourceSchema() {
039        return sourceSchema;
040    }
041
042    public void setSourceSchema(String sourceSchema) {
043        this.sourceSchema = sourceSchema;
044    }
045
046    @XmlAttribute(required = false)
047    public String getSourceName() {
048        return sourceName;
049    }
050
051    public void setSourceName(String sourceName) {
052        this.sourceName = sourceName;
053    }
054}