-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathRelation.java
More file actions
51 lines (40 loc) · 1003 Bytes
/
Relation.java
File metadata and controls
51 lines (40 loc) · 1003 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package com.postgresintl.logicaldecoding.model;
import java.util.ArrayList;
import java.util.List;
public class Relation {
int oid;
String schema;
String name;
List <Attribute> attributes = new ArrayList<Attribute>();
public int getOid() {
return oid;
}
public void setOid(int oid) {
this.oid = oid;
}
public String getSchema() {
return schema;
}
public void setSchema(String schema) {
this.schema = schema;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public List<Attribute> getAttributes() {
return attributes;
}
public void setAttributes(List<Attribute> attributes) {
this.attributes = attributes;
}
public void addAttribute(Attribute attribute){
attributes.add(attribute);
}
@Override
public String toString(){
return ""+schema+'.'+name + attributes;
}
}