]> git.mxchange.org Git - jphone-core.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Fri, 22 Sep 2017 21:58:26 +0000 (23:58 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 22 Sep 2017 21:58:26 +0000 (23:58 +0200)
- need to change java.util.Calendar (bye bye) to java.util.Date in favour of
  PrimeFaces' p:calendar [!] tag

Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/jphone/model/phonenumbers/DialableNumber.java
src/org/mxchange/jphone/model/phonenumbers/fax/FaxNumber.java
src/org/mxchange/jphone/model/phonenumbers/landline/LandLineNumber.java
src/org/mxchange/jphone/model/phonenumbers/mobile/MobileNumber.java
src/org/mxchange/jphone/model/phonenumbers/mobileprovider/CellphoneProvider.java
src/org/mxchange/jphone/model/phonenumbers/mobileprovider/MobileProvider.java

index 7fea4a8986c5ab33e8d8c41544fdbcd727b7c0bb..4cdd1e5f94cd7f98ba1f7cb5a50afbe9c1bc9972 100644 (file)
@@ -17,7 +17,7 @@
 package org.mxchange.jphone.model.phonenumbers;
 
 import java.io.Serializable;
-import java.util.Calendar;
+import java.util.Date;
 import org.mxchange.jcountry.model.data.Country;
 
 /**
@@ -88,27 +88,27 @@ public interface DialableNumber extends Serializable {
         * <p>
         * @return Timestamp when this entry has been created
         */
-       Calendar getPhoneEntryCreated ();
+       Date getPhoneEntryCreated ();
 
        /**
         * Setter for timestamp when this entry has been created
         * <p>
         * @param phoneEntryCreated Timestamp when this entry has been created
         */
-       void setPhoneEntryCreated (final Calendar phoneEntryCreated);
+       void setPhoneEntryCreated (final Date phoneEntryCreated);
 
        /**
         * Getter for timestamp when this entry has been updated
         * <p>
         * @return Timestamp when this entry has been updated
         */
-       Calendar getPhoneEntryUpdated ();
+       Date getPhoneEntryUpdated ();
 
        /**
         * Setter for timestamp when this entry has been updated
         * <p>
         * @param phoneEntryUpdated Timestamp when this entry has been updated
         */
-       void setPhoneEntryUpdated (final Calendar phoneEntryUpdated);
+       void setPhoneEntryUpdated (final Date phoneEntryUpdated);
 
 }
index d189e8954c3c18a7a73e20a4eea0840a110c6fe7..5dd3752f27303f943aa7354019eaca57f4184629 100644 (file)
@@ -16,7 +16,7 @@
  */
 package org.mxchange.jphone.model.phonenumbers.fax;
 
-import java.util.Calendar;
+import java.util.Date;
 import java.util.Objects;
 import javax.persistence.Basic;
 import javax.persistence.CascadeType;
