public final class ServiceContractDAO extends Object implements IServiceContractDAO
BEAN_NAME| Constructor and Description |
|---|
ServiceContractDAO() |
| 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 |
deleteFromClientApp(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin) |
void |
insert(ServiceContract serviceContract,
int clientApplicationId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
Optional<ServiceContract> |
load(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table
|
List<ServiceContract> |
loadFromClientApplication(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin) |
List<ServiceContract> |
selectActiveServiceContract(String clientApplicationCode,
fr.paris.lutece.portal.service.plugin.Plugin plugin) |
List<Integer> |
selectIdServiceContractsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the id of all the serviceContract objects and returns them as a list
|
List<ServiceContract> |
selectServiceContractBetweenDate(fr.paris.lutece.portal.service.plugin.Plugin plugin,
Date startingDate,
Date endingDate)
Load the data of all the service contracts between two date and returns them as a list
|
List<ServiceContract> |
selectServiceContractsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the serviceContract objects and returns them as a list
|
List<org.apache.commons.lang3.tuple.ImmutablePair<ServiceContract,String>> |
selectServiceContractsListByIds(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
|
fr.paris.lutece.util.ReferenceList |
selectServiceContractsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the serviceContract objects and returns them as a referenceList
|
void |
store(ServiceContract serviceContract,
int clientApplicationId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
public void insert(ServiceContract serviceContract, int clientApplicationId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface IServiceContractDAOserviceContract - instance of the ServiceContract object to insertplugin - the Pluginpublic Optional<ServiceContract> load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface IServiceContractDAOnKey - The identifier of the serviceContractplugin - the Pluginpublic List<ServiceContract> loadFromClientApplication(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
loadFromClientApplication in interface IServiceContractDAOpublic List<ServiceContract> selectActiveServiceContract(String clientApplicationCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectActiveServiceContract in interface IServiceContractDAOpublic void delete(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface IServiceContractDAOnKey - The identifier of the ServiceContract to deleteplugin - the Pluginpublic void deleteFromClientApp(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteFromClientApp in interface IServiceContractDAOpublic void store(ServiceContract serviceContract, int clientApplicationId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface IServiceContractDAOserviceContract - the reference of the ServiceContractplugin - the Pluginpublic List<ServiceContract> selectServiceContractsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectServiceContractsList in interface IServiceContractDAOplugin - the Pluginpublic List<Integer> selectIdServiceContractsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectIdServiceContractsList in interface IServiceContractDAOplugin - the Pluginpublic fr.paris.lutece.util.ReferenceList selectServiceContractsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectServiceContractsReferenceList in interface IServiceContractDAOplugin - the Pluginpublic List<org.apache.commons.lang3.tuple.ImmutablePair<ServiceContract,String>> selectServiceContractsListByIds(fr.paris.lutece.portal.service.plugin.Plugin plugin, List<Integer> listIds)
selectServiceContractsListByIds in interface IServiceContractDAOplugin - the PluginlistIds - liste of idspublic List<ServiceContract> selectServiceContractBetweenDate(fr.paris.lutece.portal.service.plugin.Plugin plugin, Date startingDate, Date endingDate)
IServiceContractDAOselectServiceContractBetweenDate in interface IServiceContractDAOplugin - the PluginstartingDate - starting date of the contractendingDate - ending date of the contractCopyright © 2023 City of Paris. All rights reserved.