question: @ SuppressWarnings ( "unchecked" ) private HashMap < String , DBObject > loadDBObjects ( Class objectClass ) { HashMap < String , DBObject > objectMap = new HashMap < String , DBObject > ( ) ; DBObject dbObject = new DBObject ( this , objectClass ) ; String objectToLoad = s_logger . localizeMessage ( "object" ) ; String objectsToLoad = s_logger . localizeMessage ( "objects" ) ; String sqlLoadHeaders = null ; String sqlLoadContents = null ; if ( dbObject != null ) { objectToLoad = dbObject . getObjectType ( ) ; objectsToLoad = dbObject . getObjectTypes ( ) ; sqlLoadHeaders = dbObject . getLoadHeaderSQL ( ) ; sqlLoadContents = dbObject . getLoadContentSQL ( ) ; } s_logger . log ( Level . FINE , "loadDBObjects" , new Object [ ] { objectsToLoad , getDirection ( ) } ) ; PreparedStatementWrapper stmtLoadHeaders = setPreparedStatement ( sqlLoadHeaders ) ; PreparedStatementWrapper stmtLoadContents = setPreparedStatement ( sqlLoadContents ) ; int counter = 0 ; if ( dbObject != null ) { String sql = dbObject . getLoadObjectSQL ( ) ; Statement stmt = setStatement ( ) ; ResultSet rs = executeQuery ( stmt , sql ) ; while ( getResultSetNext ( rs ) ) { String s = getResultSetString ( rs , "OBJECT_NAME" ) ; if ( ! objectMap . containsKey ( s ) ) { DBObject obj = new DBObject ( this , objectClass , s ) ; obj . populate ( stmtLoadHeaders , stmtLoadContents ) ; if ( obj . isPopulated ( ) ) { objectMap . put ( s . toUpperCase ( ) , obj ) ; counter ++ ; } } } releaseResultSet ( rs ) ; releaseStatement ( stmt ) ; } releasePreparedStatement ( stmtLoadHeaders ) ; releasePreparedStatement ( stmtLoadContents ) ; if ( counter == 1 ) s_logger . log ( Level . FINE , "dbObjectsLoaded" , new Object [ ] { Integer . toString ( counter ) , objectToLoad } ) ; else s_logger . log ( Level . FINE , "dbObjectsLoaded" , new Object [ ] { Integer . toString ( counter ) , objectsToLoad } ) ; s_logger . flush ( ) ; return objectMap ; }
target:  load objects defined in the database