|
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.axiom.document.fast.FastContentImpl
|
+--com.beasys.commerce.axiom.document.fast.FastDocumentImpl
An implementation of the Document interface that is not an EJB.
When creating these, do not use the setProperty() methods, as those
either raise an UnsupportedException or no-op. Instead, use the
FastContentImpl.putProperty(java.lang.String, java.lang.Object) method, using the String name of the
attribute (i.e. "identifier", "size", "modifiedDate", etc.) as the key and
the appropiate data type as the value. Additionally, for
getContent() and
getContentBlock() to work, be sure to set the
DocumentManagerHome handle with
setDocumentManagerHomeHandle().
| Inner Class Summary | |
static class |
FastDocumentImpl.PublicDocumentValue
A little inner class because DocumentValue constructor is protected. |
| Inner classes inherited from class com.beasys.commerce.axiom.document.fast.FastContentImpl |
FastContentImpl.PublicContentValue |
| Field Summary | |
protected java.lang.ref.Reference |
docBytesRef
A Reference cache of the Document's full bytes. |
protected javax.ejb.HomeHandle |
docMgrHomeHandle
The HomeHandle to the DocumentManagerHome to use to get a DocumentManager. |
static int |
MAX_CACHE_SIZE
The max document size we will cache in a SoftReference. |
| Fields inherited from class com.beasys.commerce.axiom.document.fast.FastContentImpl |
properties, PROPERTY_CASE_LOWER, PROPERTY_CASE_NONE, PROPERTY_CASE_UPPER, propertyCase |
| Fields inherited from interface com.beasys.commerce.foundation.ConfigurableEntity |
RESERVED_SCOPE_NAME |
| Constructor Summary | |
FastDocumentImpl()
Constructor. |
|
FastDocumentImpl(int propertyCase)
Constructor. |
|
| Method Summary | |
protected void |
finalize()
A finalize method which clears our doc bytes reference. |
java.lang.String |
getAuthor()
Get the author of the document. |
java.lang.String |
getComments()
Get the document comments. |
byte[] |
getContent()
Get the raw bytes of the document. |
byte[] |
getContentBlock(long start,
long size)
Get the raw bytes of the document. |
java.sql.Timestamp |
getCreationDate()
Get the date the document was created. |
java.lang.String |
getDescription()
Get the description. |
DocumentValue |
getDocumentByValue()
Get the document value for this. |
DocumentManager |
getDocumentManager()
Get the DocumentManager this should use to get stuff. |
java.lang.String |
getLockedBy()
Get the locker of the document. |
java.lang.String |
getModifiedBy()
Get last modifier of the document. |
java.sql.Timestamp |
getModifiedDate()
Get the date the document was last modified. |
java.lang.String |
getName()
Get the document name. |
java.lang.Object |
getPrimaryKey()
Create a DocumentPk from the identifier. |
long |
getSize()
Get the size of the document. |
long |
getVersion()
Get the document version number. |
void |
setAuthor(java.lang.String author)
This method does nothing |
void |
setComments(java.lang.String s)
This method does nothing |
void |
setCreationDate(java.sql.Timestamp date)
This method does nothing |
void |
setDescription(java.lang.String s)
This method does nothing |
void |
setDocumentByValue(DocumentValue val)
This method does nothing |
void |
setDocumentManagerHomeHandle(javax.ejb.HomeHandle h)
Set the Handle to the DocumentManager this should use if needed. |
void |
setLockedBy(java.lang.String s)
This method does nothing |
void |
setModifiedBy(java.lang.String s)
This method does nothing |
void |
setModifiedDate(java.sql.Timestamp d)
This method does nothing |
void |
setName(java.lang.String s)
This method does nothing |
void |
setSize(long size)
This method does nothing |
void |
setVersion(long ver)
This method does nothing |
| Methods inherited from class com.beasys.commerce.axiom.document.fast.FastContentImpl | |||||||||||||||||||||||||
addBusinessPolicy, addPropertyValue, addPropertyValueMapped, get__classIdentifier, get__containingBelonging, get__containingEntity, get__mapKey, get__sequenceNumber, getBusinessPolicy, getContentByValue, getEJBHome, getHandle, getIdentifier, getMimeType, getPersistableHandle, getProperty, getProperty, getPropertyAsString, getPropertyAsString, getPropertyCase, getPropertyDefault, getPropertyNoDefault, getSuccessor, getUniqueId, isIdentical,
| |||||||||||||||||||||||||