1 /***
2 * The contents of this file are subject to the Mozilla Public
3 * License Version 1.1 (the "License"); you may not use this file
4 * except in compliance with the License. You may obtain a copy of
5 * the License at http://www.mozilla.org/MPL/
6 *
7 * Software distributed under the License is distributed on an "AS
8 * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
9 * implied. See the License for the specific language governing
10 * rights and limitations under the License.
11 *
12 * The Original Code is pow2toolkit library.
13 *
14 * The Initial Owner of the Original Code is
15 * Claudio Fratarcangeli
16 *
17 * Portions created by Power Of Two S.R.L. are
18 * Copyright (C) Power Of Two S.R.L.
19 * All Rights Reserved.
20 *
21 * Contributor(s):
22 */
23
24 package com.pow2.dao.datalist;
25
26 import java.sql.ResultSet;
27
28
29
30 /***
31 * ResultSetRowMapper interface.
32 *
33 * @author Claudio Fratarcangeli
34 * @created 5 dicembre 2002
35 */
36 public interface ResultSetRowMapper
37 {
38 /***
39 * Map the input item oject with the values retrieved from the resultSet.
40 *
41 * @param rs the ResultSet object
42 * @param item the item object to map
43 * @return the item object filled with values retrieved from the resultSet
44 */
45 public Object mapRow(ResultSet rs, Object item);
46 }