01: /**
02: * Sequoia: Database clustering technology.
03: * Copyright (C) 2005 AmicoSoft, Inc. dba Emic Networks
04: * Contact: sequoia@continuent.org
05: *
06: * Licensed under the Apache License, Version 2.0 (the "License");
07: * you may not use this file except in compliance with the License.
08: * You may obtain a copy of the License at
09: *
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: */package org.continuent.sequoia.controller.backend;
21:
22: import java.sql.ResultSet;
23: import java.sql.SQLException;
24:
25: import org.continuent.sequoia.common.protocol.Field;
26:
27: /**
28: * This class defines a SequoiaBackendObjectConverter that just returns the
29: * ResultSet object.
30: *
31: * @author <a href="mailto:emmanuel.cecchet@emicnetworks.com">Emmanuel Cecchet</a>
32: * @version 1.0
33: */
34: public class SequoiaBackendObjectConverter implements
35: BackendObjectConverter {
36:
37: /**
38: * @see org.continuent.sequoia.controller.backend.BackendObjectConverter#convertResultSetObject(java.sql.ResultSet,
39: * int, Field)
40: */
41: public Object convertResultSetObject(ResultSet dbResultSet, int i,
42: Field f) throws SQLException {
43: Object object = dbResultSet.getObject(i + 1);
44: return object;
45: }
46:
47: }
|