Skip to content

Commit a303c8e

Browse files
author
paltridev
committed
final version
0 parents  commit a303c8e

File tree

120 files changed

+2369
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

120 files changed

+2369
-0
lines changed

.classpath

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.8.0_161"/>
4+
<classpathentry kind="src" path="src"/>
5+
<classpathentry kind="src" path="DB"/>
6+
<classpathentry kind="lib" path="C:/Program Files (x86)/mysql-connector-java-8.0.15/mysql-connector-java-8.0.15.jar"/>
7+
<classpathentry kind="output" path="bin"/>
8+
</classpath>

.project

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>GuiProject</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
</buildSpec>
14+
<natures>
15+
<nature>org.eclipse.jdt.core.javanature</nature>
16+
</natures>
17+
</projectDescription>

DB/cdcol.sql

Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
-- phpMyAdmin SQL Dump
2+
-- version 4.8.5
3+
-- https://www.phpmyadmin.net/
4+
--
5+
-- Host: 127.0.0.1
6+
-- Generation Time: Feb 18, 2019 at 09:28 PM
7+
-- Server version: 10.1.38-MariaDB
8+
-- PHP Version: 7.3.2
9+
10+
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11+
SET AUTOCOMMIT = 0;
12+
START TRANSACTION;
13+
SET time_zone = "+00:00";
14+
15+
16+
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
17+
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
18+
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
19+
/*!40101 SET NAMES utf8mb4 */;
20+
21+
--
22+
-- Database: `cdcol`
23+
--
24+
25+
-- --------------------------------------------------------
26+
27+
--
28+
-- Table structure for table `books`
29+
--
30+
31+
CREATE TABLE `books` (
32+
`id` int(10) NOT NULL,
33+
`SSN` varchar(100) NOT NULL,
34+
`name` varchar(100) NOT NULL,
35+
`author` varchar(100) NOT NULL,
36+
`publisher` varchar(100) NOT NULL,
37+
`quantity` int(10) NOT NULL,
38+
`issued` int(10) DEFAULT NULL,
39+
`added_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
40+
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
41+
42+
--
43+
-- Dumping data for table `books`
44+
--
45+
46+
INSERT INTO `books` (`id`, `SSN`, `name`, `author`, `publisher`, `quantity`, `issued`, `added_date`) VALUES
47+
(1, '12345', 'Java book', 'Kendall', 'Deitel', 5, 0, '2019-02-18 20:26:52'),
48+
(2, '78945', 'c++ cookbook', 'Hashel', 'Ocean indian', 2, 0, '2019-02-18 20:26:53');
49+
50+
-- --------------------------------------------------------
51+
52+
--
53+
-- Table structure for table `issuebooks`
54+
--
55+
56+
CREATE TABLE `issuebooks` (
57+
`id` int(11) NOT NULL,
58+
`bookSSN` varchar(50) NOT NULL,
59+
`studentid` int(11) NOT NULL,
60+
`studentname` varchar(50) NOT NULL,
61+
`studentcontact` varchar(20) NOT NULL,
62+
`issueddate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
63+
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
64+
65+
-- --------------------------------------------------------
66+
67+
--
68+
-- Table structure for table `librarian`
69+
--
70+
71+
CREATE TABLE `librarian` (
72+
`id` int(5) NOT NULL,
73+
`name` varchar(100) NOT NULL,
74+
`password` varchar(100) NOT NULL,
75+
`email` varchar(100) NOT NULL,
76+
`address` varchar(200) NOT NULL,
77+
`city` varchar(100) NOT NULL,
78+
`contact` varchar(20) NOT NULL
79+
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
80+
81+
--
82+
-- Dumping data for table `librarian`
83+
--
84+
85+
INSERT INTO `librarian` (`id`, `name`, `password`, `email`, `address`, `city`, `contact`) VALUES
86+
(1, 'Tridev', 'tridev007', 'palp5666@gmail.com', 'mosque road', 'Rose belle', '57572050'),
87+
(2, 'Sesh', '7894568', 'sobrunsesh@gmail.com', 'Valley des pret', 'Port louis', '58176045');
88+
89+
--
90+
-- Indexes for dumped tables
91+
--
92+
93+
--
94+
-- Indexes for table `books`
95+
--
96+
ALTER TABLE `books`
97+
ADD PRIMARY KEY (`id`),
98+
ADD UNIQUE KEY `callno` (`SSN`),
99+
ADD UNIQUE KEY `callno_2` (`SSN`);
100+
101+
--
102+
-- Indexes for table `issuebooks`
103+
--
104+
ALTER TABLE `issuebooks`
105+
ADD PRIMARY KEY (`id`);
106+
107+
--
108+
-- Indexes for table `librarian`
109+
--
110+
ALTER TABLE `librarian`
111+
ADD PRIMARY KEY (`id`);
112+
113+
--
114+
-- AUTO_INCREMENT for dumped tables
115+
--
116+
117+
--
118+
-- AUTO_INCREMENT for table `books`
119+
--
120+
ALTER TABLE `books`
121+
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
122+
123+
--
124+
-- AUTO_INCREMENT for table `issuebooks`
125+
--
126+
ALTER TABLE `issuebooks`
127+
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
128+
129+
--
130+
-- AUTO_INCREMENT for table `librarian`
131+
--
132+
ALTER TABLE `librarian`
133+
MODIFY `id` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
134+
COMMIT;
135+
136+
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
137+
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
138+
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;

README.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Create a database named "cdcol" in PHPMYADMIN
2+
3+
import cdcol.sql from the DB folder in this file.

bin/cdcol.sql

Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
-- phpMyAdmin SQL Dump
2+
-- version 4.8.5
3+
-- https://www.phpmyadmin.net/
4+
--
5+
-- Host: 127.0.0.1
6+
-- Generation Time: Feb 18, 2019 at 09:28 PM
7+
-- Server version: 10.1.38-MariaDB
8+
-- PHP Version: 7.3.2
9+
10+
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11+
SET AUTOCOMMIT = 0;
12+
START TRANSACTION;
13+
SET time_zone = "+00:00";
14+
15+
16+
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
17+
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
18+
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
19+
/*!40101 SET NAMES utf8mb4 */;
20+
21+
--
22+
-- Database: `cdcol`
23+
--
24+
25+
-- --------------------------------------------------------
26+
27+
--
28+
-- Table structure for table `books`
29+
--
30+
31+
CREATE TABLE `books` (
32+
`id` int(10) NOT NULL,
33+
`SSN` varchar(100) NOT NULL,
34+
`name` varchar(100) NOT NULL,
35+
`author` varchar(100) NOT NULL,
36+
`publisher` varchar(100) NOT NULL,
37+
`quantity` int(10) NOT NULL,
38+
`issued` int(10) DEFAULT NULL,
39+
`added_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
40+
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
41+
42+
--
43+
-- Dumping data for table `books`
44+
--
45+
46+
INSERT INTO `books` (`id`, `SSN`, `name`, `author`, `publisher`, `quantity`, `issued`, `added_date`) VALUES
47+
(1, '12345', 'Java book', 'Kendall', 'Deitel', 5, 0, '2019-02-18 20:26:52'),
48+
(2, '78945', 'c++ cookbook', 'Hashel', 'Ocean indian', 2, 0, '2019-02-18 20:26:53');
49+
50+
-- --------------------------------------------------------
51+
52+
--
53+
-- Table structure for table `issuebooks`
54+
--
55+
56+
CREATE TABLE `issuebooks` (
57+
`id` int(11) NOT NULL,
58+
`bookSSN` varchar(50) NOT NULL,
59+
`studentid` int(11) NOT NULL,
60+
`studentname` varchar(50) NOT NULL,
61+
`studentcontact` varchar(20) NOT NULL,
62+
`issueddate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
63+
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
64+
65+
-- --------------------------------------------------------
66+
67+
--
68+
-- Table structure for table `librarian`
69+
--
70+
71+
CREATE TABLE `librarian` (
72+
`id` int(5) NOT NULL,
73+
`name` varchar(100) NOT NULL,
74+
`password` varchar(100) NOT NULL,
75+
`email` varchar(100) NOT NULL,
76+
`address` varchar(200) NOT NULL,
77+
`city` varchar(100) NOT NULL,
78+
`contact` varchar(20) NOT NULL
79+
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
80+
81+
--
82+
-- Dumping data for table `librarian`
83+
--
84+
85+
INSERT INTO `librarian` (`id`, `name`, `password`, `email`, `address`, `city`, `contact`) VALUES
86+
(1, 'Tridev', 'tridev007', 'palp5666@gmail.com', 'mosque road', 'Rose belle', '57572050'),
87+
(2, 'Sesh', '7894568', 'sobrunsesh@gmail.com', 'Valley des pret', 'Port louis', '58176045');
88+
89+
--
90+
-- Indexes for dumped tables
91+
--
92+
93+
--
94+
-- Indexes for table `books`
95+
--
96+
ALTER TABLE `books`
97+
ADD PRIMARY KEY (`id`),
98+
ADD UNIQUE KEY `callno` (`SSN`),
99+
ADD UNIQUE KEY `callno_2` (`SSN`);
100+
101+
--
102+
-- Indexes for table `issuebooks`
103+
--
104+
ALTER TABLE `issuebooks`
105+
ADD PRIMARY KEY (`id`);
106+
107+
--
108+
-- Indexes for table `librarian`
109+
--
110+
ALTER TABLE `librarian`
111+
ADD PRIMARY KEY (`id`);
112+
113+
--
114+
-- AUTO_INCREMENT for dumped tables
115+
--
116+
117+
--
118+
-- AUTO_INCREMENT for table `books`
119+
--
120+
ALTER TABLE `books`
121+
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
122+
123+
--
124+
-- AUTO_INCREMENT for table `issuebooks`
125+
--
126+
ALTER TABLE `issuebooks`
127+
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
128+
129+
--
130+
-- AUTO_INCREMENT for table `librarian`
131+
--
132+
ALTER TABLE `librarian`
133+
MODIFY `id` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
134+
COMMIT;
135+
136+
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
137+
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
138+
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;

bin/database_access/BookDao.class

1.43 KB
Binary file not shown.
2.47 KB
Binary file not shown.
2.26 KB
Binary file not shown.
2.01 KB
Binary file not shown.

bin/projectFiles/AdminLogin$1.class

785 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)