-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRelation.java
More file actions
48 lines (42 loc) · 1.07 KB
/
Relation.java
File metadata and controls
48 lines (42 loc) · 1.07 KB
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
/*
* Relation.java
*
* 10/10/17
* This class stores a relation, which contains a linked list of tuples.
*/
import java.util.*;
public class Relation {
private String title;
private LinkedList<Tuple> tuples;
private LinkedList<String> categories;
private LinkedList<String> dataTypes;
private LinkedList<String> maxSize;
public String getTitle() {
return this.title;
}
public void setTitle(String title) {
this.title = title;
}
public LinkedList<String> getCategories(){
return this.categories;
}
public LinkedList<Tuple> getTuples() {
return this.tuples;
}
public LinkedList<String> getdataTypes() {
return this.dataTypes;
}
public LinkedList<String> getmaxSize() {
return this.maxSize;
}
/* Relation
*
* Sets the list of tuples to null.
*/
public Relation() {
this.tuples = new LinkedList<Tuple>();
this.categories = new LinkedList<String>();
this.dataTypes = new LinkedList<String>();
this.maxSize = new LinkedList<String>();
}
}