Class OrderDetailsSQL

java.lang.Object
csce331.group13.project2.backend.OrderDetailsSQL

public class OrderDetailsSQL extends Object
Provides data access methods for order details in the database. Handles insertion of records into the order_details table.
Author:
William Clymire
  • Constructor Details

    • OrderDetailsSQL

      public OrderDetailsSQL(Connection conn)
      Constructs an OrderDetailsSQL instance with a database connection.
      Parameters:
      conn - An active database connection.
  • Method Details

    • addOrderDetail

      public void addOrderDetail(OrderDetail detail) throws SQLException
      Adds a new order detail record to the database.
      Parameters:
      detail - The OrderDetail to insert.
      Throws:
      SQLException - if a database error occurs during insertion.