public final class ServiceContractDAO extends Object implements IServiceContractDAO
| Modifier and Type | Field and Description |
|---|---|
static String |
QUERY_PARAM_ACTIVE |
static String |
QUERY_PARAM_CLIENT_CODE |
static String |
QUERY_PARAM_CONTRACT_NAME |
static String |
QUERY_PARAM_END_DATE |
static String |
QUERY_PARAM_START_DATE |
BEAN_NAME| Constructor and Description |
|---|
ServiceContractDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
close(ServiceContract serviceContract,
fr.paris.lutece.portal.service.plugin.Plugin plugin) |
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 clientCode,
fr.paris.lutece.portal.service.plugin.Plugin plugin) |
List<ServiceContract> |
selectAllServiceContractsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the service contracts and returns them as a list
|
List<Integer> |
selectFilterdIdServiceContractsList(Map<String,String> params,
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<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
|
void |
store(ServiceContract serviceContract,
int clientApplicationId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
public static final String QUERY_PARAM_ACTIVE
public static final String QUERY_PARAM_CONTRACT_NAME
public static final String QUERY_PARAM_CLIENT_CODE
public static final String QUERY_PARAM_START_DATE
public static final String QUERY_PARAM_END_DATE
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 clientCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectActiveServiceContract in interface IServiceContractDAOpublic void close(ServiceContract serviceContract, fr.paris.lutece.portal.service.plugin.Plugin plugin)
close in interface IServiceContractDAOpublic List<Integer> selectFilterdIdServiceContractsList(Map<String,String> params, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectFilterdIdServiceContractsList 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<Integer> selectIdServiceContractsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectIdServiceContractsList 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 contractpublic List<ServiceContract> selectAllServiceContractsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
IServiceContractDAOselectAllServiceContractsList in interface IServiceContractDAOplugin - the pluginCopyright © 2023 City of Paris. All rights reserved.