From b459606e72128d75ca6f9d42c15a2ab46aee60ae Mon Sep 17 00:00:00 2001 From: Miciele Ghiorghis Date: Wed, 16 Jan 2013 17:16:06 +0100 Subject: [PATCH] Tim-connector: Contract for OrderSyncInfo An interface that OrderSyncInfoDAO implements. --- .../orders/daos/IOrderSyncInfoDAO.java | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 libreplan-business/src/main/java/org/libreplan/business/orders/daos/IOrderSyncInfoDAO.java diff --git a/libreplan-business/src/main/java/org/libreplan/business/orders/daos/IOrderSyncInfoDAO.java b/libreplan-business/src/main/java/org/libreplan/business/orders/daos/IOrderSyncInfoDAO.java new file mode 100644 index 000000000..1973be538 --- /dev/null +++ b/libreplan-business/src/main/java/org/libreplan/business/orders/daos/IOrderSyncInfoDAO.java @@ -0,0 +1,56 @@ +/* + * This file is part of LibrePlan + * + * Copyright (C) 2013 St. Antoniusziekenhuis + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +package org.libreplan.business.orders.daos; + +import java.util.List; + +import org.libreplan.business.common.daos.IGenericDAO; +import org.libreplan.business.orders.entities.Order; +import org.libreplan.business.orders.entities.OrderSyncInfo; + +/** + * Contract for {@link OrderSyncInfoDAO} + * + * @author Miciele Ghiorghis + */ +public interface IOrderSyncInfoDAO extends IGenericDAO { + + /** + * Search last sychronized info for the specified {@link Order} + * + * @param order + * the order to search for + * + * @return Last synchronized info + */ + OrderSyncInfo findByOrderLastSynchronizedInfo(Order order); + + /** + * Search last synchronized infos for the specified + * {@link Order} + * + * @param order + * the order to search for + * + * @return list of last synchronized infos + */ + List findByOrderLastSynchronizedInfos(Order order); + +}