Class SuppliersDAO
java.lang.Object
br.com.pethub.dao.SuppliersDAO
This class is responsible for managing the data access for the Suppliers in the application.
It provides methods to add, edit, delete suppliers, list suppliers, search suppliers by name, and consult suppliers.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSuppliers
(Suppliers obj) This method is used to add a supplier to the database.consultSuppliers
(String name) This method is used to consult a supplier by name.void
deleteSuppliers
(Suppliers obj) This method is used to delete a supplier from the database.void
editSuppliers
(Suppliers obj) This method is used to edit a supplier in the database.This method is used to retrieve a list of all suppliers from the database.searchSuppliers
(String name) This method is used to search for suppliers by name.
-
Constructor Details
-
SuppliersDAO
public SuppliersDAO()The constructor method of the SuppliersDAO class.
-
-
Method Details
-
addSuppliers
This method is used to add a supplier to the database.- Parameters:
obj
- The supplier to be added.
-
editSuppliers
This method is used to edit a supplier in the database.- Parameters:
obj
- The supplier with the updated details.
-
deleteSuppliers
This method is used to delete a supplier from the database.- Parameters:
obj
- The supplier to be deleted.
-
listSuppliers
-
searchSuppliers
-
consultSuppliers
-