© 2002 BEA Systems, Inc.


com.beasys.commerce.ebusiness.order
Class OrderCRUD

java.lang.Object
  |
  +--com.beasys.commerce.ebusiness.order.OrderCRUD

public class OrderCRUD
extends java.lang.Object


Constructor Summary
OrderCRUD()
           
 
Method Summary
static void create(java.sql.Connection connection, java.lang.Object key)
          Creates a single row in the database, ONLY using primary key information.
static void delete(java.sql.Connection connection, java.lang.Object key)
          Deletes a single row in the database, ONLY using primary key information.
static boolean exists(java.sql.Connection connection, java.lang.Object key)
          Deletes a single row in the database, ONLY using primary key information.
static java.util.Collection findByCustomer(java.sql.Connection connection, java.lang.String identifier)
           
static java.util.Collection findByDate(java.sql.Connection connection, java.sql.Date from, java.sql.Date to)
           
static java.util.Collection findByStatus(java.sql.Connection connection, java.lang.String status)
           
static void refresh(java.sql.Connection connection, java.lang.Object key, java.lang.Object target)
          Updates the datbase, using using primary key information in the where clause.
static void refreshDirect(java.sql.Connection connection, java.lang.Object key, java.lang.Object target)
          Refresh from database, using primary key information in the where clause.
static void update(java.sql.Connection connection, java.lang.Object key, java.lang.Object source)
          Updates the datbase, using using primary key information in the where clause.
static void updateDirect(java.sql.Connection connection, java.lang.Object key, java.lang.Object source)
          Updates the database, using primary key information in the where clause.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrderCRUD

public OrderCRUD()
Method Detail

create

public static void create(java.sql.Connection connection,
                          java.lang.Object key)
                   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
source - for belongings, this is the Impl class for the belonging. for entity beans, this is the primary key class.

refresh

public static void refresh(java.sql.Connection connection,
                           java.lang.Object key,
                           java.lang.Object target)
                    throws BMPException
Updates the datbase, using using primary key information in the where clause.

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.

update

public static void update(java.sql.Connection connection,
                          java.lang.Object key,
                          java.lang.Object source)
                   throws BMPException
Updates the datbase, using using primary key information in the where clause.

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.

delete

public static void delete(java.sql.Connection connection,
                          java.lang.Object key)
                   throws BMPException
Deletes a single row in the database, ONLY using primary key information.

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.

exists

public static boolean exists(java.sql.Connection connection,
                             java.lang.Object key)
                      throws BMPException
Deletes a single row in the database, ONLY using primary key information.

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.

updateDirect

public static void updateDirect(java.sql.Connection connection,
                                java.lang.Object key,
                                java.lang.Object source)
                         throws BMPException
Updates the database, using primary key information in the where clause.

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.

refreshDirect

public static void refreshDirect(java.sql.Connection connection,
                                 java.lang.Object key,
                                 java.lang.Object target)
                          throws BMPException
Refresh from database, using primary key information in the where clause.

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.

findByCustomer

public static java.util.Collection findByCustomer(java.sql.Connection connection,
                                                  java.lang.String identifier)
                                           throws BMPException

findByStatus

public static java.util.Collection findByStatus(java.sql.Connection connection,
                                                java.lang.String status)
                                         throws BMPException

findByDate

public static java.util.Collection findByDate(java.sql.Connection connection,
                                              java.sql.Date from,
                                              java.sql.Date to)
                                       throws BMPException

© 2002 BEA Systems, Inc.

Copyright © 2002 BEA Systems, Inc. All Rights Reserved