Class CustomerRepository
- java.lang.Object
-
- com.aspectran.demo.examples.customer.CustomerRepository
-
@Component @Bean public class CustomerRepository extends java.lang.ObjectThe DAO to retrieve or manipulate customer data.
-
-
Constructor Summary
Constructors Constructor Description CustomerRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanapprove(int id, boolean approved)booleandeleteCustomer(int id)CustomergetCustomer(int id)java.util.List<Customer>getCustomerList()intinsertCustomer(Customer customer)booleanisApproved(int id)booleanisCustomer(int id)booleanupdateCustomer(Customer customer)
-
-
-
Method Detail
-
getCustomer
public Customer getCustomer(int id)
-
isCustomer
public boolean isCustomer(int id)
-
getCustomerList
public java.util.List<Customer> getCustomerList()
-
insertCustomer
public int insertCustomer(Customer customer)
-
updateCustomer
public boolean updateCustomer(Customer customer)
-
deleteCustomer
public boolean deleteCustomer(int id)
-
approve
public boolean approve(int id, boolean approved)
-
isApproved
public boolean isApproved(int id)
-
-