Class ClientDAO
java.lang.Object
fr.paris.lutece.plugins.identityimport.business.ClientDAO
- All Implemented Interfaces:
IClientDAO
This class provides Data Access methods for Client objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablevoidInsert a new record in the table.load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableselectClientByClientCode(fr.paris.lutece.portal.service.plugin.Plugin plugin, String clientCode) Load the data from the table of the Client corresponding to the given client code.selectClientsList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the client objects and returns them as a listselectClientsListByAppCode(fr.paris.lutece.portal.service.plugin.Plugin plugin, String appCode) Load the data of all the client objects and returns them as a listselectClientsListByIds(fr.paris.lutece.portal.service.plugin.Plugin plugin, List<Integer> listIds) Load the data of all the avant objects and returns them as a listfr.paris.lutece.util.ReferenceListselectClientsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the client objects and returns them as a referenceListselectIdClientsList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the id of all the client objects and returns them as a listvoidUpdate the record in the table
-
Constructor Details
-
ClientDAO
public ClientDAO()
-
-
Method Details
-
insert
Insert a new record in the table.- Specified by:
insertin interfaceIClientDAO- Parameters:
client- instance of the Client object to insertplugin- the Plugin
-
load
Load the data from the table- Specified by:
loadin interfaceIClientDAO- Parameters:
nKey- The identifier of the clientplugin- the Plugin- Returns:
- The instance of the client
-
delete
public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the table- Specified by:
deletein interfaceIClientDAO- Parameters:
nKey- The identifier of the Client to deleteplugin- the Plugin
-
store
Update the record in the table- Specified by:
storein interfaceIClientDAO- Parameters:
client- the reference of the Clientplugin- the Plugin
-
selectClientsList
Load the data of all the client objects and returns them as a list- Specified by:
selectClientsListin interfaceIClientDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the client objects
-
selectIdClientsList
Load the id of all the client objects and returns them as a list- Specified by:
selectIdClientsListin interfaceIClientDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the id of all the client objects
-
selectClientsReferenceList
public fr.paris.lutece.util.ReferenceList selectClientsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the client objects and returns them as a referenceList- Specified by:
selectClientsReferenceListin interfaceIClientDAO- Parameters:
plugin- the Plugin- Returns:
- The referenceList which contains the data of all the client objects
-
selectClientsListByIds
public List<Client> selectClientsListByIds(fr.paris.lutece.portal.service.plugin.Plugin plugin, List<Integer> listIds) Load the data of all the avant objects and returns them as a list- Specified by:
selectClientsListByIdsin interfaceIClientDAO- Parameters:
plugin- the PluginlistIds- liste of ids- Returns:
- The list which contains the data of all the avant objects
-
selectClientByClientCode
public Optional<Client> selectClientByClientCode(fr.paris.lutece.portal.service.plugin.Plugin plugin, String clientCode) Description copied from interface:IClientDAOLoad the data from the table of the Client corresponding to the given client code.- Specified by:
selectClientByClientCodein interfaceIClientDAO- Parameters:
plugin- the pluginclientCode- the client code- Returns:
- The instance of the client
-
selectClientsListByAppCode
public List<Client> selectClientsListByAppCode(fr.paris.lutece.portal.service.plugin.Plugin plugin, String appCode) Description copied from interface:IClientDAOLoad the data of all the client objects and returns them as a list- Specified by:
selectClientsListByAppCodein interfaceIClientDAO- Parameters:
plugin- the PluginappCode- the app code- Returns:
- The list which contains the data of all the client objects
-