private Long providerId;
/**
- * Regular expression for mail gateway
+ * Pattern for mail gateway
*/
- @Column (name = "provider_mail_regex", length = 30)
- private String providerMailRegex;
+ @Column (name = "provider_mail_pattern", length = 30)
+ private String providerMailPattern;
/**
* Name of the provider
@Column (name = "provider_name", length = 30, nullable = false)
private String providerName;
+ /**
+ * Default constructor
+ */
+ public CellphoneProvider () {
+ }
+
/**
* Constructor with all required data
* <p>
- * @param providerDialPrefix Dial prefix
- * @param providerName Name
- * @param providerCountry Country
+ * @param providerDialPrefix Dial prefix
+ * @param providerName Name
+ * @param providerCountry Country
+ * @param providerMailPattern Pattern for email
*/
- public CellphoneProvider (final Long providerDialPrefix, final String providerName, final Country providerCountry) {
+ public CellphoneProvider (final Long providerDialPrefix, final String providerName, final Country providerCountry, final String providerMailPattern) {
// Call default constructor
this();
this.providerDialPrefix = providerDialPrefix;
this.providerName = providerName;
this.providerCountry = providerCountry;
- }
-
- /**
- * Default constructor
- */
- public CellphoneProvider () {
+ this.providerMailPattern = providerMailPattern;
}
@Override
}
@Override
- public String getProviderMailRegex () {
- return this.providerMailRegex;
+ public String getProviderMailPattern () {
+ return this.providerMailPattern;
}
@Override
- public void setProviderMailRegex (final String providerMailRegex) {
- this.providerMailRegex = providerMailRegex;
+ public void setProviderMailPattern (final String providerMailPattern) {
+ this.providerMailPattern = providerMailPattern;
}
}
void setProviderEntryCreated (final Calendar providerEntryCreated);
/**
- * Getter for regular expression for mail gateway
+ * Getter for pattern for mail gateway
* <p>
- * @return Regular expression for mail gateway
+ * @return Pattern for mail gateway
*/
- String getProviderMailRegex ();
+ String getProviderMailPattern ();
/**
- * Setter for regular expression for mail gateway
+ * Setter for pattern for mail gateway
* <p>
- * @param providerMailRegex Regular expression for mail gateway
+ * @param providerMailRegex Pattern for mail gateway
*/
- void setProviderMailRegex (final String providerMailRegex);
+ void setProviderMailPattern (final String providerMailRegex);
@Override
boolean equals (final Object object);