01: package com.jat.integration.db.plugin;
02:
03: import com.jat.business.BusinessObjectProperties;
04: import com.jat.integration.IntegrationException;
05:
06: /**
07: * <p>Title: JAT</p>
08: * <p>Description: Use an instance of this intreface to check the returned parameters of a:
09: * <ul>
10: * <li>query (insert or update)</li>
11: * <li>stored procedure or function</li>
12: * </ul>
13: * </p>
14: * <p>Copyright: Copyright (c) 2004 -2005 Stefano Fratini (stefano.fratini@gmail.com)</p>
15: * <p>Distributed under the terms of the GNU Lesser General Public License, v2.1 or later</p>
16: * @author stf
17: * @version 1.1
18: */
19:
20: public interface CheckReturnPlugin {
21: /**
22: * check the parameters stored into {@link com.jat.business.BusinessObjectProperties} object
23: * and return the object itself (modified or not)
24: * @param properties as result of a database excecution
25: * @return the same properties (eventually modified)
26: * @throws IntegrationException whenever the operation needs to be rollbacked.
27: */
28: public BusinessObjectProperties check(
29: BusinessObjectProperties properties)
30: throws IntegrationException;
31: }
|