Interface IServiceContractDAO
- All Known Implementing Classes:
ServiceContractDAO
public interface IServiceContractDAO
IServiceContractDAO Interface
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidclose(ServiceContract serviceContract, fr.paris.lutece.portal.service.plugin.Plugin plugin) Close service contractvoiddelete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablevoiddeleteFromClientApp(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) getServiceContractsListWithMinEndDate(fr.paris.lutece.portal.service.plugin.Plugin plugin, Date minEndDate) Load the data of all the service contracts with a min end date as specifiedvoidinsert(ServiceContract serviceContract, int clientApplicationId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a new record in the table.load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableloadFromClientApplication(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) selectActiveServiceContract(String clientCode, fr.paris.lutece.portal.service.plugin.Plugin plugin) get active service contratc list (must contains only one)selectActiveServiceContract(String clientCode, Date specificDate, fr.paris.lutece.portal.service.plugin.Plugin plugin) get active service contratc list (must contains only one) for a specific dateselectAllServiceContractsList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the service contracts and returns them as a listselectFilterdIdServiceContractsList(Map<String, String> params, fr.paris.lutece.portal.service.plugin.Plugin plugin) Select service contract Ids by filtreselectIdServiceContractsList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the id of all the serviceContract objects and returns them as a listselectServiceContractBetweenDate(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 listList<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 listvoidstore(ServiceContract serviceContract, int clientApplicationId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update the record in the tablevoidupdateLastUpdateAuthor(int idService, String authorName, fr.paris.lutece.portal.service.plugin.Plugin plugin) update author
-
Field Details
-
BEAN_NAME
- See Also:
-
-
Method Details
-
insert
void insert(ServiceContract serviceContract, int clientApplicationId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a new record in the table.- Parameters:
serviceContract- instance of the ServiceContract object to insertplugin- the Plugin
-
deleteFromClientApp
void deleteFromClientApp(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) -
store
void store(ServiceContract serviceContract, int clientApplicationId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update the record in the table- Parameters:
serviceContract- the reference of the ServiceContractplugin- the Plugin
-
loadFromClientApplication
List<ServiceContract> loadFromClientApplication(int nKey, fr.paris.lutece.portal.service.plugin.Plugin 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 ServiceContract to deleteplugin- the Plugin
-
load
Load the data from the table- Parameters:
nKey- The identifier of the serviceContractplugin- the Plugin- Returns:
- The instance of the serviceContract
-
selectIdServiceContractsList
Load the id of all the serviceContract objects and returns them as a list- Parameters:
plugin- the Plugin- Returns:
- The list which contains the id of all the serviceContract objects
-
selectServiceContractsListByIds
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- Parameters:
plugin- the PluginlistIds- liste of ids- Returns:
- The list which contains the data of all the avant objects
-
selectServiceContractBetweenDate
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- Parameters:
plugin- the PluginstartingDate- starting date of the contractendingDate- ending date of the contract- Returns:
- The list which contains the data of all the avant objects
-
getServiceContractsListWithMinEndDate
List<ServiceContract> getServiceContractsListWithMinEndDate(fr.paris.lutece.portal.service.plugin.Plugin plugin, Date minEndDate) Load the data of all the service contracts with a min end date as specified- Parameters:
plugin- - the pluginminEndDate- - the min end date- Returns:
- List
-
selectAllServiceContractsList
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- Parameters:
plugin- the plugin- Returns:
- The list which contains the data of all ServiceContract objects
-
selectActiveServiceContract
List<ServiceContract> selectActiveServiceContract(String clientCode, fr.paris.lutece.portal.service.plugin.Plugin plugin) get active service contratc list (must contains only one)- Parameters:
clientCode-plugin-- Returns:
- the list of service contracts
-
selectActiveServiceContract
List<ServiceContract> selectActiveServiceContract(String clientCode, Date specificDate, fr.paris.lutece.portal.service.plugin.Plugin plugin) get active service contratc list (must contains only one) for a specific date- Parameters:
clientCode-specificDate-plugin-- Returns:
- the list of service contracts
-
close
Close service contract- Parameters:
serviceContract-plugin-
-
updateLastUpdateAuthor
void updateLastUpdateAuthor(int idService, String authorName, fr.paris.lutece.portal.service.plugin.Plugin plugin) update author- Parameters:
idService-authorName-plugin-
-
selectFilterdIdServiceContractsList
List<Integer> selectFilterdIdServiceContractsList(Map<String, String> params, fr.paris.lutece.portal.service.plugin.Plugin plugin) Select service contract Ids by filtre- Parameters:
params-plugin-- Returns:
- the list of ids
-