Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -351,10 +351,9 @@ public RowLockStrategy getWriteRowLockStrategy() {
return RowLockStrategy.COLUMN;
}


@Override
public String getForUpdateString() {
return " for update";
public String getForUpdateString(String aliases) {
return " for update of " + aliases;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,20 @@
*/
package org.hibernate.community.dialect.pagination;

import org.hibernate.dialect.pagination.AbstractSimpleLimitHandler;
import org.hibernate.dialect.pagination.LimitHandler;
import org.hibernate.dialect.pagination.LimitHandler;
import org.hibernate.dialect.pagination.AbstractLimitHandler;

/**
* A {@link LimitHandler} for TimesTen, which uses {@code ROWS n},
* but at the start of the query instead of at the end.
*/
public class TimesTenLimitHandler extends AbstractLimitHandler {
public class TimesTenLimitHandler extends AbstractSimpleLimitHandler {

public static final TimesTenLimitHandler INSTANCE = new TimesTenLimitHandler();

public TimesTenLimitHandler(){
}

@Override
public boolean supportsLimit() {
return true;
}

@Override
public boolean supportsOffset() {
return false;
Expand All @@ -36,14 +30,6 @@ public boolean supportsLimitOffset() {
return true;
}

@Override
public boolean supportsVariableLimit() {
// a limit string using literals instead of parameters is
// required to translate from Hibernate's 0 based row numbers
// to TimesTen 1 based row numbers
return false;
}

@Override
// TimesTen is 1 based
public int convertToFirstRowValue(int zeroBasedFirstResult) {
Expand All @@ -60,6 +46,7 @@ public boolean bindLimitParametersFirst() {
return true;
}

@Override
protected String limitClause(boolean hasFirstRow) {
return hasFirstRow ? " rows ? to ?" : " first ?";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,6 @@ public final class TimesTenSequenceSupport implements SequenceSupport {

public static final SequenceSupport INSTANCE = new TimesTenSequenceSupport();



@Override
public boolean supportsSequences() {
return true;
}

@Override
public boolean supportsPooledSequences() {
return true;
Expand Down
Loading