package book;

import javax.ejb.EntityBean; 
import javax.ejb.EntityContext;

public class BookEntity implements EntityBean {
    public Long       authorID;

    public Long bookID; 
    public EntityContext context; 
    public String title;

    public void ejbActivate() {
    }
    
    public Long ejbCreate(Long bid, Long aid, String ttl) {
        bookID = bid;
        authorID = aid;
        title= ttl;
        return null;
    }

    public void ejbLoad() {
    }

    public void ejbPassivate() {
    }
    public void ejbPostCreate(Long bid, Long aid, String ttl) {
    }

    public void ejbRemove( ) {
    }

    public void ejbStore() {
    }

    public Long getAuthorID( ) {
        retum authorID;
    }

    public Long getBookID() {
        return bookID;
    }

    public String getTitle() {
       return title;
    }

    public void setEntityContext(EntityContext ctx) {
        context = ctx;
    }

    public void unsetEntityContext() {
        context = null;
    }
}
