How to reliably retrieve tables and columns information stored in Torque Criteria object

Posted by David Zhao on Stack Overflow See other posts from Stack Overflow or by David Zhao
Published on 2010-06-09T16:49:05Z Indexed on 2010/06/09 16:52 UTC
Read the original article Hit count: 381

Filed under:
|

Hi there,

Is there a way to retrieve tables, including alias tables, and columns, including alias columns, from an Apache Torque Criteria object reliably? I understand that there is methods like: getSelectedColumns, getAsColumns(), getJoins(), etc., but for examples, getJoins() will just return a list of joined tables strings in free text, where one has to use regular expression to extract the needed joined table information out of it.

Thanks in advance!

David

© Stack Overflow or respective owner

Related posts about criteria

Related posts about torque