public final class CustomerDAO extends Object implements ICustomerDAO
Constructor and Description |
---|
CustomerDAO() |
Modifier and Type | Method and Description |
---|---|
void |
delete(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
int |
insert(Customer customer,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
Customer |
load(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table
|
int |
newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key
|
Customer |
selectByGuid(String strGuid,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find a customer by its GUID
|
int |
selectCustomersCount(fr.paris.lutece.portal.service.plugin.Plugin plugin)
The number of customers
|
List<Customer> |
selectCustomersList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the customer objects and returns them as a collection
|
List<Integer> |
selectIdCustomersList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the id of all the customer objects and returns them as a collection
|
void |
store(Customer customer,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- The Pluginpublic int insert(Customer customer, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert
in interface ICustomerDAO
customer
- instance of the Customer object to insertplugin
- the Pluginpublic Customer load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load
in interface ICustomerDAO
nKey
- The identifier of the customerplugin
- the Pluginpublic void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete
in interface ICustomerDAO
nKey
- The identifier of the Customer to deleteplugin
- the Pluginpublic void store(Customer customer, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store
in interface ICustomerDAO
customer
- the reference of the Customerplugin
- the Pluginpublic List<Customer> selectCustomersList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectCustomersList
in interface ICustomerDAO
plugin
- the Pluginpublic List<Integer> selectIdCustomersList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectIdCustomersList
in interface ICustomerDAO
plugin
- the Pluginpublic Customer selectByGuid(String strGuid, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectByGuid
in interface ICustomerDAO
strGuid
- The GUIDplugin
- The Pluginpublic int selectCustomersCount(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectCustomersCount
in interface ICustomerDAO
plugin
- The PluginCopyright © 2016 City of Paris. All rights reserved.