HHH-10664 - Prep 6.0 feature branch - merge hibernate-entitymanager into hibernate-core (fix test failures)
This commit is contained in:
parent
1ece6056d1
commit
66802a70c1
|
@ -17,6 +17,10 @@ public final class RowSelection {
|
|||
private Integer timeout;
|
||||
private Integer fetchSize;
|
||||
|
||||
public void setFirstRow(Integer firstRow) {
|
||||
this.firstRow = firstRow;
|
||||
}
|
||||
|
||||
public void setFirstRow(int firstRow) {
|
||||
this.firstRow = firstRow;
|
||||
}
|
||||
|
@ -25,6 +29,10 @@ public final class RowSelection {
|
|||
return firstRow;
|
||||
}
|
||||
|
||||
public void setMaxRows(Integer maxRows) {
|
||||
this.maxRows = maxRows;
|
||||
}
|
||||
|
||||
public void setMaxRows(int maxRows) {
|
||||
this.maxRows = maxRows;
|
||||
}
|
||||
|
@ -33,6 +41,10 @@ public final class RowSelection {
|
|||
return maxRows;
|
||||
}
|
||||
|
||||
public void setTimeout(Integer timeout) {
|
||||
this.timeout = timeout;
|
||||
}
|
||||
|
||||
public void setTimeout(int timeout) {
|
||||
this.timeout = timeout;
|
||||
}
|
||||
|
@ -45,6 +57,10 @@ public final class RowSelection {
|
|||
return fetchSize;
|
||||
}
|
||||
|
||||
public void setFetchSize(Integer fetchSize) {
|
||||
this.fetchSize = fetchSize;
|
||||
}
|
||||
|
||||
public void setFetchSize(int fetchSize) {
|
||||
this.fetchSize = fetchSize;
|
||||
}
|
||||
|
@ -53,7 +69,4 @@ public final class RowSelection {
|
|||
return maxRows != null || (firstRow != null && firstRow <= 0);
|
||||
}
|
||||
|
||||
public void unsetMaxRows() {
|
||||
maxRows = null;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -594,7 +594,6 @@ public class ProcedureCallImpl<R>
|
|||
@Override
|
||||
public ProcedureCallImplementor<R> registerStoredProcedureParameter(int position, Class type, ParameterMode mode) {
|
||||
getProducer().checkOpen( true );
|
||||
getProducer().checkOpen( true );
|
||||
|
||||
try {
|
||||
registerParameter( (ParameterRegistrationImplementor) registerParameter( position, type, mode ) );
|
||||
|
|
|
@ -629,7 +629,7 @@ public abstract class AbstractProducedQuery<R> implements QueryImplementor<R> {
|
|||
public QueryImplementor setMaxResults(int maxResult) {
|
||||
if ( maxResult <= 0 ) {
|
||||
// treat zero and negatives specially as meaning no limit...
|
||||
queryOptions.unsetMaxRows();
|
||||
queryOptions.setMaxRows( null );
|
||||
}
|
||||
else {
|
||||
queryOptions.setMaxRows( maxResult );
|
||||
|
|
Loading…
Reference in New Issue