{
Integer startingIndex = 0;
TableReferenceFactory t = vendor.getTableReferenceFactory();
QuerySpecificationBuilder builder = this.getBuilderForPredicate( vendor, TABLE_NAME_PREFIX + startingIndex );
TableReferenceBuilder from = t.tableBuilder( t.table(
t.tableName( this._state.schemaName().get(), DBNames.ENTITY_TABLE_NAME ),
t.tableAlias( TABLE_NAME_PREFIX + startingIndex ) ) );
this.addTypeJoin( vendor, from, startingIndex );