-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclsRootStop.java
More file actions
118 lines (97 loc) · 2.37 KB
/
clsRootStop.java
File metadata and controls
118 lines (97 loc) · 2.37 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
import javax.swing.*;
public class clsRootStop
{
private int RootStopID ;
private int RootID;
private int StationID;
private String StopTime;
public void setRootStopID(int RootStopID)
{
this.RootStopID = RootStopID;
}
public int getRootStopID()
{
return RootStopID;
}
public void setRootID(int mRootID)
{
this.RootID = mRootID;
}
public int getRootID()
{
return RootID;
}
public void setStationID(int StationID)
{
this.StationID = StationID;
}
public int getStationID()
{
return StationID;
}
public void setStopTime( String StopTime)
{
this.StopTime = StopTime;
}
public String getStopTime()
{
return StopTime;
}
public static void addNewRootStop(clsRootStop temp)
{
dlsRootStop.addNewRootStop(temp);
}
public static void updateRootStop(clsRootStop temp)
{
dlsRootStop.updateRootStop(temp);
}
public static void deleteRootStop(clsRootStop temp)
{
dlsRootStop.deleteRootStop(temp);
}
public static int getAllRootStopCount()
{
return(dlsRootStop.getAllRootStopCount());
}
/*public static String[] getAllRootStopID()
{
return(dlsRootStop.getAllRootStopID());
}*/
public static clsRootStop getRootStopInformation(int mRootStop)
{
return(dlsRootStop.getRootStopInformation(mRootStop));
}
public static clsRootStop[] getAllRootStopInformation()
{
return(dlsRootStop.getAllRootStopInformation());
}
/* public static void addRootStopRecords(JComboBox temp)
{
temp.removeAllItems();
temp.addItem("--Select RootStop--");
clsRootStop Roots [] = clsRootStop.getAllRootStopInformation();
for(clsRootStop roots : Roots)
{
temp.addItem(roots.getRootStop());
}
}*/
public static int getIDFromName(String mRootStopName)
{
return dlsRootStop.getIDFromName(mRootStopName);
}
public static void showRootStop(clsRootStop temp)
{
System.out.println("RootStop ID : "+temp.getRootStopID());
System.out.println("Root ID : "+temp.getRootID());
System.out.println("Station ID : "+temp.getStationID());
System.out.println("Stop Time : "+temp.getStopTime());
}
public static void main(String args[])
{
clsRootStop[] emp= clsRootStop.getAllRootStopInformation();
for(clsRootStop emps : emp)
{
clsRootStop.showRootStop(emps);
}
}
}