<T> DatabaseProperty(T defaultValue) { this.defaultValue = defaultValue; final String methodName = AvaticaUtils.toCamelCase(name()); try { this.method = DatabaseMetaData.class.getMethod(methodName); } catch (NoSuchMethodException e) { throw new RuntimeException(e); } this.type = AvaticaUtils.box(method.getReturnType()); assert defaultValue == null || defaultValue.getClass() == type; }
public int[] executeBatch() throws SQLException { return AvaticaUtils.toSaturatedInts(executeLargeBatch()); }
public int getUpdateCount() throws SQLException { return AvaticaUtils.toSaturatedInt(updateCount); }
public final int getMaxRows() { return AvaticaUtils.toSaturatedInt(getLargeMaxRows()); }
public final int executeUpdate(String sql) throws SQLException { return AvaticaUtils.toSaturatedInt(executeLargeUpdate(sql)); }