public class LuceneCustomerDAO extends Object implements IIndexCustomerDAO
| Constructor and Description |
|---|
LuceneCustomerDAO(String strIndexPath)
Constructor
|
LuceneCustomerDAO(String strIndexPath,
Boolean bIndexInWebapp)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete(fr.paris.lutece.plugins.grubusiness.business.customer.Customer customer)
Deletes the specified customer from the index
|
void |
deleteAll()
Deletes all the customers from the index
|
void |
insert(fr.paris.lutece.plugins.grubusiness.business.customer.Customer customer)
Inserts the specified customer into the index
|
void |
insert(List<fr.paris.lutece.plugins.grubusiness.business.customer.Customer> listCustomers)
Inserts the specified list of customers into the index
|
fr.paris.lutece.plugins.grubusiness.business.customer.Customer |
load(String strCustomerId) |
String |
search(String strQuery)
Returns a json string for autocomplete purpose
|
List<fr.paris.lutece.plugins.grubusiness.business.customer.Customer> |
selectByFilter(Map<String,String> mapFilter) |
List<fr.paris.lutece.plugins.grubusiness.business.customer.Customer> |
selectByName(String strFirstName,
String strLastName) |
public LuceneCustomerDAO(String strIndexPath, Boolean bIndexInWebapp)
strIndexPath - the index pathbIndexInWebapp - true if the index folder is in the webapp, false otherwisepublic LuceneCustomerDAO(String strIndexPath)
strIndexPath - the index pathpublic void insert(fr.paris.lutece.plugins.grubusiness.business.customer.Customer customer)
throws fr.paris.lutece.plugins.grubusiness.business.indexing.IndexingException
insert in interface IIndexCustomerDAOcustomer - The customer to indexfr.paris.lutece.plugins.grubusiness.business.indexing.IndexingException - if there is an exception during the indexingpublic void insert(List<fr.paris.lutece.plugins.grubusiness.business.customer.Customer> listCustomers) throws fr.paris.lutece.plugins.grubusiness.business.indexing.IndexingException
insert in interface IIndexCustomerDAOlistCustomers - The list of customers to indexfr.paris.lutece.plugins.grubusiness.business.indexing.IndexingException - if there is an exception during the indexingpublic void delete(fr.paris.lutece.plugins.grubusiness.business.customer.Customer customer)
throws fr.paris.lutece.plugins.grubusiness.business.indexing.IndexingException
delete in interface IIndexCustomerDAOcustomer - The customer to deletefr.paris.lutece.plugins.grubusiness.business.indexing.IndexingException - if there is an exception during the deletionpublic List<fr.paris.lutece.plugins.grubusiness.business.customer.Customer> selectByFilter(Map<String,String> mapFilter)
selectByFilter in interface fr.paris.lutece.plugins.grubusiness.business.customer.ICustomerDAOpublic List<fr.paris.lutece.plugins.grubusiness.business.customer.Customer> selectByName(String strFirstName, String strLastName)
selectByName in interface fr.paris.lutece.plugins.grubusiness.business.customer.ICustomerDAOpublic fr.paris.lutece.plugins.grubusiness.business.customer.Customer load(String strCustomerId)
load in interface fr.paris.lutece.plugins.grubusiness.business.customer.ICustomerDAOpublic String search(String strQuery)
strQuery - The querypublic void deleteAll()
throws fr.paris.lutece.plugins.grubusiness.business.indexing.IndexingException
deleteAll in interface IIndexCustomerDAOfr.paris.lutece.plugins.grubusiness.business.indexing.IndexingException - if there is an exception during the deletionCopyright © 2019 City of Paris. All rights reserved.