From 64be91aa6d187e29201c82b75171c8dd6b440679 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 22 Sep 2017 23:58:26 +0200 Subject: [PATCH] Continued: - need to change java.util.Calendar (bye bye) to java.util.Date in favour of PrimeFaces' p:calendar [!] tag MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../jphone/model/phonenumbers/DialableNumber.java | 10 +++++----- .../jphone/model/phonenumbers/fax/FaxNumber.java | 14 +++++++------- .../phonenumbers/landline/LandLineNumber.java | 14 +++++++------- .../model/phonenumbers/mobile/MobileNumber.java | 14 +++++++------- .../mobileprovider/CellphoneProvider.java | 8 ++++---- .../mobileprovider/MobileProvider.java | 6 +++--- 6 files changed, 33 insertions(+), 33 deletions(-) diff --git a/src/org/mxchange/jphone/model/phonenumbers/DialableNumber.java b/src/org/mxchange/jphone/model/phonenumbers/DialableNumber.java index 7fea4a8..4cdd1e5 100644 --- a/src/org/mxchange/jphone/model/phonenumbers/DialableNumber.java +++ b/src/org/mxchange/jphone/model/phonenumbers/DialableNumber.java @@ -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 { *

* @return Timestamp when this entry has been created */ - Calendar getPhoneEntryCreated (); + Date getPhoneEntryCreated (); /** * Setter for timestamp when this entry has been created *

* @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 *

* @return Timestamp when this entry has been updated */ - Calendar getPhoneEntryUpdated (); + Date getPhoneEntryUpdated (); /** * Setter for timestamp when this entry has been updated *

* @param phoneEntryUpdated Timestamp when this entry has been updated */ - void setPhoneEntryUpdated (final Calendar phoneEntryUpdated); + void setPhoneEntryUpdated (final Date phoneEntryUpdated); } diff --git a/src/org/mxchange/jphone/model/phonenumbers/fax/FaxNumber.java b/src/org/mxchange/jphone/model/phonenumbers/fax/FaxNumber.java index d189e89..5dd3752 100644 --- a/src/org/mxchange/jphone/model/phonenumbers/fax/FaxNumber.java +++ b/src/org/mxchange/jphone/model/phonenumbers/fax/FaxNumber.java @@ -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; } diff --git a/src/org/mxchange/jphone/model/phonenumbers/landline/LandLineNumber.java b/src/org/mxchange/jphone/model/phonenumbers/landline/LandLineNumber.java index 40f7117..2a9f697 100644 --- a/src/org/mxchange/jphone/model/phonenumbers/landline/LandLineNumber.java +++ b/src/org/mxchange/jphone/model/phonenumbers/landline/LandLineNumber.java @@ -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; } diff --git a/src/org/mxchange/jphone/model/phonenumbers/mobile/MobileNumber.java b/src/org/mxchange/jphone/model/phonenumbers/mobile/MobileNumber.java index e8ca760..8585c82 100644 --- a/src/org/mxchange/jphone/model/phonenumbers/mobile/MobileNumber.java +++ b/src/org/mxchange/jphone/model/phonenumbers/mobile/MobileNumber.java @@ -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; } diff --git a/src/org/mxchange/jphone/model/phonenumbers/mobileprovider/CellphoneProvider.java b/src/org/mxchange/jphone/model/phonenumbers/mobileprovider/CellphoneProvider.java index 7759610..ab39a7b 100644 --- a/src/org/mxchange/jphone/model/phonenumbers/mobileprovider/CellphoneProvider.java +++ b/src/org/mxchange/jphone/model/phonenumbers/mobileprovider/CellphoneProvider.java @@ -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; } diff --git a/src/org/mxchange/jphone/model/phonenumbers/mobileprovider/MobileProvider.java b/src/org/mxchange/jphone/model/phonenumbers/mobileprovider/MobileProvider.java index 6b7a775..6a6f24d 100644 --- a/src/org/mxchange/jphone/model/phonenumbers/mobileprovider/MobileProvider.java +++ b/src/org/mxchange/jphone/model/phonenumbers/mobileprovider/MobileProvider.java @@ -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 { *

* @return Timestamp when this entry has been created */ - Calendar getProviderEntryCreated (); + Date getProviderEntryCreated (); /** * Setter for timestamp when this entry has been created *

* @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 -- 2.39.5