public final class CustomerHome extends Object
Modifier and Type | Method and Description |
---|---|
static Customer |
create(Customer customer)
Create an instance of the customer class
|
static Customer |
findByGuid(String strGuid)
Find a customer by its GUID
|
static Customer |
findByPrimaryKey(int nKey)
Returns an instance of a customer whose identifier is specified in parameter
|
static int |
getCustomersCount()
The number of customers
|
static List<Customer> |
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 Customer |
update(Customer customer)
Update of the customer which is specified in parameter
|
public static Customer create(Customer customer)
customer
- The instance of the Customer which contains the informations to storepublic static Customer update(Customer customer)
customer
- The instance of the Customer which contains the data to storepublic static void remove(int nKey)
nKey
- The customer Idpublic static Customer findByPrimaryKey(int nKey)
nKey
- The customer primary keypublic static Customer findByGuid(String strGuid)
strGuid
- The GUIDpublic static List<Customer> getCustomersList()
public static List<Integer> getIdCustomersList()
public static int getCustomersCount()
Copyright © 2016 City of Paris. All rights reserved.