| Method from org.hibernate.impl.ScrollableResultsImpl Detail: |
public void afterLast() throws HibernateException {
try {
getResultSet().afterLast();
}
catch (SQLException sqle) {
throw JDBCExceptionHelper.convert(
getSession().getFactory().getSQLExceptionConverter(),
sqle,
"exception calling afterLast()"
);
}
}
|
public void beforeFirst() throws HibernateException {
try {
getResultSet().beforeFirst();
}
catch (SQLException sqle) {
throw JDBCExceptionHelper.convert(
getSession().getFactory().getSQLExceptionConverter(),
sqle,
"exception calling beforeFirst()"
);
}
}
|
public boolean first() throws HibernateException {
try {
boolean result = getResultSet().first();
prepareCurrentRow(result);
return result;
}
catch (SQLException sqle) {
throw JDBCExceptionHelper.convert(
getSession().getFactory().getSQLExceptionConverter(),
sqle,
"could not advance using first()"
);
}
}
|
protected Object[] getCurrentRow() {
return currentRow;
}
|
public int getRowNumber() throws HibernateException {
try {
return getResultSet().getRow()-1;
}
catch (SQLException sqle) {
throw JDBCExceptionHelper.convert(
getSession().getFactory().getSQLExceptionConverter(),
sqle,
"exception calling getRow()"
);
}
}
|
public boolean isFirst() throws HibernateException {
try {
return getResultSet().isFirst();
}
catch (SQLException sqle) {
throw JDBCExceptionHelper.convert(
getSession().getFactory().getSQLExceptionConverter(),
sqle,
"exception calling isFirst()"
);
}
}
|
public boolean isLast() throws HibernateException {
try {
return getResultSet().isLast();
}
catch (SQLException sqle) {
throw JDBCExceptionHelper.convert(
getSession().getFactory().getSQLExceptionConverter(),
sqle,
"exception calling isLast()"
);
}
}
|
public boolean last() throws HibernateException {
try {
boolean result = getResultSet().last();
prepareCurrentRow(result);
return result;
}
catch (SQLException sqle) {
throw JDBCExceptionHelper.convert(
getSession().getFactory().getSQLExceptionConverter(),
sqle,
"could not advance using last()"
);
}
}
|
public boolean next() throws HibernateException {
try {
boolean result = getResultSet().next();
prepareCurrentRow(result);
return result;
}
catch (SQLException sqle) {
throw JDBCExceptionHelper.convert(
getSession().getFactory().getSQLExceptionConverter(),
sqle,
"could not advance using next()"
);
}
}
|
public boolean previous() throws HibernateException {
try {
boolean result = getResultSet().previous();
prepareCurrentRow(result);
return result;
}
catch (SQLException sqle) {
throw JDBCExceptionHelper.convert(
getSession().getFactory().getSQLExceptionConverter(),
sqle,
"could not advance using previous()"
);
}
}
|
public boolean scroll(int i) throws HibernateException {
try {
boolean result = getResultSet().relative(i);
prepareCurrentRow(result);
return result;
}
catch (SQLException sqle) {
throw JDBCExceptionHelper.convert(
getSession().getFactory().getSQLExceptionConverter(),
sqle,
"could not advance using scroll()"
);
}
}
|
public boolean setRowNumber(int rowNumber) throws HibernateException {
if (rowNumber >=0) rowNumber++;
try {
boolean result = getResultSet().absolute(rowNumber);
prepareCurrentRow(result);
return result;
}
catch (SQLException sqle) {
throw JDBCExceptionHelper.convert(
getSession().getFactory().getSQLExceptionConverter(),
sqle,
"could not advance using absolute()"
);
}
}
|