public Table findUserTable ( Session session , String name , String schemaName ) { Schema schema = ( Schema ) schemaMap . get ( schemaName ) ; if ( schema == null ) { return null ; } if ( session != null ) { Table table = session . getLocalTable ( name ) ; if ( table != null ) { return table ; } } int i = schema . tableList . getIndex ( name ) ; if ( i == - 1 ) { return null ; } return ( Table ) schema . tableList . get ( i ) ; }
Returns the specified user - defined table or view visible within the context of the specified schema . It excludes system tables . Returns null if the table does not exist in the context .