public final class DbCustomerDAO extends Object implements IDbCustomerDAO
| Constructor and Description |
|---|
DbCustomerDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
void |
insert(DbCustomer customer,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
DbCustomer |
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
|
List<DbCustomer> |
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(DbCustomer 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 void insert(DbCustomer customer, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface IDbCustomerDAOcustomer - instance of the DbCustomer object to insertplugin - the Pluginpublic DbCustomer load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface IDbCustomerDAOnKey - The identifier of the customerplugin - the Pluginpublic void delete(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface IDbCustomerDAOnKey - The identifier of the DbCustomer to deleteplugin - the Pluginpublic void store(DbCustomer customer, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface IDbCustomerDAOcustomer - the reference of the DbCustomerplugin - the Pluginpublic List<DbCustomer> selectCustomersList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectCustomersList in interface IDbCustomerDAOplugin - the Pluginpublic List<Integer> selectIdCustomersList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectIdCustomersList in interface IDbCustomerDAOplugin - the PluginCopyright © 2016 City of Paris. All rights reserved.