public static int getOriginalRowNumInHiddenColumn ( final Row row ) { if ( row != null ) { Cell cell = row . getCell ( TieConstants . HIDDEN_ORIGIN_ROW_NUMBER_COLUMN , MissingCellPolicy . CREATE_NULL_AS_BLANK ) ; String rowNum = cell . getStringCellValue ( ) ; try { if ( ( rowNum != null ) && ( ! rowNum . isEmpty ( ) ) && ( WebSheetUtility . isNumeric ( rowNum ) ) ) { return Integer . parseInt ( rowNum ) ; } } catch ( Exception ex ) { LOG . log ( Level . SEVERE , "getOriginalRowNumInHiddenColumn rowNum = " + rowNum + " error = " + ex . getLocalizedMessage ( ) , ex ) ; } } return - 1 ; }
Gets the original row num in hidden column .