org.jboss.media.entity
Class MetaDataEntityBean

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

public abstract class MetaDataEntityBean
extends java.lang.Object
implements EntityBean (src)

JBoss implementation of the MetaDataEntity EJB.

See Also:
Serialized Form

Constructor Summary
MetaDataEntityBean()
           
 
Method Summary
 void addChild(MetaDataEntityLocal (src)  child)
           
 void addMediaEntity(MediaEntityLocal (src)  mediaEntity)
           
 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()
           
 java.util.Collection ejbHomeQuery(java.lang.String query, java.lang.String queryLanguage, java.util.Map options)
           
 java.lang.String[] ejbHomeRetrieveSupportedOptions(java.lang.String queryLanguage)
           
 java.lang.String[] ejbHomeRetrieveSupportedQueryLanguages()
           
 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.
abstract  java.util.Collection ejbSelectByPartialXML(java.lang.String partialXML)
           
 void ejbStore()
          A container invokes this method to instruct the instance to synchronize its state by storing it to the underlying database.
 MetaDataEntityLocal (src) [] getChildren()
           
 long getLastModified()
           
abstract  java.util.Collection getManagedChildren()
           
abstract  java.lang.String getManagedIdentity()
           
abstract  long getManagedLastModified()
           
abstract  java.util.Collection getManagedMedias()
           
abstract  java.lang.String getManagedName()
           
abstract  MetaDataEntityLocal (src) getManagedNextVersion()
           
abstract  java.util.Collection getManagedParents()
           
abstract  MetaDataEntityLocal (src) getManagedPreviousVersion()
           
abstract  java.lang.String getManagedXML()
           
 MediaEntityLocal (src) [] getMediaEntities()
           
 MediaEntityLocal (src) [] getMediaEntities(MediaFormat (src)  mediaFormat, boolean searchChildren)
           
 MediaEntityLocal (src) [] getMediaEntities(java.lang.String mimeType, boolean searchChildren)
           
 java.lang.String getName()
           
 MetaDataEntityLocal (src) getNextVersion()
           
 MetaDataEntityLocal (src) [] getParents()
           
 MetaDataEntityLocal (src) getPreviousVersion()
           
 java.lang.String getXML()
           
 void removeChild(MetaDataEntityLocal (src)  child)
           
 void removeMediaEntity(MediaEntityLocal (src)  mediaEntity)
           
 void setEntityContext(EntityContext (src)  entityContext)
          Set the associated entity context.
abstract  void setManagedChildren(java.util.Collection children)
           
abstract  void setManagedIdentity(java.lang.String identity)
           
abstract  void setManagedLastModified(long lastModified)
           
abstract  void setManagedMedias(java.util.Collection medias)
           
abstract  void setManagedName(java.lang.String name)
           
abstract  void setManagedNextVersion(MetaDataEntityLocal (src)  nextVersion)
           
abstract  void setManagedParents(java.util.Collection parents)
           
abstract  void setManagedPreviousVersion(MetaDataEntityLocal (src)  previousVersion)
           
abstract  void setManagedXML(java.lang.String xml)
           
 void setName(java.lang.String name)
           
 void setPreviousVersion(MetaDataEntityLocal (src)  metadata)
           
 void setXML(java.lang.String xmlContent, boolean validate)
           
 void unsetEntityContext()
          Unset the associated entity context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaDataEntityBean

public MetaDataEntityBean()
Method Detail

getManagedIdentity

public abstract java.lang.String getManagedIdentity()

setManagedIdentity

public abstract void setManagedIdentity(java.lang.String identity)

getManagedXML

public abstract java.lang.String getManagedXML()

setManagedXML

public abstract void setManagedXML(java.lang.String xml)

getManagedName

public abstract java.lang.String getManagedName()

setManagedName

public abstract void setManagedName(java.lang.String name)

getManagedLastModified

public abstract long getManagedLastModified()

setManagedLastModified

public abstract void setManagedLastModified(long lastModified)

getManagedPreviousVersion

public abstract MetaDataEntityLocal (src)  getManagedPreviousVersion()

setManagedPreviousVersion

public abstract void setManagedPreviousVersion(MetaDataEntityLocal (src)  previousVersion)

getManagedNextVersion

public abstract MetaDataEntityLocal (src)  getManagedNextVersion()

setManagedNextVersion

public abstract void setManagedNextVersion(MetaDataEntityLocal (src)  nextVersion)

getManagedParents

public abstract java.util.Collection getManagedParents()

setManagedParents

public abstract void setManagedParents(java.util.Collection parents)

getManagedChildren

public abstract java.util.Collection getManagedChildren()

setManagedChildren

public abstract void setManagedChildren(java.util.Collection children)

getManagedMedias

public abstract java.util.Collection getManagedMedias()

setManagedMedias

public abstract void setManagedMedias(java.util.Collection medias)

addChild

public void addChild(MetaDataEntityLocal (src)  child)
              throws MediaException (src) 
Throws:
MediaException (src)
See Also:
MetaDataEntityLocal.addChild(javax.emb.MetaDataEntityLocal)

addMediaEntity

public void addMediaEntity(MediaEntityLocal (src)  mediaEntity)
                    throws MediaException (src) 
Throws:
MediaException (src)
See Also:
MetaDataEntityLocal.addMediaEntity(javax.emb.MediaEntityLocal)

getChildren

public MetaDataEntityLocal (src) [] getChildren()
                                  throws MediaException (src) 
Throws:
MediaException (src)
See Also:
MetaDataEntityLocal.getChildren()

getLastModified

public long getLastModified()
                     throws MediaException (src) 
Throws:
MediaException (src)
See Also:
MetaDataEntityLocal.getLastModified()

getMediaEntities

public MediaEntityLocal (src) [] getMediaEntities()
                                    throws MediaException (src) 
Throws:
MediaException (src)
See Also:
MetaDataEntityLocal.getMediaEntities()

getMediaEntities

public MediaEntityLocal (src) [] getMediaEntities(MediaFormat (src)  mediaFormat,
                                           boolean searchChildren)
                                    throws MediaException (src) 
Throws:
MediaException (src)
See Also:
MetaDataEntityLocal.getMediaEntities(javax.emb.MediaFormat, boolean)

getMediaEntities

public MediaEntityLocal (src) [] getMediaEntities(java.lang.String mimeType,
                                           boolean searchChildren)
                                    throws MediaException (src) 
Throws:
MediaException (src)
See Also:
MetaDataEntityLocal.getMediaEntities(java.lang.String, boolean)

getName

public java.lang.String getName()
                         throws MediaException (src) 
Throws:
MediaException (src)
See Also:
MetaDataEntityLocal.getName()

getNextVersion

public MetaDataEntityLocal (src)  getNextVersion()
                                   throws MediaException (src) 
Throws:
MediaException (src)
See Also:
MetaDataEntityLocal.getNextVersion()

getParents

public MetaDataEntityLocal (src) [] getParents()
                                 throws MediaException (src) 
Throws:
MediaException (src)
See Also:
MetaDataEntityLocal.getParents()

getPreviousVersion

public MetaDataEntityLocal (src)  getPreviousVersion()
                                       throws MediaException (src) 
Throws:
MediaException (src)
See Also:
MetaDataEntityLocal.getPreviousVersion()

getXML

public java.lang.String getXML()
                        throws MediaException (src) 
Throws:
MediaException (src)
See Also:
MetaDataEntityLocal.getXML()

removeChild

public void removeChild(MetaDataEntityLocal (src)  child)
                 throws MediaException (src) 
Throws:
MediaException (src)
See Also:
MetaDataEntityLocal.removeChild(javax.emb.MetaDataEntityLocal)

removeMediaEntity

public void removeMediaEntity(MediaEntityLocal (src)  mediaEntity)
                       throws MediaException (src) 
Throws:
MediaException (src)
See Also:
MetaDataEntityLocal.removeMediaEntity(javax.emb.MediaEntityLocal)

setName

public void setName(java.lang.String name)
             throws MediaException (src) 
Throws:
MediaException (src)
See Also:
MetaDataEntityLocal.setName(java.lang.String)

setPreviousVersion

public void setPreviousVersion(MetaDataEntityLocal (src)  metadata)
                        throws MediaException (src) 
Throws:
MediaException (src)
See Also:
MetaDataEntityLocal.setPreviousVersion(javax.emb.MetaDataEntityLocal)

setXML

public void setXML(java.lang.String xmlContent,
                   boolean validate)
            throws MediaException (src) 
Throws:
MediaException (src)
See Also:
MetaDataEntityLocal.setXML(java.lang.String, boolean)

ejbCreate

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

ejbPostCreate

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

ejbHomeQuery

public java.util.Collection ejbHomeQuery(java.lang.String query,
                                         java.lang.String queryLanguage,
                                         java.util.Map options)
                                  throws FinderException (src) ,
                                         MediaException (src) 
Throws:
FinderException (src)
MediaException (src)
See Also:
MetaDataEntityLocalHome.query(java.lang.String, java.lang.String, java.util.Map)

ejbHomeRetrieveSupportedOptions

public java.lang.String[] ejbHomeRetrieveSupportedOptions(java.lang.String queryLanguage)
                                                   throws MediaException (src) 
Throws:
MediaException (src)
See Also:
MetaDataEntityLocalHome.retrieveSupportedOptions(java.lang.String)

ejbHomeRetrieveSupportedQueryLanguages

public java.lang.String[] ejbHomeRetrieveSupportedQueryLanguages()
                                                          throws MediaException (src) 
Throws:
MediaException (src)
See Also:
MetaDataEntityLocalHome.retrieveSupportedQueryLanguages()

ejbSelectByPartialXML

public abstract java.util.Collection ejbSelectByPartialXML(java.lang.String partialXML)
                                                    throws FinderException (src) 
Throws:
FinderException (src)

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)

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)

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)