BEA Systems, Inc.

com.beasys.commerce.foundation.property
Class SchemaSmartBMP

java.lang.Object
  |
  +--com.beasys.commerce.foundation.property.SchemaSmartBMP

public class SchemaSmartBMP
extends java.lang.Object
implements SmartBMP


Constructor Summary
SchemaSmartBMP()
          Default constructor.
 
Method Summary
 void create(SmartKey smartKey, EntityImpl entityImpl)
          Inserts a row representing the Schema bean in the persistent store.
 boolean exists(SmartKey smartKey)
          Verifies if a bean with the specified primary key exists in the persistent store.
 java.util.Enumeration findAll()
          Finds all the Schema beans in the persistent store.
 java.util.Enumeration findBySchemaGroupName(java.lang.String schemaGroupName)
          Finds the Schema beans that belong to the specified schemaGroupName from the persistent store.
 void refresh(SmartKey smartKey, EntityImpl entityImpl)
          Sets the fields of a Schema bean from the persistent store.
 void remove(SmartKey smartKey, EntityImpl entityImpl)
          Removes the bean specified by the primary key from the persistent store.
 void setJNDIContext(javax.naming.Context JNDIContext)
          Informs the SmartBMP of JNDIContext.
 void update(SmartKey smartKey, EntityImpl entityImpl)
          Updates the Schema bean's in the persistent store.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaSmartBMP

public SchemaSmartBMP()
Default constructor. Does nothing.
Method Detail

create

public void create(SmartKey smartKey,
                   EntityImpl entityImpl)
            throws BMPException
Inserts a row representing the Schema bean in the persistent store.
Specified by:
create in interface SmartBMP
Parameters:
smartKey - the Schema bean's primary key
entityImpl - reference to the Schema bean
Throws:
BMPException - raised if the row can not be created

refresh

public void refresh(SmartKey smartKey,
                    EntityImpl entityImpl)
             throws BMPException
Sets the fields of a Schema bean from the persistent store.
Specified by:
refresh in interface SmartBMP
Parameters:
smartKey - the Schema bean's primary key
entityImpl - reference to the Schema bean
Throws:
BMPException - raised if the bean's record is not found or an SQL error occured.

update

public void update(SmartKey smartKey,
                   EntityImpl entityImpl)
            throws BMPException
Updates the Schema bean's in the persistent store.
Specified by:
update in interface SmartBMP
Parameters:
smartKey - the Schema bean's primary key
entityImpl - reference to the Schema bean
Throws:
BMPException - raised if the bean's record is not found or an SQL error occured.

remove

public void remove(SmartKey smartKey,
                   EntityImpl entityImpl)
            throws BMPException
Removes the bean specified by the primary key from the persistent store. Besides removing the schema bean with the primary key smartKey, this method also removes the property meta data related to the schema.
Specified by:
remove in interface SmartBMP
Parameters:
smartKey - the Schema bean's primary key
entityImpl - reference to the Schema bean
Throws:
BMPException - raised if the bean's record is not found or an SQL error occured.

exists

public boolean exists(SmartKey smartKey)
               throws BMPException
Verifies if a bean with the specified primary key exists in the persistent store.
Specified by:
exists in interface SmartBMP
Parameters:
smartKey - the Schema bean's primary key
Throws:
BMPException - raised if the bean's record is not found or an SQL error occured.

findAll

public java.util.Enumeration findAll()
                              throws BMPException
Finds all the Schema beans in the persistent store.
Specified by:
findAll in interface SmartBMP
Throws:
BMPException - raised if the bean's record is not found or an SQL error occured.

findBySchemaGroupName

public java.util.Enumeration findBySchemaGroupName(java.lang.String schemaGroupName)
                                            throws javax.ejb.FinderException
Finds the Schema beans that belong to the specified schemaGroupName from the persistent store.
Throws:
BMPException - raised if the bean's record is not found or an SQL error occured.

setJNDIContext

public void setJNDIContext(javax.naming.Context JNDIContext)
                    throws BMPException
Informs the SmartBMP of JNDIContext. The SmartBMP relies on properties in the bean's deployment descriptor to create the SmartConnectionPool instance.
Specified by:
setJNDIContext in interface SmartBMP
Parameters:
JNDIContext - the bean's JNDIContext.

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved