© 2001 BEA Systems, Inc.

com.beasys.commerce.foundation.property
Class PropertyMetaDataCRUD

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

public class PropertyMetaDataCRUD
extends java.lang.Object

PropertyMetaDataCRUD provides the persistence methods for PropertyMetaData when using BMP.

PropertyMetaDataCRUD methods are invoked by PropertyMetaDataSmartBMP.


Constructor Summary
PropertyMetaDataCRUD()
           
 
Method Summary
static void create(java.sql.Connection connection, PropertyMetaDataImpl propertyMetaData)
          Creates a single row in the database, ONLY using primary key information.
static void delete(java.sql.Connection connection, long schemaId)
          Deletes all PMD rows associated with a Schema
static void delete(java.sql.Connection connection, PropertyMetaDataImpl propertyMetaData)
          Deletes a single row in the database table WLCS_PROP_MD, and all the associated row(s) in the type-specific tables
static boolean exists(java.sql.Connection connection, java.lang.Object key)
          Tests for the existence of a given PropertyMetaData in the database
static java.util.Map refresh(java.sql.Connection connection, SchemaImpl schema)
          Refresh the attibutes of all PropertyMetaDataImpl instances associated with the given Schema with values from the database
static void update(java.sql.Connection connection, PropertyMetaDataImpl propertyMetaData)
          Updates the given PropertyMetaData instance in the database
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyMetaDataCRUD

public PropertyMetaDataCRUD()
Method Detail

create

public static void create(java.sql.Connection connection,
                          PropertyMetaDataImpl propertyMetaData)
                   throws BMPException
Creates a single row in the database, ONLY using primary key information. The database provides well-defined default values for the non-null fields.
Parameters:
connection - the database connection
propertyMetaData - the instance of PropertyMetaDataImpl to be inserted into the database.

delete

public static void delete(java.sql.Connection connection,
                          long schemaId)
                   throws BMPException
Deletes all PMD rows associated with a Schema
Parameters:
connection - the database connection
schemaId - the key value of the Schema

delete

public static void delete(java.sql.Connection connection,
                          PropertyMetaDataImpl propertyMetaData)
                   throws BMPException
Deletes a single row in the database table WLCS_PROP_MD, and all the associated row(s) in the type-specific tables
Parameters:
connection - the database connection
schemaId - the schemaId used to lookup in the WLCS_PROP_MD table
propertyName - the propertyName to delete

exists

public static boolean exists(java.sql.Connection connection,
                             java.lang.Object key)
                      throws BMPException
Tests for the existence of a given PropertyMetaData in the database
Parameters:
connection - the database connection to use
key - the instance of PropertyMetaDataImpl to search for

update

public static void update(java.sql.Connection connection,
                          PropertyMetaDataImpl propertyMetaData)
                   throws BMPException
Updates the given PropertyMetaData instance in the database
Parameters:
connection - the database connection
propertyMetaData - the instance of PropertyMetaDataImpl to update

refresh

public static java.util.Map refresh(java.sql.Connection connection,
                                    SchemaImpl schema)
                             throws BMPException
Refresh the attibutes of all PropertyMetaDataImpl instances associated with the given Schema with values from the database
Parameters:
connection - the database connection
source - for belongings, this is the Impl class for the belonging. for entity beans, this is the primary key class.

© 2001 BEA Systems, Inc.

Copyright © 2001 BEA Systems, Inc. All Rights Reserved