Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package org.firebirdsql.jdbc;
  
  
JDBC 4.2 implementation of java.sql.Statement

Author(s):
Roman Rokytskyy
Mark Rotteveel
 
 public class FBStatement extends AbstractStatement {
 
     public FBStatement(GDSHelper cint rsTypeint rsConcurrencyint rsHoldability,
             FBObjectListener.StatementListener statementListenerthrows SQLException {
         super(crsTypersConcurrencyrsHoldabilitystatementListener);
     }
     
         throw new FBDriverNotCapableException();
     }

    

Jaybird does not support large update counts, the return value of this method is the same as AbstractStatement.getUpdateCount().

 
     @Override
     public long getLargeUpdateCount() throws SQLException {
         return getUpdateCount();
     }

    

Jaybird does not support maxRows exceeding java.lang.Integer.MAX_VALUE, if a larger value is set, Jaybird will add a warning to the statement and reset the maximum to 0.

 
     @Override
     public void setLargeMaxRows(long maxthrows SQLException {
         if (max > .) {
             addWarning(new SQLWarning(
                     String.format("Implementation limit: maxRows cannot exceed Integer.MAX_VALUE, value was %d, reset to 0"max),
                     .));
             max = 0;
         }
         setMaxRows((intmax);
     }

    

Jaybird does not support maxRows exceeding java.lang.Integer.MAX_VALUE, the return value of this method is the same as AbstractStatement.getMaxRows().

 
     @Override
     public long getLargeMaxRows() throws SQLException {
         return getMaxRows();
     }

    

Jaybird does not support update counts exceeding java.lang.Integer.MAX_VALUE, this method calls AbstractStatement.executeBatch() and converts the int-array to a long-array.

 
     @Override
     public long[] executeLargeBatch() throws SQLException {
         int[] updateCountsInt = executeBatch();
         long[] updateCountsLong = new long[updateCountsInt.length];
         for (int i = 0; i < updateCountsInt.lengthi++) {
             updateCountsLong[i] = updateCountsInt[i];
         }
         return updateCountsLong;
     }

    

Jaybird does not support update counts exceeding java.lang.Integer.MAX_VALUE, this method calls AbstractStatement.executeUpdate(java.lang.String).

 
     @Override
     public long executeLargeUpdate(String sqlthrows SQLException {
         return executeUpdate(sql);
     }

    

Jaybird does not support update counts exceeding java.lang.Integer.MAX_VALUE, this method calls AbstractStatement.executeUpdate(java.lang.String,int).

    @Override
    public long executeLargeUpdate(String sqlint autoGeneratedKeysthrows SQLException {
        return executeUpdate(sqlautoGeneratedKeys);
    }

    

Jaybird does not support update counts exceeding java.lang.Integer.MAX_VALUE, this method calls AbstractStatement.executeUpdate(java.lang.String,int[]).

    @Override
    public long executeLargeUpdate(String sqlint[] columnIndexesthrows SQLException {
        return executeUpdate(sqlcolumnIndexes);
    }

    

Jaybird does not support update counts exceeding java.lang.Integer.MAX_VALUE, this method calls AbstractStatement.executeUpdate(java.lang.String,java.lang.String[]).

    @Override
    public long executeLargeUpdate(String sqlString[] columnNamesthrows SQLException {
        return executeUpdate(sqlcolumnNames);
    }
New to GrepCode? Check out our FAQ X