public boolean readThisMethod ( String strMethodName ) { Record recClassInfo = this . getMainRecord ( ) ; LogicFile recLogicFile = ( LogicFile ) this . getRecord ( LogicFile . LOGIC_FILE_FILE ) ; try { String strClassName = recClassInfo . getField ( ClassInfo . CLASS_NAME ) . getString ( ) ; recLogicFile . getField ( LogicFile . METHOD_CLASS_NAME ) . setString ( strClassName ) ; recLogicFile . getField ( LogicFile . METHOD_NAME ) . setString ( strMethodName ) ; recLogicFile . setKeyArea ( LogicFile . METHOD_CLASS_NAME_KEY ) ; if ( recLogicFile . seek ( "=" ) ) return true ; else { // Set up a fake record and return recLogicFile . handleNewRecord ( false ) ; // Clear the record recLogicFile . getField ( LogicFile . METHOD_CLASS_NAME ) . setString ( strClassName ) ; recLogicFile . getField ( LogicFile . METHOD_NAME ) . setString ( strMethodName ) ; return false ; } } catch ( DBException ex ) { ex . printStackTrace ( ) ; } finally { recLogicFile . setKeyArea ( LogicFile . SEQUENCE_KEY ) ; // set this back } return false ; }
Read this method .