|
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.SPISchemaSmartBMP
A SmartBMP for a SchemeImpl which can pull the information from the DocMgmt Component's SPI JDBC driver.
Field Summary | |
static java.util.Map |
defaultPropertyMetaData
The map of attribute name to PropertyMetaData for the explicit document objects. |
Constructor Summary | |
SPISchemaSmartBMP()
|
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. |
static PropertyMetaData |
createExplicitPropertyMetaData(java.lang.String desc,
int type)
Create a PropertyMetaData for an explicit non-multi-valued attribute. |
boolean |
exists(SmartKey smartKey,
EntityImpl imp)
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 |
findBySchemaGroupName(java.lang.String groupName,
EntityImpl impl)
Find all the schema by a schema group name. |
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 |
Field Detail |
public static final java.util.Map defaultPropertyMetaData
This unmodifiable map can be used to populate Schema objects with the explicit property information for a Document. Chaning the contained PropertyMetaData objects will have adverse effects and is not supported.
Constructor Detail |
public SPISchemaSmartBMP()
Method Detail |
public static PropertyMetaData createExplicitPropertyMetaData(java.lang.String desc, int type)
desc
- the description.type
- the TypesHelper type of the attribute.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
Copies attributes of entity bean to persistent store using the smartKey as primary key.
This method does nothing.
smartKey
- the primary key of the beanentityImpl
- READ ONLY instance of the entity bean.public void remove(SmartKey smartKey) throws BMPException
Remove the entity bean from persistent store using the smartKey as primary key.
This method does nothing.
smartKey
- the primary key of the beanpublic void remove(SmartKey key, EntityImpl impl) throws BMPException
Remove the entity bean from persistent store using the smartKey as primary key.
This method does nothing.
smartKey
- the primary key of the beanimpl
- the entity bean instance to remove.public boolean exists(SmartKey smartKey, EntityImpl imp) throws BMPException
smartKey
- the primary key of the beanpublic java.util.Enumeration findAll(EntityImpl impl) throws BMPException
impl
- an uniitialized entity bean instance to use.public java.util.Enumeration findBySchemaGroupName(java.lang.String groupName, EntityImpl impl) throws BMPException
Since document schemas don't have group names, this returns all.
findAll(com.beasys.commerce.foundation.EntityImpl)
public 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 |