org.jboss.media.entity
Class MediaEntityBean

java.lang.Object
  extended byorg.jboss.media.entity.MediaEntity (src) 
      extended byorg.jboss.media.entity.MediaEntityBean
All Implemented Interfaces:
EnterpriseBean (src) , EntityBean (src) , java.io.Serializable

public abstract class MediaEntityBean
extends MediaEntity (src)
implements EntityBean (src)

Media Entity Bean implementation based on Entity Beans.

It extends the abstract MediaEntity class, and only declares CMP/CMR methods and implements ejbCreate().

See Also:
Serialized Form

Field Summary
static java.lang.String MEDIA_ENTITY_JNDI
           
 
Constructor Summary
MediaEntityBean()
           
 
Method Summary
 void ejbActivate()
          A container invokes this method when the instance is taken out of the pool of available instances to become associated with a specific EJB object.
 java.lang.String ejbCreate()
           
 void ejbLoad()
          A container invokes this method to instruct the instance to synchronize its state by loading it state from the underlying database.
 void ejbPassivate()
          A container invokes this method on an instance before the instance becomes disassociated with a specific EJB object.
 void ejbPostCreate()
           
 void ejbRemove()
          A container invokes this method before it removes the EJB object that is currently associated with the instance.
 void ejbStore()
          A container invokes this method to instruct the instance to synchronize its state by storing it to the underlying database.
abstract  java.util.Collection getManagedChildren()
           
abstract  byte[] getManagedContent()
           
abstract  java.lang.String getManagedDescription()
           
abstract  java.lang.String getManagedIdentity()
           
abstract  long getManagedLastModified()
           
abstract  java.util.Vector getManagedListeners()
           
abstract  java.lang.String getManagedLocation()
           
abstract  java.util.Collection getManagedMetaDatas()
           
abstract  java.lang.String getManagedMimeType()
           
abstract  java.lang.String getManagedName()
           
abstract  MediaEntityLocal (src) getManagedNextVersion()
           
abstract  java.util.Collection getManagedParents()
           
abstract  MediaEntityLocal (src) getManagedPreviousVersion()
           
abstract  MediaEntityLocal (src) getManagedProxy()
           
 void setEntityContext(EntityContext (src)  entityContext)
          Set the associated entity context.
abstract  void setManagedChildren(java.util.Collection children)
           
abstract  void setManagedContent(byte[] content)
           
abstract  void setManagedDescription(java.lang.String description)
           
abstract  void setManagedIdentity(java.lang.String identity)
           
abstract  void setManagedLastModified(long lastModified)
           
abstract  void setManagedListeners(java.util.Vector listeners)
           
abstract  void setManagedLocation(java.lang.String location)
           
abstract  void setManagedMetaDatas(java.util.Collection metadatas)
           
abstract  void setManagedMimeType(java.lang.String mimeType)
           
abstract  void setManagedName(java.lang.String name)
           
abstract  void setManagedNextVersion(MediaEntityLocal (src)  nextVersion)
           
abstract  void setManagedParents(java.util.Collection parents)
           
abstract  void setManagedPreviousVersion(MediaEntityLocal (src)  previousVersion)
           
abstract  void setManagedProxy(MediaEntityLocal (src)  proxy)
           
 void unsetEntityContext()
          Unset the associated entity context.
 
Methods inherited from class org.jboss.media.entity.MediaEntity (src)
addListener, addMetaData, convert, ejbHomeExportMedia, ejbHomeImportMedia, ejbHomePublishContent, ejbHomePublishMedia, exportMedia, getChildren, getContent, getDescription, getFormat, getHeader, getLastModified, getListeners, getLocation, getMetaData, getMimeType, getName, getNextVersion, getParents, getPreviousVersion, getProxy, getSize, importMedia, readContent, readContent, removeListener, removeMetaData, setChildren, setContent, setContent, setDescription, setLocation, setMimeType, setName, setPreviousVersion, setProxy, updateLastModified
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MEDIA_ENTITY_JNDI

public static final java.lang.String MEDIA_ENTITY_JNDI
See Also:
Constant Field Values (src)
Constructor Detail

MediaEntityBean

public MediaEntityBean()
Method Detail

getManagedIdentity

public abstract java.lang.String getManagedIdentity()
Specified by:
getManagedIdentity in class MediaEntity (src)

setManagedIdentity

public abstract void setManagedIdentity(java.lang.String identity)
Specified by:
setManagedIdentity in class MediaEntity (src)

getManagedContent

public abstract byte[] getManagedContent()
Specified by:
getManagedContent in class MediaEntity (src)

setManagedContent

public abstract void setManagedContent(byte[] content)
Specified by:
setManagedContent in class MediaEntity (src)

getManagedLocation

public abstract java.lang.String getManagedLocation()
Specified by:
getManagedLocation in class MediaEntity (src)

setManagedLocation

public abstract void setManagedLocation(java.lang.String location)
Specified by:
setManagedLocation in class MediaEntity (src)

getManagedDescription

public abstract java.lang.String getManagedDescription()
Specified by:
getManagedDescription in class MediaEntity (src)

setManagedDescription

public abstract void setManagedDescription(java.lang.String description)
Specified by:
setManagedDescription in class MediaEntity (src)

getManagedName

public abstract java.lang.String getManagedName()
Specified by:
getManagedName in class MediaEntity (src)

setManagedName

public abstract void setManagedName(java.lang.String name)
Specified by:
setManagedName in class MediaEntity (src)

getManagedMimeType

public abstract java.lang.String getManagedMimeType()
Specified by:
getManagedMimeType in class MediaEntity (src)

setManagedMimeType

public abstract void setManagedMimeType(java.lang.String mimeType)
Specified by:
setManagedMimeType in class MediaEntity (src)

getManagedLastModified

public abstract long getManagedLastModified()
Specified by:
getManagedLastModified in class MediaEntity (src)

setManagedLastModified

public abstract void setManagedLastModified(long lastModified)
Specified by:
setManagedLastModified in class MediaEntity (src)

getManagedListeners

public abstract java.util.Vector getManagedListeners()
Specified by:
getManagedListeners in class MediaEntity (src)

setManagedListeners

public abstract void setManagedListeners(java.util.Vector listeners)
Specified by:
setManagedListeners in class MediaEntity (src)

getManagedProxy

public abstract MediaEntityLocal (src)  getManagedProxy()
Specified by:
getManagedProxy in class MediaEntity (src)

setManagedProxy

public abstract void setManagedProxy(MediaEntityLocal (src)  proxy)
Specified by:
setManagedProxy in class MediaEntity (src)

getManagedPreviousVersion

public abstract MediaEntityLocal (src)  getManagedPreviousVersion()
Specified by:
getManagedPreviousVersion in class MediaEntity (src)

setManagedPreviousVersion

public abstract void setManagedPreviousVersion(MediaEntityLocal (src)  previousVersion)
Specified by:
setManagedPreviousVersion in class MediaEntity (src)

getManagedNextVersion

public abstract MediaEntityLocal (src)  getManagedNextVersion()
Specified by:
getManagedNextVersion in class MediaEntity (src)

setManagedNextVersion

public abstract void setManagedNextVersion(MediaEntityLocal (src)  nextVersion)
Specified by:
setManagedNextVersion in class MediaEntity (src)

getManagedParents

public abstract java.util.Collection getManagedParents()
Specified by:
getManagedParents in class MediaEntity (src)

setManagedParents

public abstract void setManagedParents(java.util.Collection parents)
Specified by:
setManagedParents in class MediaEntity (src)

getManagedChildren

public abstract java.util.Collection getManagedChildren()
Specified by:
getManagedChildren in class MediaEntity (src)

setManagedChildren

public abstract void setManagedChildren(java.util.Collection children)
Specified by:
setManagedChildren in class MediaEntity (src)

getManagedMetaDatas

public abstract java.util.Collection getManagedMetaDatas()
Specified by:
getManagedMetaDatas in class MediaEntity (src)

setManagedMetaDatas

public abstract void setManagedMetaDatas(java.util.Collection metadatas)
Specified by:
setManagedMetaDatas in class MediaEntity (src)

ejbCreate

public java.lang.String ejbCreate()
                           throws CreateException (src) 
Throws:
CreateException (src)
See Also:
MediaEntityLocalHome.create()

ejbPostCreate

public void ejbPostCreate()
                   throws CreateException (src) 
Throws:
CreateException (src)
See Also:
MediaEntityLocalHome.create()

ejbActivate

public void ejbActivate()
Description copied from interface: EntityBean (src)

A container invokes this method when the instance is taken out of the pool of available instances to become associated with a specific EJB object. This method transitions the instance to the ready state.

This method executes in an unspecified transaction context.

Specified by:
ejbActivate in interface EntityBean (src)

ejbPassivate

public void ejbPassivate()
Description copied from interface: EntityBean (src)

A container invokes this method on an instance before the instance becomes disassociated with a specific EJB object. After this method completes, the container will place the instance into the pool of available instances.

This method executes in an unspecified transaction context.

Specified by:
ejbPassivate in interface EntityBean (src)

ejbRemove

public void ejbRemove()
               throws RemoveException (src) 
Description copied from interface: EntityBean (src)

A container invokes this method before it removes the EJB object that is currently associated with the instance. This method is invoked when a client invokes a remove operation on the enterprise Bean's home interface or the EJB object's remote interface. This method transitions the instance from the ready state to the pool of available instances.

This method is called in the transaction context of the remove operation.

Specified by:
ejbRemove in interface EntityBean (src)
Throws:
RemoveException (src)

ejbLoad

public void ejbLoad()
Description copied from interface: EntityBean (src)

A container invokes this method to instruct the instance to synchronize its state by loading it state from the underlying database.

This method always executes in the transaction context determined by the value of the transaction attribute in the deployment descriptor.

Specified by:
ejbLoad in interface EntityBean (src)

ejbStore

public void ejbStore()
Description copied from interface: EntityBean (src)

A container invokes this method to instruct the instance to synchronize its state by storing it to the underlying database.

This method always executes in the transaction context determined by the value of the transaction attribute in the deployment descriptor.

Specified by:
ejbStore in interface EntityBean (src)

setEntityContext

public void setEntityContext(EntityContext (src)  entityContext)
Description copied from interface: EntityBean (src)

Set the associated entity context. The container invokes this method on an instance after the instance has been created.

This method is called in an unspecified transaction context.

Specified by:
setEntityContext in interface EntityBean (src)
Parameters:
entityContext - - An EntityContext interface for the instance. The instance should store the reference to the context in an instance variable.

unsetEntityContext

public void unsetEntityContext()
Description copied from interface: EntityBean (src)

Unset the associated entity context. The container calls this method before removing the instance.

This is the last method that the container invokes on the instance. The Java garbage collector will eventually invoke the finalize() method on the instance.

This method is called in an unspecified transaction context.

Specified by:
unsetEntityContext in interface EntityBean (src)