private static int resolveScaleOrPrecisionExpression(
      String type,
      Field field,
      String attributeName,
      String fieldPath
  ) throws JdbcStageCheckedException {
    """
	Evaluate precision or scale in context of record and given field path.
    """
    String stringValue = field.getAttribute(attributeName);

    try {
      return Integer.parseInt(stringValue);
    } catch (NumberFormatException e) {
      throw new JdbcStageCheckedException(JdbcErrors.JDBC_304, type, fieldPath, attributeName, stringValue, e);
    }
  }
private static int resolveScaleOrPrecisionExpression(
      String type,
      Field field,
      String attributeName,
      String fieldPath
  ) throws JdbcStageCheckedException {
    String stringValue = field.getAttribute(attributeName);

    try {
      return Integer.parseInt(stringValue);
    } catch (NumberFormatException e) {
      throw new JdbcStageCheckedException(JdbcErrors.JDBC_304, type, fieldPath, attributeName, stringValue, e);
    }
  }
private static int resolveScaleOrPrecisionExpression ( String type , Field field , String attributeName , String fieldPath ) throws JdbcStageCheckedException { String stringValue = field . getAttribute ( attributeName ) ; try { return Integer . parseInt ( stringValue ) ; } catch ( NumberFormatException e ) { throw new JdbcStageCheckedException ( JdbcErrors . JDBC_304 , type , fieldPath , attributeName , stringValue , e ) ; } }
Evaluate precision or scale in context of record and given field path.
Evaluate precision or scale in context of record and given field path .