|
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.SPIDocumentSmartBMP
A DocumentImpl SmartBMP which can utilize the SPI JDBC driver to get documents and metadata.
Constructor Summary | |
SPIDocumentSmartBMP()
|
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.sql.Statement stmt)
Helper method to close a statement, ignoring any sql exceptions. |
void |
create(SmartKey smartKey,
EntityImpl entityImpl)
Implements BMP functionality of ejbCreate() method. |
boolean |
exists(SmartKey smartKey,
EntityImpl impl)
Indicates if a bean with the specified primary key exists in the persistent store. |
java.util.Enumeration |
findAll(EntityImpl impl)
Implements BMP functionality of ejbFindAll() method. |
java.util.Enumeration |
findBySearchParams(Search params,
EntityImpl impl)
Services the findBySearchParams method on the Document bean. |
protected static java.sql.Connection |
getConnection(EntityImpl impl)
Get a connection form the "/jdbc/docPool" environment DataSource of the specified entity. |
byte[] |
getContent(java.lang.String identifier,
EntityImpl impl)
Services the getContent method on the Document bean. |
void |
refresh(SmartKey smartKey,
EntityImpl entityImpl)
Implements BMP functionality of ejbLoad() method. |
void |
remove(SmartKey smartKey)
Implements BMP functionality of ejbRemove() method. |
void |
remove(SmartKey key,
EntityImpl impl)
Implements BMP functionality of ejbRemove() method. |
void |
update(SmartKey smartKey,
EntityImpl entityImpl)
Implements BMP functionality of ejbStore() and ejbPostCreate() methods. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public SPIDocumentSmartBMP()
Method Detail |
protected static java.sql.Connection getConnection(EntityImpl impl) throws BMPException
public void create(SmartKey smartKey, EntityImpl entityImpl) throws BMPException
Initialize the representation of the entity bean in persistent store using the smartKey as primary key. Attributes of the entity bean in persistent store should be set to the implementation's equivalent of default or null values.
The entity is invalid at this point. The metadata may be useful to the implementation.
This method always throws a BMPException.
smartKey
- the primary key of the beanentityImpl
- READ ONLY, invalid, uninitialized instance of the
entity bean.public void refresh(SmartKey smartKey, EntityImpl entityImpl) throws BMPException
smartKey
- the primary key of the beanentityImpl
- READ/WRITE instance of the entity bean.public void update(SmartKey smartKey, EntityImpl entityImpl) throws BMPException
This implementation does nothing.
smartKey
- the primary key of the beanentityImpl
- READ ONLY instance of the entity bean.public void remove(SmartKey smartKey) throws BMPException
This implementation does nothing.
smartKey
- the primary key of the beanpublic void remove(SmartKey key, EntityImpl impl) throws BMPException
This implementation does nothing.
smartKey
- the primary key of the beanimpl
- READ ONLY instance of the entity bean.public boolean exists(SmartKey smartKey, EntityImpl impl) throws BMPException
smartKey
- the primary key of the beanimpl
- READ ONLY instance of the entity bean.public java.util.Enumeration findAll(EntityImpl impl) throws BMPException
This method returns an empty Enumeration.
impl
- an instance of the entity bean.public java.util.Enumeration findBySearchParams(Search params, EntityImpl impl) throws BMPException
params
- the search parameters.impl
- an instance of the entity bean.public byte[] getContent(java.lang.String identifier, EntityImpl impl) throws BMPException
identifier
- the identifier (primary key) of a Document objectimpl
- the DocumentImpl object to execute forpublic static final void close(java.sql.Statement stmt)
public static final void close(DocumentIterator iterator)
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 |