Skip to content

Commit b535787

Browse files
Program release
1 parent 53649df commit b535787

File tree

12 files changed

+1642
-205
lines changed

12 files changed

+1642
-205
lines changed

.gitignore

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
.metadata
2+
bin/
3+
tmp/
4+
*.tmp
5+
*.bak
6+
*.swp
7+
*~.nib
8+
local.properties
9+
.settings/
10+
.loadpath
11+
.recommenders
12+
13+
# External tool builders
14+
.externalToolBuilders/
15+
16+
# Locally stored "Eclipse launch configurations"
17+
*.launch
18+
19+
# PyDev specific (Python IDE for Eclipse)
20+
*.pydevproject
21+
22+
# CDT-specific (C/C++ Development Tooling)
23+
.cproject
24+
25+
# CDT- autotools
26+
.autotools
27+
28+
# Java annotation processor (APT)
29+
.factorypath
30+
31+
# PDT-specific (PHP Development Tools)
32+
.buildpath
33+
34+
# sbteclipse plugin
35+
.target
36+
37+
# Tern plugin
38+
.tern-project
39+
40+
# TeXlipse plugin
41+
.texlipse
42+
43+
# STS (Spring Tool Suite)
44+
.springBeans
45+
46+
# Code Recommenders
47+
.recommenders/
48+
49+
# Annotation Processing
50+
.apt_generated/
51+
.apt_generated_test/
52+
53+
# Scala IDE specific (Scala & Java development for Eclipse)
54+
.cache-main
55+
.scala_dependencies
56+
.worksheet
57+
58+
.project
59+
.classpath

LICENSE

Lines changed: 167 additions & 204 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,31 @@
11
# Java-Certificate-Database
2-
Simple database alike program for storing and managing rows with certificate informations.
2+
3+
Simple database alike program for storing and managing rows with certificates informations.
4+
5+
### Notes
6+
7+
Program uses binary files for storing data. Indexes are build with use of serializable TreeMaps (self-balancing Red Black Trees). Each tree stores corresponding keys and lists of positions of records in "db.bin" main file.
8+
9+
---
10+
11+
### Technologies
12+
13+
- JavaSE-17
14+
15+
---
16+
17+
### Features
18+
19+
- [x] Expiring certificates warning (2 months period)
20+
- [x] Auto update of certificate status to "expired"
21+
- [x] Adding new rows
22+
- [x] Listing all rows
23+
- [x] Searching by attribute
24+
- [x] Importing and exporting CSV file
25+
- [x] Editing data
26+
27+
---
28+
29+
### Program preview
30+
31+
![Java certificate database program preview](/images/program-preview.png)

db/.gitignore

Whitespace-only changes.

db/indexes/.gitignore

Whitespace-only changes.

file.csv

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Name,Surname,Certificate expiration date,Card number,Card type,Contract number,Certificate serial number,Telephone,Email,Status,Note
2+
Fahad,Flores,18.01.2023 15:30:00,7281925201928392,physical,9827,===6FC0938=uuehyhkwakikdcskqxprrfppuwdodaabiwyytzzgooajfetfiznvcuwexahopbru=96E94AF34432===,+48 123123123,fahad@mail.com,renewed,-
3+
Zackary,Church,31.05.2023 12:15:00,9827123982751827,virtual,76271,===6FC0938=vllpvuleknzmbxqlgncqajottwyjyhnnkwtenblzzuergcyxevqevffeovbueomf=96E94AF34432===,+48 123123123,zackary@mail.com,proforma sent,-
4+
Marina,Cotton,20.04.2025 18:30:00,5628376598324565,other,65983,===6FC0938=certhosuewfrozepkchpyvbdcmqkgpodwvivbrvtpyvuybhxaqlaxwdiqqbbrcdg=96E94AF34432===,+48 123123123,marina@mail.com,renewed,-
5+
Kathryn,Patton,26.05.2035 15:00:00,5698324589652178,other,9835,===6FC0938=hkoyxxydyarhcgylztignuexglsojafspiqhqdwnpqhdsusrghbalyiewryqqgva=96E94AF34432===,+48 123123123,kathryn@mail.com,paid,-
6+
Uzair,Cobb,12.10.2022 12:25:00,5948235914193859,physical,3596,===6FC0938=jbpwvcnuhqlqlaitvjksnzweltgaqmzqdpmyolggcqqaupcbzhxvwvyygcacgygd=96E94AF34432===,+48 123123123,uzair@mail.com,paid,-
7+
Christopher,Charles,03.02.2023 12:00:00,9865482659281937,virtual,3987,===6FC0938=fasxngpkfnwqxwejuikjedyktdfbitcmphnqhyafebsgavhcubjquiadsfeogzme=96E94AF34432===,+48 123123123,christopher@mail.com,paid,-
8+
Sion,Rosales,29.01.2023 12:30:00,1968493598626475,other,6985,===6FC0938=ziobncdychbcdaqepnoughdkdhewgyphcaxbjupmesdhllpswhqoezvbwqgypzmv=96E94AF34432===,+48 123123123,sion@mail.com,new,Test note.
9+
Grace,Gonzales,23.09.2027 14:15:00,6958473625141346,other,59326,===6FC0938=rcgygsvisyfsyvapmxbqpvauvrqrmrblencjyayuvycyjuhewgsouskbiblzueqe=96E94AF34432===,+48 123123123,grace@mail.com,other,-
10+
Lucian,Powers,28.12.2031 12:25:00,1759368459687532,physical,2584,===6FC0938=lmqzpizzvqhzyavjktgexlamydwxcxkmjlhycdnneksznklkvzcmnpkhhvnxkoay=96E94AF34432===,+48 123123123,lucian@mail.com,paid,-
11+
Abdullah,Glover,29.08.2022 15:00:00,1649764315286915,physical,19684,===6FC0938=dscliehqhadhpufpsgowdfzxzbdydjxjnmxrpmkyqgiyaovisfhargfvdjfsqvug=96E94AF34432===,+48 123123123,abdullah@mail.com,renewed,-

images/program-preview.png

231 KB
Loading

src/backend/CustomComparator.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package backend;
2+
3+
import java.io.Serializable;
4+
import java.util.Comparator;
5+
6+
public class CustomComparator <T extends Object & Comparable<T>> implements Comparator<T>, Serializable {
7+
8+
@Override
9+
public int compare(T o1, T o2) {
10+
return o1.compareTo(o2);
11+
}
12+
13+
}

0 commit comments

Comments
 (0)