User: janaudy
Date: 00/05/22 09:58:03
Modified: webstore/src/org/jboss/zol/webstore/ejbs/person
PersonEntityBean.java
Log:
Revision Changes Path
1.2 +19 -1
zola/webstore/src/org/jboss/zol/webstore/ejbs/person/PersonEntityBean.java
Index: PersonEntityBean.java
===================================================================
RCS file:
/products/cvs/ejboss/zola/webstore/src/org/jboss/zol/webstore/ejbs/person/PersonEntityBean.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- PersonEntityBean.java 2000/05/10 14:32:54 1.1
+++ PersonEntityBean.java 2000/05/22 16:58:03 1.2
@@ -18,7 +18,9 @@
import java.util.Collection;
import java.util.LinkedList;
-public class PersonEntityBean implements EntityBean {
+import org.jboss.zol.webstore.ejbs.common.GenericEntityBean;
+
+public class PersonEntityBean extends GenericEntityBean implements EntityBean {
/**
* PK of this Entity EJB
*/
@@ -225,6 +227,7 @@
*/
public void setPassword(String newPassword) {
this.password = newPassword;
+ this.modified = true;
log(toString(), "setPassword", new Object[] {newPassword}, null);
}
@@ -243,6 +246,7 @@
*/
public void setFirstName(String newFirstName) {
this.firstName = newFirstName;
+ this.modified = true;
log(toString(), "setFirstName", new Object[] {firstName}, null);
}
@@ -261,6 +265,7 @@
*/
public void setLastName(String newLastName) {
this.lastName = newLastName;
+ this.modified = true;
log(toString(), "setLastName", new Object[] {lastName}, null);
}
@@ -279,6 +284,7 @@
*/
public void setVisaCardNumber(String newVisaCardNumber) {
this.visaCardNumber = newVisaCardNumber;
+ this.modified = true;
log(toString(), "setVisaCardNumber", new Object[] {visaCardNumber}, null);
}
@@ -297,6 +303,7 @@
*/
public void setAddress(String newAddress) {
this.address = newAddress;
+ this.modified = true;
log(toString(), "setAddress", new Object[] {address}, null);
}
@@ -315,6 +322,7 @@
*/
public void setStreetNumber(String newStreetNumber) {
this.streetNumber = newStreetNumber;
+ this.modified = true;
log(toString(), "setStreetNumber", new Object[] {streetNumber}, null);
}
@@ -333,6 +341,7 @@
*/
public void setZipCode(String newZipCode) {
this.zipCode = newZipCode;
+ this.modified = true;
log(toString(), "setZipCode", new Object[] {zipCode}, null);
}
@@ -351,6 +360,7 @@
*/
public void setCity(String newCity) {
this.city = newCity;
+ this.modified = true;
log(toString(), "setCity", new Object[] {city}, null);
}
@@ -369,6 +379,7 @@
*/
public void setCountry(String newCountry) {
this.country = newCountry;
+ this.modified = true;
log(toString(), "setCountry", new Object[] {country}, null);
}
@@ -387,6 +398,7 @@
*/
public void setLocale(Locale newLocale) {
this.locale = newLocale;
+ this.modified = true;
log(toString(), "setLocale", new Object[] {newLocale}, null);
}
@@ -535,12 +547,16 @@
}
this.locale = new Locale(this.languageLocale, this.countryLocale);
+ this.modified = false;
}
/**
* Store callback
*/
public void ejbStore() throws RemoteException {
+ if (this.modified == false)
+ return;
+
convertLocaleObjectToLocaleStrings(this.locale);
log(toString(), "ejbStore", new Object[] {}, null);
log("this.locale: "+this.locale);
@@ -588,6 +604,8 @@
ps.close();
} catch (Exception e) {e.printStackTrace();}
}
+
+ this.modified = false;
}
/**