public final class DbCustomerHome extends Object
| Modifier and Type | Method and Description |
|---|---|
static DbCustomer |
create(DbCustomer customer)
Create an instance of the customer class
|
static DbCustomer |
findByPrimaryKey(int nKey)
Returns an instance of a customer whose identifier is specified in parameter
|
static List<DbCustomer> |
getCustomersList()
Load the data of all the customer objects and returns them in form of a collection
|
static List<Integer> |
getIdCustomersList()
Load the id of all the customer objects and returns them in form of a collection
|
static void |
remove(int nKey)
Remove the customer whose identifier is specified in parameter
|
static DbCustomer |
update(DbCustomer customer)
Update of the customer which is specified in parameter
|
public static DbCustomer create(DbCustomer customer)
customer - The instance of the DbCustomer which contains the informations to storepublic static DbCustomer update(DbCustomer customer)
customer - The instance of the DbCustomer which contains the data to storepublic static void remove(int nKey)
nKey - The customer Idpublic static DbCustomer findByPrimaryKey(int nKey)
nKey - The customer primary keypublic static List<DbCustomer> getCustomersList()
Copyright © 2016 City of Paris. All rights reserved.