Methods Summary |
---|
protected void | afterScrollOperation()
session.afterScrollOperation();
|
public final void | close()
try {
// not absolutely necessary, but does help with aggressive release
session.getBatcher().closeQueryStatement( ps, resultSet );
}
catch (SQLException sqle) {
throw JDBCExceptionHelper.convert(
session.getFactory().getSQLExceptionConverter(),
sqle,
"could not close results"
);
}
finally {
try {
session.getPersistenceContext().getLoadContexts().cleanup( resultSet );
}
catch( Throwable ignore ) {
// ignore this error for now
log.trace( "exception trying to cleanup load context : " + ignore.getMessage() );
}
}
|
public final java.lang.Object[] | get()
return getCurrentRow();
|
public final java.lang.Object | get(int col)
return getCurrentRow()[col];
|
public final java.math.BigDecimal | getBigDecimal(int col)
return (BigDecimal) getFinal(col, Hibernate.BIG_DECIMAL);
|
public final java.math.BigInteger | getBigInteger(int col)
return (BigInteger) getFinal(col, Hibernate.BIG_INTEGER);
|
public final byte[] | getBinary(int col)
return (byte[]) getFinal(col, Hibernate.BINARY);
|
public final java.sql.Blob | getBlob(int col)
return (Blob) getNonFinal(col, Hibernate.BLOB);
|
public final java.lang.Boolean | getBoolean(int col)
return (Boolean) getFinal(col, Hibernate.BOOLEAN);
|
public final java.lang.Byte | getByte(int col)
return (Byte) getFinal(col, Hibernate.BYTE);
|
public final java.util.Calendar | getCalendar(int col)
return (Calendar) getNonFinal(col, Hibernate.CALENDAR);
|
public final java.lang.Character | getCharacter(int col)
return (Character) getFinal(col, Hibernate.CHARACTER);
|
public final java.sql.Clob | getClob(int col)
return (Clob) getNonFinal(col, Hibernate.CLOB);
|
protected abstract java.lang.Object[] | getCurrentRow()
|
public final java.util.Date | getDate(int col)
return (Date) getNonFinal(col, Hibernate.TIMESTAMP);
|
public final java.lang.Double | getDouble(int col)
return (Double) getFinal(col, Hibernate.DOUBLE);
|
protected final java.lang.Object | getFinal(int col, org.hibernate.type.Type returnType)Check that the requested type is compatible with the result type, and
return the column value. This version makes sure the the classes
are identical.
if ( holderInstantiator!=null ) {
throw new HibernateException("query specifies a holder class");
}
if ( returnType.getReturnedClass()==types[col].getReturnedClass() ) {
return get(col);
}
else {
return throwInvalidColumnTypeException(col, types[col], returnType);
}
|
public final java.lang.Float | getFloat(int col)
return (Float) getFinal(col, Hibernate.FLOAT);
|
protected org.hibernate.hql.HolderInstantiator | getHolderInstantiator()
return holderInstantiator;
|
public final java.lang.Integer | getInteger(int col)
return (Integer) getFinal(col, Hibernate.INTEGER);
|
protected org.hibernate.loader.Loader | getLoader()
return loader;
|
public final java.util.Locale | getLocale(int col)
return (Locale) getFinal(col, Hibernate.LOCALE);
|
public final java.lang.Long | getLong(int col)
return (Long) getFinal(col, Hibernate.LONG);
|
protected final java.lang.Object | getNonFinal(int col, org.hibernate.type.Type returnType)Check that the requested type is compatible with the result type, and
return the column value. This version makes sure the the classes
are "assignable".
if ( holderInstantiator!=null ) {
throw new HibernateException("query specifies a holder class");
}
if ( returnType.getReturnedClass().isAssignableFrom( types[col].getReturnedClass() ) ) {
return get(col);
}
else {
return throwInvalidColumnTypeException(col, types[col], returnType);
}
|
protected java.sql.PreparedStatement | getPs()
return ps;
|
protected org.hibernate.engine.QueryParameters | getQueryParameters()
return queryParameters;
|
protected java.sql.ResultSet | getResultSet()
return resultSet;
|
protected org.hibernate.engine.SessionImplementor | getSession()
return session;
|
public final java.lang.Short | getShort(int col)
return (Short) getFinal(col, Hibernate.SHORT);
|
public final java.lang.String | getString(int col)
return (String) getFinal(col, Hibernate.STRING);
|
public final java.lang.String | getText(int col)
return (String) getFinal(col, Hibernate.TEXT);
|
public final java.util.TimeZone | getTimeZone(int col)
return (TimeZone) getNonFinal(col, Hibernate.TIMEZONE);
|
public final org.hibernate.type.Type | getType(int i)
return types[i];
|
protected org.hibernate.type.Type[] | getTypes()
return types;
|
private java.lang.Object | throwInvalidColumnTypeException(int i, org.hibernate.type.Type type, org.hibernate.type.Type returnType)
throw new HibernateException(
"incompatible column types: " +
type.getName() +
", " +
returnType.getName()
);
|