WebLogic Server 6.1 Code Examples, BEA Systems, Inc.

examples.ejb20.bands
Class MusicLibraryBean

java.lang.Object
  |
  +--examples.ejb20.bands.MusicLibraryBean
All Implemented Interfaces:
javax.ejb.EnterpriseBean, java.io.Serializable, javax.ejb.SessionBean

public class MusicLibraryBean
extends java.lang.Object
implements javax.ejb.SessionBean


Constructor Summary
MusicLibraryBean()
           
 
Method Summary
 void addBand(BandInfo bandInfo)
           
 void addBands(java.util.Collection bandInfos)
           
 void addRecording(RecordingInfo recInfo)
           
 void addRecording(java.lang.String title, java.lang.String band, java.lang.String founder, java.sql.Date recDate)
           
 void addRecordings(java.util.Collection recInfos)
           
 void ejbActivate()
           
 void ejbCreate()
           
 void ejbPassivate()
           
 void ejbRemove()
           
 java.util.Set getAfterDateExcludeBand(java.sql.Date date, BandPK badBandPK)
           
 java.util.Collection getBands()
           
 java.util.Collection getRecordings(BandPK bandPK)
           
 java.util.Collection getRecordingsNotByBand(BandPK badBandPK)
           
 java.lang.String getWriteUpForBand(BandInfo bandInfo)
           
 void removeBand(BandInfo bandInfo)
           
 void removeBand(BandPK bandPK)
           
 void removeBands(java.util.Collection bandInfos)
           
 void removeBandsByPK(java.util.Collection bandPKs)
           
 void removeBandsThatExist(java.util.Collection bandInfos)
           
 void removeRecording(RecordingInfo recInfo)
           
 void removeRecording(RecordingPK recPK)
           
 void removeRecording(java.lang.String title, java.lang.String band, java.lang.String founder)
           
 void removeRecordings(java.util.Collection recInfos)
           
 void removeRecordingsByPK(java.util.Collection recPKs)
           
 void removeRecordingsThatExist(java.util.Collection recInfos)
           
 void setSessionContext(javax.ejb.SessionContext c)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MusicLibraryBean

public MusicLibraryBean()
Method Detail

addBand

public void addBand(BandInfo bandInfo)

addBands

public void addBands(java.util.Collection bandInfos)

addRecording

public void addRecording(RecordingInfo recInfo)

addRecording

public void addRecording(java.lang.String title,
                         java.lang.String band,
                         java.lang.String founder,
                         java.sql.Date recDate)

addRecordings

public void addRecordings(java.util.Collection recInfos)

ejbActivate

public void ejbActivate()
Specified by:
ejbActivate in interface javax.ejb.SessionBean

ejbCreate

public void ejbCreate()

ejbPassivate

public void ejbPassivate()
Specified by:
ejbPassivate in interface javax.ejb.SessionBean

ejbRemove

public void ejbRemove()
Specified by:
ejbRemove in interface javax.ejb.SessionBean

getAfterDateExcludeBand

public java.util.Set getAfterDateExcludeBand(java.sql.Date date,
                                             BandPK badBandPK)

getBands

public java.util.Collection getBands()

getRecordings

public java.util.Collection getRecordings(BandPK bandPK)

getRecordingsNotByBand

public java.util.Collection getRecordingsNotByBand(BandPK badBandPK)

getWriteUpForBand

public java.lang.String getWriteUpForBand(BandInfo bandInfo)

removeBand

public void removeBand(BandInfo bandInfo)

removeBand

public void removeBand(BandPK bandPK)

removeBands

public void removeBands(java.util.Collection bandInfos)

removeBandsByPK

public void removeBandsByPK(java.util.Collection bandPKs)

removeBandsThatExist

public void removeBandsThatExist(java.util.Collection bandInfos)

removeRecording

public void removeRecording(RecordingInfo recInfo)

removeRecording

public void removeRecording(RecordingPK recPK)

removeRecording

public void removeRecording(java.lang.String title,
                            java.lang.String band,
                            java.lang.String founder)

removeRecordings

public void removeRecordings(java.util.Collection recInfos)

removeRecordingsByPK

public void removeRecordingsByPK(java.util.Collection recPKs)

removeRecordingsThatExist

public void removeRecordingsThatExist(java.util.Collection recInfos)

setSessionContext

public void setSessionContext(javax.ejb.SessionContext c)
Specified by:
setSessionContext in interface javax.ejb.SessionBean

Documentation is available at
http://e-docs.bea.com/wls/docs61

Copyright © 2001 BEA Systems, Inc. All Rights Reserved.