package demo;

/**
 * Generated from demo.StoryBean by vDoclet/EJB
 */
public class StoryBeanSub extends demo.StoryBean {

    //---( Modification )---

    private boolean isModified = false;

    public boolean isModified() {
        return this.isModified;
    }

    protected void makeDirty() {
        this.isModified = true;
    }

    //---( Fields )---

    public long id;
    public java.lang.String author;
    public java.lang.String subject;
    public java.lang.String content;

    //---( Accessors )---

    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();
    }

    //--( Override ejbLoad/ejbStore )---

    public void ejbLoad() {
        super.ejbLoad();
        this.isModified = false;
    }

    public void ejbStore() {
        if (!this.isModified) return;
        super.ejbStore();
    }

}