com.primix.vlib.ejb.impl
Class BookBean

java.lang.Object
  |
  +--com.primix.vlib.ejb.impl.AbstractEntityBean
        |
        +--com.primix.vlib.ejb.impl.BookBean
All Implemented Interfaces:
EnterpriseBean, EntityBean, java.io.Serializable

public class BookBean
extends AbstractEntityBean

Implementation of the Book entity.

We're using container managed persistance.

Version:
$Id: BookBean.java,v 1.2 2001/08/27 22:19:12 hship Exp $
Author:
Howard Ship
See Also:
IBook, IBookHome, Serialized Form

Field Summary
 java.lang.String author
           
 java.lang.Integer bookId
           
 java.sql.Timestamp dateAdded
           
 java.lang.String description
           
 boolean hidden
           
 java.lang.Integer holderPK
           
 java.lang.String ISBN
           
 boolean lendable
           
 java.lang.Integer ownerPK
           
 java.lang.Integer publisherPK
           
 int rating
           
 java.lang.String title
           
 
Fields inherited from class com.primix.vlib.ejb.impl.AbstractEntityBean
context, dirty
 
Constructor Summary
BookBean()
           
 
Method Summary
 java.lang.Integer ejbCreate(java.util.Map attributes)
           
 void ejbLoad()
          Clears the dirty flag.
 void ejbPostCreate(java.util.Map attributes)
           
 void ejbStore()
          Clears the dirty flag.
protected  java.lang.String[] getAttributePropertyNames()
          Implemented in subclasses to provide a list of property names to be included in the entity attributes map.
 java.lang.String getAuthor()
           
 java.sql.Timestamp getDateAdded()
           
 java.lang.String getDescription()
           
 java.lang.Integer getHolderPK()
           
 java.lang.String getISBN()
           
 java.lang.Integer getOwnerPK()
           
 java.lang.Integer getPublisherPK()
           
 java.lang.String getTitle()
           
 boolean isHidden()
           
 boolean isLendable()
           
 void setAuthor(java.lang.String value)
           
 void setDateAdded(java.sql.Timestamp value)
           
 void setDescription(java.lang.String value)
           
 void setHidden(boolean value)
           
 void setHolderPK(java.lang.Integer value)
           
 void setISBN(java.lang.String value)
           
 void setLendable(boolean value)
           
 void setOwnerPK(java.lang.Integer value)
           
 void setPublisherPK(java.lang.Integer value)
           
 void setTitle(java.lang.String value)
           
 
Methods inherited from class com.primix.vlib.ejb.impl.AbstractEntityBean
allocateKey, ejbActivate, ejbPassivate, ejbRemove, getEntityAttributes, getEnvironmentObject, isDirty, setEntityContext, unsetEntityContext, updateEntityAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bookId

public java.lang.Integer bookId

author

public java.lang.String author

title

public java.lang.String title

description

public java.lang.String description

ISBN

public java.lang.String ISBN

rating

public int rating

ownerPK

public java.lang.Integer ownerPK

holderPK

public java.lang.Integer holderPK

publisherPK

public java.lang.Integer publisherPK

hidden

public boolean hidden

lendable

public boolean lendable

dateAdded

public java.sql.Timestamp dateAdded
Constructor Detail

BookBean

public BookBean()
Method Detail

getAttributePropertyNames

protected java.lang.String[] getAttributePropertyNames()
Description copied from class: AbstractEntityBean
Implemented in subclasses to provide a list of property names to be included in the entity attributes map.
Overrides:
getAttributePropertyNames in class AbstractEntityBean

getAuthor

public java.lang.String getAuthor()

setAuthor

public void setAuthor(java.lang.String value)

getDescription

public java.lang.String getDescription()

setDescription

public void setDescription(java.lang.String value)

getISBN

public java.lang.String getISBN()

setISBN

public void setISBN(java.lang.String value)

getTitle

public java.lang.String getTitle()

setTitle

public void setTitle(java.lang.String value)

getHolderPK

public java.lang.Integer getHolderPK()
                              throws java.rmi.RemoteException

setHolderPK

public void setHolderPK(java.lang.Integer value)

getOwnerPK

public java.lang.Integer getOwnerPK()
                             throws java.rmi.RemoteException

setOwnerPK

public void setOwnerPK(java.lang.Integer value)

setPublisherPK

public void setPublisherPK(java.lang.Integer value)

getPublisherPK

public java.lang.Integer getPublisherPK()
                                 throws java.rmi.RemoteException

isHidden

public boolean isHidden()

setHidden

public void setHidden(boolean value)

isLendable

public boolean isLendable()

setLendable

public void setLendable(boolean value)

ejbLoad

public void ejbLoad()
Description copied from class: AbstractEntityBean
Clears the dirty flag. Subclasses may invoke this implementation, or simply do so themselves.
Overrides:
ejbLoad in class AbstractEntityBean

ejbStore

public void ejbStore()
Description copied from class: AbstractEntityBean
Clears the dirty flag. Subclasses may invoke this implementation, or simply do so themselves.
Overrides:
ejbStore in class AbstractEntityBean

getDateAdded

public java.sql.Timestamp getDateAdded()

setDateAdded

public void setDateAdded(java.sql.Timestamp value)

ejbCreate

public java.lang.Integer ejbCreate(java.util.Map attributes)
                            throws java.rmi.RemoteException

ejbPostCreate

public void ejbPostCreate(java.util.Map attributes)