aboutsummaryrefslogtreecommitdiff
path: root/DocumentService/src/eu/stork/documentservice/data/DatabaseHelper.java
diff options
context:
space:
mode:
authorThomas Lenz <tlenz@iaik.tugraz.at>2016-02-17 07:00:09 +0100
committerThomas Lenz <tlenz@iaik.tugraz.at>2016-02-17 07:00:09 +0100
commit07c6114a266a67abd404bac8703c1a17e035d69d (patch)
tree893d8a4873566b2bf3d4dc8d35d02e636a9d38cd /DocumentService/src/eu/stork/documentservice/data/DatabaseHelper.java
parent274a85e53fa8c06a869f2bb3a7bd24300ee9b3fd (diff)
downloadmoa-id-spss-07c6114a266a67abd404bac8703c1a17e035d69d.tar.gz
moa-id-spss-07c6114a266a67abd404bac8703c1a17e035d69d.tar.bz2
moa-id-spss-07c6114a266a67abd404bac8703c1a17e035d69d.zip
remove STORK code --> MOA-ID >= 3.2 only supports eIDAS protocol
Diffstat (limited to 'DocumentService/src/eu/stork/documentservice/data/DatabaseHelper.java')
-rw-r--r--DocumentService/src/eu/stork/documentservice/data/DatabaseHelper.java37
1 files changed, 0 insertions, 37 deletions
diff --git a/DocumentService/src/eu/stork/documentservice/data/DatabaseHelper.java b/DocumentService/src/eu/stork/documentservice/data/DatabaseHelper.java
deleted file mode 100644
index 07c25aeba..000000000
--- a/DocumentService/src/eu/stork/documentservice/data/DatabaseHelper.java
+++ /dev/null
@@ -1,37 +0,0 @@
-package eu.stork.documentservice.data;
-
-public class DatabaseHelper {
- /**
- * Get the current timestamp in SQL timestamp
- * @return the current time in sql timestamp
- */
- public static java.sql.Timestamp getSqlCurrentDate() {
- java.util.Date today = new java.util.Date();
- return new java.sql.Timestamp(today.getTime());
- }
-
- /**
- * Convert Java Date to SQL timestamp
- * @param date the date to convert
- * @return the date in sql timestamp
- */
- public static java.sql.Timestamp getSqlDate(java.util.Date date) {
- if (date != null)
- return new java.sql.Timestamp(date.getTime());
- else
- return null;
- }
-
- /**
- * Convert SQL timestamp to Java Date
- * @param time the timestamp to concert
- * @return the time in util date
- */
- public static java.util.Date getUtilDate(java.sql.Timestamp time) {
- if (time != null)
- return new java.util.Date(time.getTime());
- else
- return null;
- }
-
-}