public ColumnModel getColumn ( String colOrFieldName ) { for ( ColumnModel columnModel : columns ) { if ( columnModel . getColumnName ( ) != null && columnModel . getColumnName ( ) . equalsIgnoreCase ( colOrFieldName ) ) return columnModel ; if ( columnModel . getEntityField ( ) != null && columnModel . getEntityField ( ) . equalsIgnoreCase ( colOrFieldName ) ) return columnModel ; } return null ; }
Get ColumnModel by column Name or field name ignore case if not found return null