Tim-connector: Contract for OrderSyncInfo

An interface that OrderSyncInfoDAO implements.
This commit is contained in:
Miciele Ghiorghis 2013-01-16 17:16:06 +01:00 committed by Manuel Rego Casasnovas
parent 8869325b60
commit b459606e72

View file

@ -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 <http://www.gnu.org/licenses/>.
*/
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 <m.ghiorghis@antoniusziekenhuis.nl>
*/
public interface IOrderSyncInfoDAO extends IGenericDAO<OrderSyncInfo, Long> {
/**
* Search last sychronized info for the specified <code>{@link Order}</code>
*
* @param order
* the order to search for
*
* @return Last synchronized info
*/
OrderSyncInfo findByOrderLastSynchronizedInfo(Order order);
/**
* Search last synchronized infos for the specified
* <code>{@link Order}</code>
*
* @param order
* the order to search for
*
* @return list of last synchronized infos
*/
List<OrderSyncInfo> findByOrderLastSynchronizedInfos(Order order);
}