Update of /var/cvs/src/org/mmbase/bridge/util
In directory james.mmbase.org:/tmp/cvs-serv14397
Modified Files:
Queries.java
Log Message:
needed for MMB-1707. This long overdue method...
See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/bridge/util
See also: http://www.mmbase.org/jira/browse/MMB-1707
Index: Queries.java
===================================================================
RCS file: /var/cvs/src/org/mmbase/bridge/util/Queries.java,v
retrieving revision 1.106
retrieving revision 1.107
diff -u -b -r1.106 -r1.107
--- Queries.java 18 Aug 2008 09:51:11 -0000 1.106
+++ Queries.java 18 Aug 2008 11:02:06 -0000 1.107
@@ -26,7 +26,7 @@
* methods are put here.
*
* @author Michiel Meeuwissen
- * @version $Id: Queries.java,v 1.106 2008/08/18 09:51:11 michiel Exp $
+ * @version $Id: Queries.java,v 1.107 2008/08/18 11:02:06 michiel Exp $
* @see org.mmbase.bridge.Query
* @since MMBase-1.7
*/
@@ -1390,6 +1390,23 @@
}
/**
+ * Returns the string which must be used for [EMAIL PROTECTED]
Node#getValue} in the result set of the
+ * query of the given StepField.
+ * @since MMBase-1.8.7
+ */
+ public static String getFieldAlias(StepField sf) {
+ String alias = sf.getAlias();
+ if (alias == null) {
+ String stepAlias = sf.getStep().getAlias();
+ if (stepAlias == null) {
+ stepAlias = sf.getStep().getTableName();
+ }
+ alias = stepAlias + "." + sf.getFieldName();
+ }
+ return alias;
+ }
+
+ /**
* @since MMBase-1.9
*/
protected static int getDayMark(int age) {
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs