Interface IClientDAO
- All Known Implementing Classes:
ClientDAO
public interface IClientDAO
IClientDAO Interface
-
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
-
Method Details
-
insert
Insert a new record in the table.- Parameters:
client- instance of the Client object to insertplugin- the Plugin
-
store
Update the record in the table- Parameters:
client- the reference of the Clientplugin- the Plugin
-
delete
void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the table- Parameters:
nKey- The identifier of the Client to deleteplugin- the Plugin
-
load
Load the data from the table- Parameters:
nKey- The identifier of the clientplugin- the Plugin- Returns:
- The instance of the client
-
selectClientsList
Load the data of all the client objects and returns them as a list- 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- Parameters:
plugin- the Plugin- Returns:
- The list which contains the id of all the client objects
-
selectClientsReferenceList
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- Parameters:
plugin- the Plugin- Returns:
- The referenceList which contains the data of all the client objects
-
selectClientsListByIds
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- Parameters:
plugin- the PluginlistIds- liste of ids- Returns:
- The list which contains the data of all the avant objects
-
selectClientByClientCode
Optional<Client> selectClientByClientCode(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.- Parameters:
plugin- the pluginclientCode- the client code- Returns:
- The instance of the client
-
selectClientsListByAppCode
List<Client> selectClientsListByAppCode(fr.paris.lutece.portal.service.plugin.Plugin plugin, String appCode) Load the data of all the client objects and returns them as a list- Parameters:
plugin- the PluginappCode- the app code- Returns:
- The list which contains the data of all the client objects
-