public OneParam(string p) { var s = p.Trim().Split(' '); if (s.Length > 3 || s.Length < 2) { valid = false; return; } bool p_count_3 = s.Length == 3; if (p_count_3) { if (s[0].Contains("OUT")) { pct = ParamCallType.OUT; } else { valid = false; return; } } param_name = (p_count_3 ? s[1] : s[0]).Trim(); var type = SqlToJava.ToJavaType((p_count_3 ? s[2] : s[1]).Trim()); if (type.Item1 == false) { valid = false; return; } param_type = type.Item2; }
public OneParam(string _param_name, string _param_type, ParamCallType _pct) { param_name = _param_name; param_type = _param_type; pct = _pct; }