private TableQuery < TableServiceEntity > generateListTablesQuery ( final String prefix ) { TableQuery < TableServiceEntity > listQuery = TableQuery . < TableServiceEntity > from ( TableServiceEntity . class ) ; listQuery . setSourceTableName ( TableConstants . TABLES_SERVICE_TABLES_NAME ) ; if ( ! Utility . isNullOrEmpty ( prefix ) ) { // Append Max char to end '{' is 1 + 'z' in AsciiTable > uppperBound = prefix + '{' final String prefixFilter = String . format ( "(%s ge '%s') and (%s lt '%s{')" , TableConstants . TABLE_NAME , prefix , TableConstants . TABLE_NAME , prefix ) ; listQuery = listQuery . where ( prefixFilter ) ; } return listQuery ; }
Reserved for internal use . Generates a query to list table names with the given prefix .