db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris K Chew" <ch...@fenetics.com>
Subject RE: dynamically assess the number of columns in a table
Date Wed, 09 Apr 2003 03:49:38 GMT
> From: turbine@eigentechnology.com
>
> Would appreciate if someone could tell me how to get access to
> the number of
> columns in a table dynamically.

Try browsing the Torque javadocs.  I have never done this, but it looks like
you could do something like:

int numColumns =
Torque.getDatabaseMap.getTable("TABLE_NAME").getColumns().length;

Good luck,

Chris


Mime
View raw message