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;
    }
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)) {
            
            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;
    }
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.

@param prefix
A <code>String</code> containing the prefix to match on table names to return.
@return
A {@link TableQuery} instance for listing table names with the specified prefix.
Reserved for internal use . Generates a query to list table names with the given prefix .