|
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.EntityImpl | +--com.beasys.commerce.foundation.ConfigurableEntityImpl | +--com.beasys.commerce.axiom.content.ContentImpl | +--com.beasys.commerce.axiom.document.DocumentImpl
An implementation of the Document interface.
This implementation of Document uses a SmartBMP to handle interfacing with the underlying document management system. This SmartBMP must follow the requirements of the Content SmartBMP (i.e. it must have a findBySearchParams(Search) method). Additionally, for document content byte retrieval to work, the SmartBMP must have a getContent(String) method which, given the identifier of the Document, will return the byte array of its content.
Primary Key = com.beasys.commerce.axiom.document.DocumentPk
Document
,
DocumentHome
,
DocumentValue
, Serialized FormField Summary | |
java.lang.String |
author
The author/creator of the document. |
java.lang.String |
comments
Any comments about the document. |
java.sql.Timestamp |
creationDate
The date upon which the document was created. |
java.lang.String |
description
The description of the document. |
java.lang.String |
lockedBy
The identifier of the person who has the file locked. |
java.lang.String |
modifiedBy
The identifier of the last person to modify the document. |
java.sql.Timestamp |
modifiedDate
The time/date of when the document was modified last. |
java.lang.String |
name
The name of the document. |
long |
size
The size of the document. |
long |
version
The version number of the document. |
Fields inherited from class com.beasys.commerce.axiom.content.ContentImpl |
identifier,
mimeType,
PROPERTY_CASE_LOWER,
PROPERTY_CASE_NONE,
PROPERTY_CASE_UPPER,
propertyCase |
Fields inherited from class com.beasys.commerce.foundation.EntityImpl |
__classIdentifier,
__containingEntity,
__mapKey,
__sequenceNumber,
_ctx,
_isDirty |
Constructor Summary | |
DocumentImpl()
Constructor. |
Method Summary | |
void |
ejbActivate()
Called when the bean is activated. |
DocumentPk |
ejbCreate(DocumentPk documentPk)
Create a document. |
DocumentPk |
ejbFindByPrimaryKey(DocumentPk pk)
Make sure the document exists. |
void |
ejbLoad()
Called when the document should load its data. |
void |
ejbPassivate()
Called when the bean is passivated. |
void |
ejbPostCreate(DocumentPk documentPk)
Called after the bean is created. |
void |
ejbRemove()
Called when the document should remove itself from persistant store. |
void |
ejbStore()
Called when the document should store its data. |
java.lang.String |
getAuthor()
Get the document author. |
java.lang.String |
getComments()
Get the document comments. |
byte[] |
getContent()
Get all the bytes of the document's content. |
byte[] |
getContentBlock(long start,
long size)
Get a block of the document's content. |
java.sql.Timestamp |
getCreationDate()
Get the date the document was created. |
java.lang.String |
getDescription()
Get the document description. |
DocumentValue |
getDocumentByValue()
Get all of Document's attributes. |
java.lang.String |
getLockedBy()
Get the document locker. |
java.lang.String |
getModifiedBy()
Get the identifier of the last modifier. |
java.sql.Timestamp |
getModifiedDate()
Get the date the document was last modified. |
java.lang.String |
getName()
Get the document name. |
long |
getSize()
Get the document size. |
long |
getVersion()
Get the document version |
void |
setAuthor(java.lang.String author)
Set the document author. |
void |
setComments(java.lang.String comments)
Set the value of comments |
void |
setCreationDate(java.sql.Timestamp creationDate)
Set the creation date of the Document. |
void |
setDescription(java.lang.String description)
Set the document description. |
void |
setDocumentByValue(DocumentValue value)
Set all of Document's attributes to the passed in value. |
void |
setEntityContext(javax.ejb.EntityContext ctx)
Called when the bean is about to be used. |
void |
setLockedBy(java.lang.String lockedBy)
Set the document locker. |
void |
setModifiedBy(java.lang.String modifiedBy)
Set the identifier of the last modifier |
void |
setModifiedDate(java.sql.Timestamp modifiedDate)
Set the date the document was last modified. |
void |
setName(java.lang.String name)
Set the document name. |
void |
setSize(long size)
Set the document size. |
void |
setVersion(long version)
Set the document version. |
void |
unsetEntityContext()
Called when the container is done with the bean. |
Methods inherited from class com.beasys.commerce.foundation.ConfigurableEntityImpl |
addBusinessPolicy,
buildPolicyKey,
createMapKey,
ejbCreate,
ejbPostCreate,
getBusinessPolicy,
getPersistableHandle,
getProperty,
getProperty,
getPropertyAsString,
getPropertyAsString,
getPropertyDefault,
getPropertyMap,
getPropertyNoDefault,
getSuccessor,
getUniqueId,
removeBusinessPolicy,
removeCachedProperties,
removeCachedProperties,
removeSuccessor,
setSuccessor,
upcaseFirst |
Methods inherited from class com.beasys.commerce.foundation.EntityImpl |
clearRelationalBinding,
clearRelationalBinding,
clearRelationalBinding,
clearRelationalBinding,
ejbFindAll,
ejbFindByPrimaryKey,
get__classIdentifier,
get__containingBelonging,
get__containingEntity,
get__containingEntityReference,
get__mapKey,
get__sequenceNumber,
getEntityContext,
isModified,
set__containingBelonging,
set__containingEntity,
set__containingEntityReference,
set__mapKey |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public java.lang.String description
public long size
public java.lang.String modifiedBy
public java.sql.Timestamp modifiedDate
public java.sql.Timestamp creationDate
public long version
public java.lang.String author
public java.lang.String lockedBy
public java.lang.String comments
public java.lang.String name
Constructor Detail |
public DocumentImpl() throws javax.ejb.CreateException
Method Detail |
public DocumentValue getDocumentByValue() throws java.rmi.RemoteException
public void setDocumentByValue(DocumentValue value) throws java.rmi.RemoteException
DocumentValue
- the Document value objectpublic DocumentPk ejbCreate(DocumentPk documentPk) throws javax.ejb.CreateException, java.rmi.RemoteException
This delagates to the super class, which will invoke the SmartBMP's create() method.
public void ejbPostCreate(DocumentPk documentPk) throws javax.ejb.CreateException, java.rmi.RemoteException
public void ejbLoad() throws java.rmi.RemoteException
This delagates to the super class, which eventually invoked the refresh() method on the SmartBMP.
public void ejbStore() throws java.rmi.RemoteException
This delagates to the super class, which eventually invoked the update() method on the SmartBMP.
public void ejbRemove() throws java.rmi.RemoteException, javax.ejb.RemoveException
This delagates to the super class, which eventually invoked the remove() method on the SmartBMP.
public void ejbActivate() throws java.rmi.RemoteException
public void ejbPassivate() throws java.rmi.RemoteException
public void setEntityContext(javax.ejb.EntityContext ctx) throws java.rmi.RemoteException
public void unsetEntityContext() throws java.rmi.RemoteException
public DocumentPk ejbFindByPrimaryKey(DocumentPk pk) throws javax.ejb.FinderException, java.rmi.RemoteException
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
public long getSize()
public void setSize(long size)
public java.lang.String getModifiedBy()
public void setModifiedBy(java.lang.String modifiedBy)
public java.sql.Timestamp getModifiedDate()
public void setModifiedDate(java.sql.Timestamp modifiedDate)
public java.sql.Timestamp getCreationDate()
public void setCreationDate(java.sql.Timestamp creationDate)
public long getVersion()
public void setVersion(long version)
public java.lang.String getAuthor()
public void setAuthor(java.lang.String author)
public java.lang.String getLockedBy()
public void setLockedBy(java.lang.String lockedBy)
public java.lang.String getComments()
public void setComments(java.lang.String comments)
comments
- comments to be addedpublic java.lang.String getName()
public void setName(java.lang.String name)
public byte[] getContentBlock(long start, long size) throws java.rmi.RemoteException
start
- the start index.size
- the number of bytes to get.getContent()
public byte[] getContent() throws java.rmi.RemoteException
This will attempt to invoke, in this order, the following method on the SmartBMP:
getContent(String identifier, EntityImpl impl)
getContent(String identifier)
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |