BEA Systems, Inc.

com.beasys.commerce.axiom.document
Class DocumentManagerImpl

java.lang.Object
  |
  +--com.beasys.commerce.foundation.SessionImpl
        |
        +--com.beasys.commerce.axiom.content.ContentManagerImpl
              |
              +--com.beasys.commerce.axiom.document.DocumentManagerImpl

public class DocumentManagerImpl
extends ContentManagerImpl

A DocumentManager implementation.

This currently doesn't add any additional functionality, but it might in the future.

See Also:
DocumentManager, DocumentManagerHome, Serialized Form

Fields inherited from class com.beasys.commerce.foundation.SessionImpl
_ctx
 
Constructor Summary
DocumentManagerImpl()
           
 
Method Summary
 void ejbActivate()
          Called when the bean is activated.
 void ejbCreate()
          Called when the bean is being created.
 void ejbPassivate()
          Called when the bean is passivated.
 void ejbPostCreate()
          Called after the create finishes.
 void ejbRemove()
          Called when the bean is removed.
 byte[] getContentBlock(DocumentPk key, long start, long length)
          Get the content bytes for the specified document.
 java.lang.String getDefaultContentHomeName()
          Get the default content home name to use.
 java.lang.String getDefaultContentSchemaHomeName()
          Get the default content schema home name to use.
 void setSessionContext(javax.ejb.SessionContext ctx)
          Called when the bean is about to be used.
 
Methods inherited from class com.beasys.commerce.axiom.content.ContentManagerImpl
getAllSchemas, getContent, getContent, getJNDIContext, getSchema, lookupHome, verifyHome
 
Methods inherited from class com.beasys.commerce.foundation.SessionImpl
clearRelationalBinding, clearRelationalBinding, clearRelationalBinding, clearRelationalBinding
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentManagerImpl

public DocumentManagerImpl()
                    throws javax.ejb.CreateException
Method Detail

ejbCreate

public void ejbCreate()
               throws javax.ejb.CreateException,
                      java.rmi.RemoteException
Description copied from class: ContentManagerImpl
Called when the bean is being created.

This will pull information from the bean's environment.

Overrides:
ejbCreate in class ContentManagerImpl
Tags copied from class: ContentManagerImpl
Throws:
java.rmi.RemoteException - thrown on an error.
javax.ejb.CreateException - thrown on an error.

ejbPostCreate

public void ejbPostCreate()
                   throws javax.ejb.CreateException,
                          java.rmi.RemoteException
Description copied from class: ContentManagerImpl
Called after the create finishes.

This delagates to the super class.

Overrides:
ejbPostCreate in class ContentManagerImpl
Tags copied from class: ContentManagerImpl
Throws:
java.rmi.RemoteException - thrown on an error.
javax.ejb.CreateException - thrown on an error.

ejbActivate

public void ejbActivate()
                 throws java.rmi.RemoteException
Description copied from class: ContentManagerImpl
Called when the bean is activated.
Overrides:
ejbActivate in class ContentManagerImpl
Tags copied from class: ContentManagerImpl
Throws:
java.rmi.RemoteException - thrown on an error.

ejbPassivate

public void ejbPassivate()
                  throws java.rmi.RemoteException
Description copied from class: ContentManagerImpl
Called when the bean is passivated.
Overrides:
ejbPassivate in class ContentManagerImpl
Tags copied from class: ContentManagerImpl
Throws:
java.rmi.RemoteException - thrown on an error.

ejbRemove

public void ejbRemove()
               throws java.rmi.RemoteException
Description copied from class: ContentManagerImpl
Called when the bean is removed.
Overrides:
ejbRemove in class ContentManagerImpl
Tags copied from class: ContentManagerImpl
Throws:
java.rmi.RemoteException - thrown on an error.

setSessionContext

public void setSessionContext(javax.ejb.SessionContext ctx)
                       throws java.rmi.RemoteException
Description copied from class: ContentManagerImpl
Called when the bean is about to be used.
Overrides:
setSessionContext in class ContentManagerImpl
Tags copied from class: ContentManagerImpl
Throws:
java.rmi.RemoteException - thrown on an error.

getContentBlock

public byte[] getContentBlock(DocumentPk key,
                              long start,
                              long length)
                       throws java.rmi.RemoteException
Get the content bytes for the specified document.

This delagates to the DocumentHome.

Subclasses can override to avoid going through the DocumentHome.

The normal way to get the content bytes is to call the getContentBlock() methods on the Document object.


getDefaultContentHomeName

public java.lang.String getDefaultContentHomeName()
Get the default content home name to use.
Overrides:
getDefaultContentHomeName in class ContentManagerImpl
See Also:
ContentHelper.DEF_DOCUMENT_HOME

getDefaultContentSchemaHomeName

public java.lang.String getDefaultContentSchemaHomeName()
Get the default content schema home name to use.
Overrides:
getDefaultContentSchemaHomeName in class ContentManagerImpl
See Also:
ContentHelper.DEF_DOCUMENT_SCHEMA_HOME

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved