|
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 java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final int MAX_CACHE_SIZE
protected javax.ejb.HomeHandle docMgrHomeHandle
protected java.lang.ref.Reference docBytesRef
Constructor Detail |
public FastDocumentImpl()
public FastDocumentImpl(int propertyCase)
propertyCase
- the case of property key for this
(PROPERTY_CASE_NONE, PROPERTY_CASE_LOWER, PROPERTY_CASE_UPPER).Method Detail |
protected void finalize() throws java.lang.Throwable
public DocumentValue getDocumentByValue()
public java.lang.Object getPrimaryKey()
public void setDocumentByValue(DocumentValue val)
DocumentValue
- the Document value objectpublic java.lang.String getDescription()
public void setDescription(java.lang.String s)
description
- description to be addedpublic long getSize()
public void setSize(long size)
public java.lang.String getModifiedBy()
public void setModifiedBy(java.lang.String s)
public java.sql.Timestamp getModifiedDate()
public void setModifiedDate(java.sql.Timestamp d)
public java.sql.Timestamp getCreationDate()
public void setCreationDate(java.sql.Timestamp date)
public long getVersion()
public void setVersion(long ver)
public java.lang.String getAuthor()
public void setAuthor(java.lang.String author)
public java.lang.String getLockedBy()
public void setLockedBy(java.lang.String s)
public java.lang.String getComments()
public void setComments(java.lang.String s)
public java.lang.String getName()
public void setName(java.lang.String s)
public byte[] getContentBlock(long start, long size) throws java.rmi.RemoteException
start
- the starting index in the byte array.size
- the number of bytes to retrieve.public byte[] getContent() throws java.rmi.RemoteException
public void setDocumentManagerHomeHandle(javax.ejb.HomeHandle h)
public DocumentManager getDocumentManager() throws java.rmi.RemoteException
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |