|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.beasys.commerce.foundation.SessionImpl | +--com.beasys.commerce.axiom.content.ContentManagerImpl | +--com.beasys.commerce.axiom.document.DocumentManagerImpl | +--com.beasys.commerce.axiom.document.fast.SPIFastDocumentManagerImpl
An implementation of DocumentManager that doesn't delagate to the Entity Document EJBs but instead uses the DocMgmt SPI.
In its EJB environment, the case of property names for Document objects coming from this is controlled by the "PropertyCase" environment variable. If this is "lower", all property names will be lower case; if this is "upper", all property names will be upper case; if this is anything else or not set, property names will be untouched.
This uses the DataSourceHelper
to gain access to get connections to the document JDBC connection.
Field Summary | |
protected int |
propertyCase
The property case for Content object we create. |
Fields inherited from class com.beasys.commerce.axiom.content.ContentManagerImpl |
contentHome,
schemaHome |
Fields inherited from class com.beasys.commerce.foundation.SessionImpl |
_ctx,
_environmentNamingContext,
_environmentPropertyCache,
_isDirty |
Constructor Summary | |
SPIFastDocumentManagerImpl()
Constructor. |
Method Summary | |
void |
close(java.sql.Connection con)
Helper method to close a connection, ignoring any exceptions. |
static void |
close(DocumentIterator iterator)
Close a document iterator, ignoring any exceptions. |
static void |
close(java.io.InputStream in)
Close an InputStream, ignoring any exceptions. |
static void |
close(java.sql.Statement stmt)
|
void |
ejbCreate()
Override to initialize the Property Case from
the EJB environment as well. |
protected java.sql.Connection |
getConnection()
Get a connection to the docPool. |
java.util.Enumeration |
getContent(Search params)
Override to assume readOnly access. |
java.util.Enumeration |
getContent(Search params,
boolean readOnly)
Override to obey the readOnly flag. |
byte[] |
getContentBlock(DocumentPk key,
long start,
long length)
Get the block of bytes for the specified document. |
static void |
setProperty(FastContentImpl c,
java.lang.String name,
java.lang.Object val)
Set a property on a FastContentImpl object. |
Methods inherited from class com.beasys.commerce.axiom.document.DocumentManagerImpl |
getDefaultContentHomeName,
getDefaultContentSchemaHomeName |
Methods inherited from class com.beasys.commerce.axiom.content.ContentManagerImpl |
ejbActivate,
ejbPassivate,
ejbPostCreate,
ejbRemove,
getAllSchemas,
getContentHome,
getJNDIContext,
getSchema,
getSchemaHome,
lookupHome,
setSessionContext,
verifyHome |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected int propertyCase
FastContentImpl.PROPERTY_CASE_LOWER
,
FastContentImpl.PROPERTY_CASE_UPPER
,
FastContentImpl.PROPERTY_CASE_NONE
Constructor Detail |
public SPIFastDocumentManagerImpl() throws javax.ejb.CreateException
Method Detail |
public void ejbCreate() throws javax.ejb.CreateException
Property Case
from
the EJB environment as well.protected java.sql.Connection getConnection() throws java.sql.SQLException
DataSourceHelper.getConnection(com.beasys.commerce.foundation.SessionImpl)
public java.util.Enumeration getContent(Search params) throws java.rmi.RemoteException
ContentManagerImpl.getContentHome()
public java.util.Enumeration getContent(Search params, boolean readOnly) throws java.rmi.RemoteException
public byte[] getContentBlock(DocumentPk key, long start, long length) throws java.rmi.RemoteException
key
- the document primary key.start
- the starting index.length
- the number of bytes to return (less than 0 for all).public static void setProperty(FastContentImpl c, java.lang.String name, java.lang.Object val)
public static final void close(java.io.InputStream in)
public static final void close(DocumentIterator iterator)
public static void close(java.sql.Statement stmt)
public final void close(java.sql.Connection con)
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |