@Override
    public Object getTable(String tableName) {
	logger.debug("OMID Begin of getTable for " + tableName);
        TTable table = tableNameHandleMap.get(tableName);
        if (table != null) {
            logger.debug("OMIDE Found a cached handle for table " + tableName);
            return table;
        }
        try {
            table = new TTable(this.getHbcfg(), tableName);
        } catch (IOException e) {
            logger.error("OMID Error trying to get a TransactionTable of OMID.");
            logger.error(e.getMessage());
        }
        tableNameHandleMap.put(tableName, table);
        logger.debug("OMID Cached a handle of table: " + tableName);
        return table;
    }
@ Override public Object getTable ( String tableName ) { logger . debug ( "OMID Begin of getTable for " + tableName ) ; TTable table = tableNameHandleMap . get ( tableName ) ; if ( table != null ) { logger . debug ( "OMIDE Found a cached handle for table " + tableName ) ; return table ; } try { table = new TTable ( this . getHbcfg ( ) , tableName ) ; } catch ( IOException e ) { logger . error ( "OMID Error trying to get a TransactionTable of OMID." ) ; logger . error ( e . getMessage ( ) ) ; } tableNameHandleMap . put ( tableName , table ) ; logger . debug ( "OMID Cached a handle of table: " + tableName ) ; return table ; }
Gets a handle of a specific table.
@param tableName of the table to be accessed.
@return HTable of the table found.