public final Token getNamedObject ( String name , Transaction transaction ) throws ObjectManagerException { final String methodName = "getNamedObject" ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , methodName , new Object [ ] { name , transaction } ) ; // Is the definitive tree assigned? if ( objectManagerState . namedObjects == null ) { if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . exit ( this , cclass , methodName , "via NoRestartableObjectStoresAvailableException" ) ; throw new NoRestartableObjectStoresAvailableException ( this ) ; } // if (objectManagerState.namedObjects == null). TreeMap namedObjectsTree = ( TreeMap ) objectManagerState . namedObjects . getManagedObject ( ) ; Token token = ( Token ) namedObjectsTree . get ( name , transaction ) ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . exit ( this , cclass , methodName , new Object [ ] { token } ) ; return token ; }
Locate a Token by name within this objectManager .