KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > continuent > sequoia > controller > backend > SequoiaBackendObjectConverter


1 /**
2  * Sequoia: Database clustering technology.
3  * Copyright (C) 2005 AmicoSoft, Inc. dba Emic Networks
4  * Contact: sequoia@continuent.org
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  *
18  * Initial developer(s): Emmanuel Cecchet.
19  * Contributor(s): ______________________.
20  */

21
22 package org.continuent.sequoia.controller.backend;
23
24 import java.sql.ResultSet JavaDoc;
25 import java.sql.SQLException JavaDoc;
26
27 import org.continuent.sequoia.common.protocol.Field;
28
29 /**
30  * This class defines a SequoiaBackendObjectConverter that just returns the
31  * ResultSet object.
32  *
33  * @author <a HREF="mailto:emmanuel.cecchet@emicnetworks.com">Emmanuel Cecchet</a>
34  * @version 1.0
35  */

36 public class SequoiaBackendObjectConverter implements BackendObjectConverter
37 {
38
39   /**
40    * @see org.continuent.sequoia.controller.backend.BackendObjectConverter#convertResultSetObject(java.sql.ResultSet,
41    * int, Field)
42    */

43   public Object JavaDoc convertResultSetObject(ResultSet JavaDoc dbResultSet, int i, Field f)
44       throws SQLException JavaDoc
45   {
46     Object JavaDoc object = dbResultSet.getObject(i + 1);
47     return object;
48   }
49
50 }
51
Popular Tags