|
© 2001 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 com.beasys.commerce.axiom.document.fast.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(com.beasys.commerce.axiom.document.fast.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,
|
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.beasys.commerce.axiom.content.Content |
getContentByValue, getIdentifier, getMimeType, setContentByValue, setMimeType |
| Methods inherited from interface com.beasys.commerce.foundation.ConfigurableEntity |
addPropertyValue, addPropertyValueMapped, getPersistableHandle, getProperty, getProperty, getPropertyAsString, getPropertyAsString, getPropertyDefault, getPropertyNoDefault, getSuccessor, getUniqueId, removeProperty, removeProperty, removePropertyValue, removePropertyValueMapped, removeSuccessor, setProperty, setProperty, setSuccessor |
| Methods inherited from interface com.beasys.commerce.foundation.BusinessPolicyManager |
addBusinessPolicy, getBusinessPolicy, removeBusinessPolicy |
| Field Detail |
public static final int MAX_CACHE_SIZE
protected com.beasys.commerce.axiom.document.fast.HomeHandle docMgrHomeHandle
protected transient 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
finalize in class java.lang.Objectpublic DocumentValue getDocumentByValue()
getDocumentByValue in interface Documentcom.beasys.commerce.axiom.document.Documentjava.rmi.RemoteException - thrown on an error.public java.lang.Object getPrimaryKey()
getPrimaryKey in class FastContentImplpublic void setDocumentByValue(DocumentValue val)
setDocumentByValue in interface Documentcom.beasys.commerce.axiom.document.DocumentDocumentValue - the Document value objectjava.rmi.RemoteException - thrown on an error.public java.lang.String getDescription()
getDescription in interface Documentcom.beasys.commerce.axiom.document.Documentjava.rmi.RemoteException - thrown on an error.public void setDescription(java.lang.String s)
setDescription in interface Documentcom.beasys.commerce.axiom.document.Documentdescription - description to be addedjava.rmi.RemoteException - thrown on an error.public long getSize()
getSize in interface Documentcom.beasys.commerce.axiom.document.Documentjava.rmi.RemoteException - thrown on an error.public void setSize(long size)
setSize in interface Documentcom.beasys.commerce.axiom.document.Documentjava.rmi.RemoteException - thrown on an error.public java.lang.String getModifiedBy()
getModifiedBy in interface Documentcom.beasys.commerce.axiom.document.Documentjava.rmi.RemoteException - thrown on an error.public void setModifiedBy(java.lang.String s)
setModifiedBy in interface Documentcom.beasys.commerce.axiom.document.Documentjava.rmi.RemoteException - thrown on an error.public java.sql.Timestamp getModifiedDate()
getModifiedDate in interface Documentcom.beasys.commerce.axiom.document.Documentjava.rmi.RemoteException - thrown on an error.public void setModifiedDate(java.sql.Timestamp d)
setModifiedDate in interface Documentcom.beasys.commerce.axiom.document.Documentjava.rmi.RemoteException - thrown on an error.public java.sql.Timestamp getCreationDate()
getCreationDate in interface Documentcom.beasys.commerce.axiom.document.Documentjava.rmi.RemoteException - thrown on an error.public void setCreationDate(java.sql.Timestamp date)
setCreationDate in interface Documentcom.beasys.commerce.axiom.document.Documentjava.rmi.RemoteException - thrown on an error.public long getVersion()
getVersion in interface Documentcom.beasys.commerce.axiom.document.Documentjava.rmi.RemoteException - thrown on an error.public void setVersion(long ver)
setVersion in interface Documentcom.beasys.commerce.axiom.document.Documentjava.rmi.RemoteException - thrown on an error.public java.lang.String getAuthor()
getAuthor in interface Documentcom.beasys.commerce.axiom.document.Documentjava.rmi.RemoteException - thrown on an error.public void setAuthor(java.lang.String author)
setAuthor in interface Documentcom.beasys.commerce.axiom.document.Documentjava.rmi.RemoteException - thrown on an error.public java.lang.String getLockedBy()
getLockedBy in interface Documentcom.beasys.commerce.axiom.document.Documentjava.rmi.RemoteException - thrown on an error.public void setLockedBy(java.lang.String s)
setLockedBy in interface Documentcom.beasys.commerce.axiom.document.Documentjava.rmi.RemoteException - thrown on an error.public java.lang.String getComments()
getComments in interface Documentcom.beasys.commerce.axiom.document.Documentjava.rmi.RemoteException - thrown on an error.public void setComments(java.lang.String s)
setComments in interface Documentcom.beasys.commerce.axiom.document.Documentjava.rmi.RemoteException - thrown on an error.public java.lang.String getName()
getName in interface Documentcom.beasys.commerce.axiom.document.Documentjava.rmi.RemoteException - thrown on an error.public void setName(java.lang.String s)
setName in interface Documentcom.beasys.commerce.axiom.document.Documentjava.rmi.RemoteException - thrown on an error.
public byte[] getContentBlock(long start,
long size)
throws java.rmi.RemoteException
getContentBlock in interface Documentcom.beasys.commerce.axiom.document.Documentstart - the starting index in the byte array.size - the number of bytes to retrieve.java.rmi.RemoteException - thrown on an error.
public byte[] getContent()
throws java.rmi.RemoteException
getContent in interface Documentcom.beasys.commerce.axiom.document.Documentjava.rmi.RemoteException - thrown on an error.public void setDocumentManagerHomeHandle(com.beasys.commerce.axiom.document.fast.HomeHandle h)
public DocumentManager getDocumentManager()
throws java.rmi.RemoteException
|
© 2001 BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||