]> git.mxchange.org Git - jaddressbook-core.git/commitdiff
Need to change java.util.Calendar (bye bye) to java.util.Date.
authorRoland Häder <roland@mxchange.org>
Fri, 22 Sep 2017 21:42:32 +0000 (23:42 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 22 Sep 2017 21:43:58 +0000 (23:43 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/jaddressbook/model/addressbook/Addressbook.java
src/org/mxchange/jaddressbook/model/addressbook/UserAddressbook.java
src/org/mxchange/jaddressbook/model/addressbook/entry/AddressbookEntry.java
src/org/mxchange/jaddressbook/model/addressbook/entry/UserAddressbookEntry.java

index 55cb02b3f4e2d5624026e5ef8d69f0208d3942b7..fd47eac6235401109d88b9874be5f97c7fbc94e3 100644 (file)
@@ -17,7 +17,7 @@
 package org.mxchange.jaddressbook.model.addressbook;
 
 import java.io.Serializable;
-import java.util.Calendar;
+import java.util.Date;
 import org.mxchange.jaddressbook.model.addressbook.status.AddressbokStatus;
 import org.mxchange.jusercore.model.user.User;
 
@@ -47,14 +47,14 @@ public interface Addressbook extends Serializable {
         * <p>
         * @return Addressbook creation timestamp
         */
-       Calendar getAddressbookCreated ();
+       Date getAddressbookCreated ();
 
        /**
         * Setter for addressbook creation timestamp
         * <p>
         * @param addressbookCreated Addressbook creation timestamp
         */
-       void setAddressbookCreated (final Calendar addressbookCreated);
+       void setAddressbookCreated (final Date addressbookCreated);
 
        /**
         * Getter for addressbook's name
@@ -103,14 +103,14 @@ public interface Addressbook extends Serializable {
         * <p>
         * @return Last locked timestamp
         */
-       Calendar getAddressbookLastLocked ();
+       Date getAddressbookLastLocked ();
 
        /**
         * Setter for last locked timestamp
         * <p>
         * @param addressbookLastLocked Last locked timestamp
         */
-       void setAddressbookLastLocked (final Calendar addressbookLastLocked);
+       void setAddressbookLastLocked (final Date addressbookLastLocked);
 
        /**
         * Getter for last locked reason
index a842d4c121e6a8b67f04ff4b13fd11a26112bbee..efbfcc22bc89f9cf61d6d1081a6c5eea36e64f63 100644 (file)
@@ -16,7 +16,7 @@
  */
 package org.mxchange.jaddressbook.model.addressbook;
 
-import java.util.Calendar;
+import java.util.Date;
 import java.util.Objects;
 import javax.persistence.Basic;
 import javax.persistence.CascadeType;
@@ -69,7 +69,7 @@ public class UserAddressbook implements Addressbook {
        @Basic (optional = false)
        @Temporal (value = TemporalType.TIMESTAMP)
        @Column (name = "addressbook_created", nullable = false, updatable = false)
-       private Calendar addressbookCreated;
+       private Date addressbookCreated;
 
        /**
         * Id number
@@ -84,7 +84,7 @@ public class UserAddressbook implements Addressbook {
         */
        @Temporal (TemporalType.TIMESTAMP)
        @Column (name = "addressbook_last_locked")
-       private Calendar addressbookLastLocked;
+       private Date addressbookLastLocked;
 
        /**
         * Last locked timestamp
@@ -166,12 +166,12 @@ public class UserAddressbook implements Addressbook {
        }
 
        @Override
-       public Calendar getAddressbookCreated () {
+       public Date getAddressbookCreated () {
                return this.addressbookCreated;
        }
 
        @Override
-       public void setAddressbookCreated (final Calendar addressbookCreated) {
+       public void setAddressbookCreated (final Date addressbookCreated) {
                this.addressbookCreated = addressbookCreated;
        }
 
@@ -186,12 +186,12 @@ public class UserAddressbook implements Addressbook {
        }
 
        @Override
-       public Calendar getAddressbookLastLocked () {
+       public Date getAddressbookLastLocked () {
                return this.addressbookLastLocked;
        }
 
        @Override
-       public void setAddressbookLastLocked (final Calendar addressbookLastLocked) {
+       public void setAddressbookLastLocked (final Date addressbookLastLocked) {
                this.addressbookLastLocked = addressbookLastLocked;
        }
 
index 77e083d20fb0f5abcce9265d7b4a1d7818d12610..7db2136279b5026f31892011daefc7c431fd2715 100644 (file)
@@ -17,7 +17,7 @@
 package org.mxchange.jaddressbook.model.addressbook.entry;
 
 import java.io.Serializable;
-import java.util.Calendar;
+import java.util.Date;
 import org.mxchange.jaddressbook.model.addressbook.Addressbook;
 import org.mxchange.jcontacts.model.contact.Contact;
 import org.mxchange.jcontactsbusiness.model.basicdata.BusinessBasicData;
@@ -62,14 +62,14 @@ public interface AddressbookEntry extends Serializable {
         * <p>
         * @return Entry created timestamp
         */
-       Calendar getAddressbookEntryCreated ();
+       Date getAddressbookEntryCreated ();
 
        /**
         * Setter for entry created timestamp
         * <p>
         * @param addressbookEntryCreated Entry created timestamp
         */
-       void setAddressbookEntryCreated (final Calendar addressbookEntryCreated);
+       void setAddressbookEntryCreated (final Date addressbookEntryCreated);
 
        /**
         * Getter for private contact
index 477a2957030758af9ffe582ce387726241ac135c..885929f35a3e1286bf6fd292439ae4fba30e1707 100644 (file)
@@ -16,7 +16,7 @@
  */
 package org.mxchange.jaddressbook.model.addressbook.entry;
 
-import java.util.Calendar;
+import java.util.Date;
 import java.util.Objects;
 import javax.persistence.Basic;
 import javax.persistence.CascadeType;
@@ -74,7 +74,7 @@ public class UserAddressbookEntry implements AddressbookEntry {
        @Basic (optional = false)
        @Temporal (TemporalType.TIMESTAMP)
        @Column (name = "entry_created", nullable = false, updatable = false)
-       private Calendar addressbookEntryCreated;
+       private Date addressbookEntryCreated;
 
        /**
         * Id number
@@ -142,13 +142,13 @@ public class UserAddressbookEntry implements AddressbookEntry {
 
        @Override
        @SuppressWarnings ("ReturnOfDateField")
-       public Calendar getAddressbookEntryCreated () {
+       public Date getAddressbookEntryCreated () {
                return this.addressbookEntryCreated;
        }
 
        @Override
        @SuppressWarnings ("AssignmentToDateFieldFromParameter")
-       public void setAddressbookEntryCreated (final Calendar addressbookEntryCreated) {
+       public void setAddressbookEntryCreated (final Date addressbookEntryCreated) {
                this.addressbookEntryCreated = addressbookEntryCreated;
        }