//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: @Override public Object nullSafeGet(java.sql.ResultSet arg0, String[] arg1, Object arg2) throws org.hibernate.HibernateException, java.sql.SQLException public override object nullSafeGet(ResultSet arg0, string[] arg1, object arg2) { object rowCode = base.nullSafeGet(arg0, arg1, arg2); if (rowCode == null || provider == null) { return(""); } string groupCodeStr = rowCode.ToString(); int index = groupCodeStr.IndexOf(" - ", StringComparison.Ordinal); if (index == -1) { return(""); } groupCodeStr = groupCodeStr.Substring(0, index); groupCodeStr = GroupCodeExtractor.extractCodeLevels(groupCodeStr, provider.getGroupCodeStyle(codeType))[level - 1]; if (string.ReferenceEquals(groupCodeStr, null)) { return(""); } if (groupCodeField == GROUP_CODE_CODE) { string separator = provider.getGroupCodeSeparator(codeType); return(StringUtils.replaceAll(groupCodeStr, ".", separator)); } GroupCode groupCode = provider.getGroupCodeCache(codeType).getGroupCode(groupCodeStr); if (groupCode == null) { return(""); } if (groupCodeField == GROUP_CODE_TITLE) { return(groupCode.Title); } else if (groupCodeField == GROUP_CODE_ITEM_CODE) { return(((ItemCode)groupCode).ItemCode); } else if (groupCodeField == GROUP_CODE_UNIT) { return(provider.getUnitAlias(groupCode.Unit)); } else if (groupCodeField == GROUP_CODE_DESCRIPTION) { return(groupCode.Description); } else if (groupCodeField == GROUP_CODE_QUANTITY) { return(groupCode.Quantity); } return(groupCode.Notes); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: @Override public Object nullSafeGet(java.sql.ResultSet arg0, String[] arg1, Object arg2) throws org.hibernate.HibernateException, java.sql.SQLException public override object nullSafeGet(ResultSet arg0, string[] arg1, object arg2) { string unit = (string)base.nullSafeGet(arg0, arg1, arg2); return(provider.getUnitAlias(unit)); }