public Map < String , Object > getFieldData ( Map < String , Object > properties ) { Map < String , Object > propReturn = null ; if ( properties != null ) { propReturn = new Hashtable < String , Object > ( ) ; for ( int i = 1 ; ; i ++ ) { String strFieldNumber = DBParams . FIELD + Integer . toString ( i ) ; String strFieldName = ( String ) properties . get ( strFieldNumber ) ; if ( strFieldName == null ) break ; // Done. Record record = this . getMainRecord ( ) ; if ( strFieldName . indexOf ( ' ' ) != - 1 ) { record = this . getRecord ( strFieldName . substring ( 0 , strFieldName . indexOf ( ' ' ) ) ) ; strFieldName = strFieldName . substring ( strFieldName . indexOf ( ' ' ) + 1 ) ; } BaseField field = null ; if ( record != null ) field = record . getField ( strFieldName ) ; if ( field != null ) propReturn . put ( strFieldNumber , field . getData ( ) ) ; } } return propReturn ; }
GetFieldData Method .