01: /*
02: * Copyright 2001-2007 Geert Bevin <gbevin[remove] at uwyn dot com>
03: * Distributed under the terms of either:
04: * - the common development and distribution license (CDDL), v1.0; or
05: * - the GNU Lesser General Public License, v2.1 or later
06: * $Id: org_firebirdsql_jdbc_FBDriver.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.cmf.dam.contentstores.rawstoredrivers;
09:
10: import com.uwyn.rife.database.*;
11: import com.uwyn.rife.database.queries.*;
12: import java.sql.*;
13:
14: public class org_firebirdsql_jdbc_FBDriver extends generic {
15: public org_firebirdsql_jdbc_FBDriver(Datasource datasource) {
16: super (datasource);
17: }
18:
19: protected String getContentSizeColumnName() {
20: return "contentsize";
21: }
22:
23: protected DbPreparedStatement getStreamPreparedStatement(
24: Query query, DbConnection connection) {
25: DbPreparedStatement statement = connection
26: .getPreparedStatement(query);
27: statement.setFetchDirection(ResultSet.FETCH_FORWARD);
28: statement.setFetchSize(1);
29: return statement;
30: }
31: }
|