All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.rapleaf.jack.queries.IndexedTable Maven / Gradle / Ivy

There is a newer version: 1.8
Show newest version
package com.rapleaf.jack.queries;

import java.util.Set;

import com.rapleaf.jack.AttributesWithId;
import com.rapleaf.jack.ModelWithId;

public class IndexedTable extends AbstractTable {

  private final AbstractTable table;
  private final Set indexHints;

  public IndexedTable(AbstractTable table, Set indexHints) {
    super(table);
    this.table = table;
    this.indexHints = indexHints;
  }

  public Set getIndexHints() {
    return indexHints;
  }

  @Override
  public String getSqlKeyword() {
    return table.getSqlKeyword() + (indexHints.isEmpty() ? "" : AbstractExecution.getClauseFromQueryConditions(indexHints, " ", " ", ""));
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy