com.rapleaf.jack.queries.IndexedTable Maven / Gradle / Ivy
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