package demo;
public class StoryBeanSub extends demo.StoryBean {
private boolean isModified = false;
public boolean isModified() {
return this.isModified;
}
protected void makeDirty() {
this.isModified = true;
}
public long id;
public java.lang.String author;
public java.lang.String subject;
public java.lang.String content;
public long getId() {
return this.id;
}
public void setId( long id ) {
this.id = id;
makeDirty();
}
public java.lang.String getAuthor() {
return this.author;
}
public void setAuthor( java.lang.String author ) {
this.author = author;
makeDirty();
}
public java.lang.String getSubject() {
return this.subject;
}
public void setSubject( java.lang.String subject ) {
this.subject = subject;
makeDirty();
}
public java.lang.String getContent() {
return this.content;
}
public void setContent( java.lang.String content ) {
this.content = content;
makeDirty();
}
public void ejbLoad() {
super.ejbLoad();
this.isModified = false;
}
public void ejbStore() {
if (!this.isModified) return;
super.ejbStore();
}
}