Code example for CallableStatement

Methods: setNull

0
		if (value != null) {
			logger.debug("setDouble(" + pos + ", " + value + ")");
			stmt.setDouble(pos, value.doubleValue());
		} else { 
			logger.debug("setNull(" + pos + ", Types.DOUBLE)");
			stmt.setNull(pos, Types.DOUBLE);
		} 
	} 
 
	protected void setDouble(CallableStatement stmt, int pos, double value)
			throws SQLException { 
		logger.debug("setDouble(" + pos + ", " + value + ")");
		stmt.setDouble(pos, value);
	} 
 
	protected void setBoolean(CallableStatement stmt, int pos, Boolean value)
			throws SQLException { 
		if (value != null) {
			logger.debug("setBoolean(" + pos + ", " + value + ")");
			//stmt.setString(pos, value.booleanValue() ? "Y" : "N"); 
			stmt.setBoolean(pos, value);