© 2001 BEA Systems, Inc.

com.beasys.commerce.foundation.property
Class SchemaCRUD

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

public class SchemaCRUD
extends java.lang.Object

SchemaCRUD provides the persistence methods for Schema when using standard JDBC.

PropertyMetaDataCRUD methods are invoked by SchemaSmartBMP.


Constructor Summary
SchemaCRUD()
           
 
Method Summary
static void create(java.sql.Connection connection, SchemaPk schemaPk, SchemaImpl schemaImpl)
          Inserts a row into WLCS_SCHEMA table
static void delete(java.sql.Connection connection, SchemaPk schemaPk, SchemaImpl schemaImpl)
          Deletes a row in WLCS_SCHEMA and its associated PropertyMetaData.
static boolean exists(java.sql.Connection connection, SchemaPk schemaPk)
          Test for the existence of a Schema in the database with the given primary key
static void refresh(java.sql.Connection connection, SchemaPk schemaPk, SchemaImpl schemaImpl)
          Refresh the Schema values from the database
static void update(java.sql.Connection connection, SchemaPk schemaPk, SchemaImpl schemaImpl)
          Updates the description of an existing Schema
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaCRUD

public SchemaCRUD()
Method Detail

create

public static void create(java.sql.Connection connection,
                          SchemaPk schemaPk,
                          SchemaImpl schemaImpl)
                   throws BMPException
Inserts a row into WLCS_SCHEMA table
Parameters:
connection - the database connection
schemaPk - the SchemaPk instance containing the primary key value for the new row
schemaImpl - the SchemaImpl bean instance. Used to set the generated schemaId

delete

public static void delete(java.sql.Connection connection,
                          SchemaPk schemaPk,
                          SchemaImpl schemaImpl)
                   throws BMPException
Deletes a row in WLCS_SCHEMA and its associated PropertyMetaData.
Parameters:
connection - the database connection
schemaPk - the SchemaPk instance containing the primary key value to delete
schemaImpl - the SchemaImpl bean instance containing the schemaId used to delete property meta data

exists

public static boolean exists(java.sql.Connection connection,
                             SchemaPk schemaPk)
                      throws BMPException
Test for the existence of a Schema in the database with the given primary key
Parameters:
connection - the database connection
schemaPk - the SchemaPk instance containing the primary key to find
Returns:
true if the Schema row exists

update

public static void update(java.sql.Connection connection,
                          SchemaPk schemaPk,
                          SchemaImpl schemaImpl)
                   throws BMPException
Updates the description of an existing Schema
Parameters:
connection - the database connection
schemaPk - the SchemaPk instance containing the key values of the Schema to update
schemaImpl - the SchemaImpl instance that holds the source data

refresh

public static void refresh(java.sql.Connection connection,
                           SchemaPk schemaPk,
                           SchemaImpl schemaImpl)
                    throws BMPException
Refresh the Schema values from the database
Parameters:
connection - the database connection
schemaPk - the SchemaPk instance containing the key values of the Schema to refresh
schemaImpl - the SchemaImpl instance to refresh

© 2001 BEA Systems, Inc.

Copyright © 2001 BEA Systems, Inc. All Rights Reserved