Update of /cvsroot/hibernate/Hibernate/cirrus/hibernate/loader
In directory sc8-pr-cvs1:/tmp/cvs-serv11168/cirrus/hibernate/loader
Modified Files:
Loader.java
Log Message:
QueryTranslator code cleanup
Index: Loader.java
===================================================================
RCS file: /cvsroot/hibernate/Hibernate/cirrus/hibernate/loader/Loader.java,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -d -r1.30 -r1.31
*** Loader.java 23 Nov 2002 01:16:20 -0000 1.30
--- Loader.java 24 Nov 2002 06:30:12 -0000 1.31
***************
*** 25,29 ****
import cirrus.hibernate.impl.QueryImpl;
import cirrus.hibernate.persister.*;
- import cirrus.hibernate.query.QueryTranslator;
import cirrus.hibernate.type.Type;
--- 25,28 ----
***************
*** 72,76 ****
}
/**
! * The column types of a find() query
*/
protected Type[] getReturnTypes() {
--- 71,75 ----
}
/**
! * The return types of a find() query
*/
protected Type[] getReturnTypes() {
***************
*** 78,81 ****
--- 77,86 ----
}
/**
+ * The column names holding returned scalar values
+ */
+ public String[][] getScalarColumnNames() {
+ return null;
+ }
+ /**
* A hack to allow scalar values in a find() query
*/
***************
*** 128,132 ****
if (scalars) {
returnTypes = getReturnTypes();
! names = QueryTranslator.generateColumnNames( returnTypes, session.getFactory() );
}
--- 133,137 ----
if (scalars) {
returnTypes = getReturnTypes();
! names = getScalarColumnNames();
}
|