@@ -78,14 +78,14 @@ public class FaxNumber implements DialableFaxNumber {
        @Basic (optional = false)
        @Temporal (TemporalType.TIMESTAMP)
        @Column (name = "fax_entry_created", nullable = false, updatable = false)
-       private Calendar phoneEntryCreated;
+       private Date phoneEntryCreated;
 
        /**
         * Timestamp when this entry has been created
         */
        @Temporal (TemporalType.TIMESTAMP)
        @Column (name = "phone_entry_updated", updatable = false)
-       private Calendar phoneEntryUpdated;
+       private Date phoneEntryUpdated;
 
        /**
         * Id number
@@ -170,25 +170,25 @@ public class FaxNumber implements DialableFaxNumber {
 
        @Override
        @SuppressWarnings ("ReturnOfDateField")
-       public Calendar getPhoneEntryCreated () {
+       public Date getPhoneEntryCreated () {
                return this.phoneEntryCreated;
        }
 
        @Override
        @SuppressWarnings ("AssignmentToDateFieldFromParameter")
-       public void setPhoneEntryCreated (final Calendar phoneEntryCreated) {
+       public void setPhoneEntryCreated (final Date phoneEntryCreated) {
                this.phoneEntryCreated = phoneEntryCreated;
        }
 
        @Override
        @SuppressWarnings ("ReturnOfDateField")
-       public Calendar getPhoneEntryUpdated () {
+       public Date getPhoneEntryUpdated () {
                return this.phoneEntryUpdated;
        }
 
        @Override
        @SuppressWarnings ("AssignmentToDateFieldFromParameter")
-       public void setPhoneEntryUpdated (final Calendar phoneEntryUpdated) {
+       public void setPhoneEntryUpdated (final Date phoneEntryUpdated) {
                this.phoneEntryUpdated = phoneEntryUpdated;
        }
 
index 40f71175850b3f5ebfabdfda1a933d32073d37f5..2a9f697fbaf518f4a7678897c936f7c70a661edb 100644 (file)
@@ -16,7 +16,7 @@
  */
 package org.mxchange.jphone.model.phonenumbers.landline;
 
-import java.util.Calendar;
+import java.util.Date;
 import java.util.Objects;
 import javax.persistence.Basic;
 import javax.persistence.CascadeType;
@@ -78,14 +78,14 @@ public class LandLineNumber implements DialableLandLineNumber {
        @Basic (optional = false)
        @Temporal (TemporalType.TIMESTAMP)
        @Column (name = "landline_entry_created", nullable = false, updatable = false)
-       private Calendar phoneEntryCreated;
+       private Date phoneEntryCreated;
 
        /**
         * Timestamp when this entry has been created
         */
        @Temporal (TemporalType.TIMESTAMP)
        @Column (name = "landline_entry_updated", updatable = false)
-       private Calendar phoneEntryUpdated;
+       private Date phoneEntryUpdated;
 
        /**
         * Id number
@@ -170,25 +170,25 @@ public class LandLineNumber implements DialableLandLineNumber {
 
        @Override
        @SuppressWarnings ("ReturnOfDateField")
-       public Calendar getPhoneEntryCreated () {
+       public Date getPhoneEntryCreated () {
                return this.phoneEntryCreated;
        }
 
        @Override
        @SuppressWarnings ("AssignmentToDateFieldFromParameter")
-       public void setPhoneEntryCreated (final Calendar phoneEntryCreated) {
+       public void setPhoneEntryCreated (final Date phoneEntryCreated) {
                this.phoneEntryCreated = phoneEntryCreated;
        }
 
        @Override
        @SuppressWarnings ("ReturnOfDateField")
-       public Calendar getPhoneEntryUpdated () {
+       public Date getPhoneEntryUpdated () {
                return this.phoneEntryUpdated;
        }
 
        @Override
        @SuppressWarnings ("AssignmentToDateFieldFromParameter")
-       public void setPhoneEntryUpdated (final Calendar phoneEntryUpdated) {
+       public void setPhoneEntryUpdated (final Date phoneEntryUpdated) {
                this.phoneEntryUpdated = phoneEntryUpdated;
        }
 
index e8ca760b8de3f4175c0ed62cac3cb1f57e52773a..8585c82a837661e7a6a44dee9deede08f02aea6e 100644 (file)
@@ -16,7 +16,7 @@
  */
 package org.mxchange.jphone.model.phonenumbers.mobile;
 
-import java.util.Calendar;
+import java.util.Date;
 import java.util.Objects;
 import javax.persistence.Basic;
 import javax.persistence.CascadeType;
@@ -72,14 +72,14 @@ public class MobileNumber implements DialableMobileNumber {
        @Basic (optional = false)
        @Temporal (TemporalType.TIMESTAMP)
        @Column (name = "mobile_entry_created", nullable = false, updatable = false)
-       private Calendar phoneEntryCreated;
+       private Date phoneEntryCreated;
 
        /**
         * Timestamp when this entry has been created
         */
        @Temporal (TemporalType.TIMESTAMP)
        @Column (name = "mobile_entry_updated", updatable = false)
-       private Calendar phoneEntryUpdated;
+       private Date phoneEntryUpdated;
 
        /**
         * Id number
@@ -174,25 +174,25 @@ public class MobileNumber implements DialableMobileNumber {
 
        @Override
        @SuppressWarnings ("ReturnOfDateField")
-       public Calendar getPhoneEntryCreated () {
+       public Date getPhoneEntryCreated () {
                return this.phoneEntryCreated;
        }
 
        @Override
        @SuppressWarnings ("AssignmentToDateFieldFromParameter")
-       public void setPhoneEntryCreated (final Calendar phoneEntryCreated) {
+       public void setPhoneEntryCreated (final Date phoneEntryCreated) {
                this.phoneEntryCreated = phoneEntryCreated;
        }
 
        @Override
        @SuppressWarnings ("ReturnOfDateField")
-       public Calendar getPhoneEntryUpdated () {
+       public Date getPhoneEntryUpdated () {
                return this.phoneEntryUpdated;
        }
 
        @Override
        @SuppressWarnings ("AssignmentToDateFieldFromParameter")
-       public void setPhoneEntryUpdated (final Calendar phoneEntryUpdated) {
+       public void setPhoneEntryUpdated (final Date phoneEntryUpdated) {
                this.phoneEntryUpdated = phoneEntryUpdated;
        }
 
index 7759610d987ade62e2946c4fad847ac9d14f9928..ab39a7b821dbcecd57895d23119f40a938db0355 100644 (file)
@@ -16,7 +16,7 @@
  */
 package org.mxchange.jphone.model.phonenumbers.mobileprovider;
 
-import java.util.Calendar;
+import java.util.Date;
 import java.util.Objects;
 import javax.persistence.Basic;
 import javax.persistence.CascadeType;
@@ -75,7 +75,7 @@ public class CellphoneProvider implements MobileProvider {
        @Basic (optional = false)
        @Temporal (TemporalType.TIMESTAMP)
        @Column (name = "provider_entry_created", nullable = false, updatable = false)
-       private Calendar providerEntryCreated;
+       private Date providerEntryCreated;
 
        /**
         * Id number
@@ -175,13 +175,13 @@ public class CellphoneProvider implements MobileProvider {
 
        @Override
        @SuppressWarnings ("ReturnOfDateField")
-       public Calendar getProviderEntryCreated () {
+       public Date getProviderEntryCreated () {
                return this.providerEntryCreated;
        }
 
        @Override
        @SuppressWarnings ("AssignmentToDateFieldFromParameter")
-       public void setProviderEntryCreated (final Calendar providerEntryCreated) {
+       public void setProviderEntryCreated (final Date providerEntryCreated) {
                this.providerEntryCreated = providerEntryCreated;
        }
 
index 6b7a775ec136eeef2af267b31353a65b71fa1925..6a6f24d30684c2f69e80b665be1dc96aaef7dcc0 100644 (file)
@@ -17,7 +17,7 @@
 package org.mxchange.jphone.model.phonenumbers.mobileprovider;
 
 import java.io.Serializable;
-import java.util.Calendar;
+import java.util.Date;
 import org.mxchange.jcountry.model.data.Country;
 
 /**
@@ -88,14 +88,14 @@ public interface MobileProvider extends Serializable {
         * <p>
         * @return Timestamp when this entry has been created
         */
-       Calendar getProviderEntryCreated ();
+       Date getProviderEntryCreated ();
 
        /**
         * Setter for timestamp when this entry has been created
         * <p>
         * @param providerEntryCreated Timestamp when this entry has been created
         */
-       void setProviderEntryCreated (final Calendar providerEntryCreated);
+       void setProviderEntryCreated (final Date providerEntryCreated);
 
        /**
         * Getter for pattern for mail gateway