From torque-user-return-7350-apmail-db-torque-user-archive=db.apache.org@db.apache.org Mon Dec 18 05:25:40 2006 Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 67083 invoked from network); 18 Dec 2006 05:25:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Dec 2006 05:25:40 -0000 Received: (qmail 61081 invoked by uid 500); 18 Dec 2006 05:25:47 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 60810 invoked by uid 500); 18 Dec 2006 05:25:46 -0000 Mailing-List: contact torque-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Apache Torque Users List" Reply-To: "Apache Torque Users List" Delivered-To: mailing list torque-user@db.apache.org Received: (qmail 60799 invoked by uid 99); 18 Dec 2006 05:25:46 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 17 Dec 2006 21:25:46 -0800 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of Greg.Monroe@dukece.com designates 65.112.55.73 as permitted sender) Received: from [65.112.55.73] (HELO mail.dukece.com) (65.112.55.73) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 17 Dec 2006 21:25:35 -0800 Received: from dukece-mail3.dukece.com ([192.168.1.222]) by mail.dukece.com with Microsoft SMTPSVC(5.0.2195.6713); Mon, 18 Dec 2006 00:25:49 -0500 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: RE: Metainformation of table Date: Mon, 18 Dec 2006 00:25:12 -0500 Message-ID: <8F5843B903F59D4C8C6806BB49A39119021B1ACF@dukece-mail3.dukece.com> In-Reply-To: <60614505@web.de> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Metainformation of table Thread-Index: AcciBfxgYKFgCs6/SN20qcaGnl13dAAXKCtA From: "Greg Monroe" To: "Apache Torque Users List" X-OriginalArrivalTime: 18 Dec 2006 05:25:49.0468 (UTC) FILETIME=[FA4B95C0:01C72264] X-Virus-Checked: Checked by ClamAV on apache.org Torque meta info is contained in the Map classes. You can get the TableMap object via getTableMap()=20 methods in both the Peer or Record objects. =20 This contains ColumnMap objects (and other linked info) with Column specific names. However, for convenience, the Java column names are also contained in an array property of the Record objects. These can be used with the getByName/setByName methods to quickly walk thru the object values. One "gotcha" with the Map data to be aware of is that the DatabaseMap structure which holds the TableMap objects is populated only if a Table peer object is created. If you need to ensure that the DatabaseMap object has all the tables, you have to call it's initialize() method. See the Javadocs for the possible problems with this method. > -----Original Message----- > From: aunts@email.de [mailto:aunts@email.de]=20 > Sent: Sunday, December 17, 2006 1:04 PM > To: torque-user@db.apache.org > Subject: Metainformation of table >=20 > Hey ... >=20 > how can i get all meta information of a table, for example=20 > the column names!? with pure mysql i can do that with=20 > ResultSetMetaData meta =3D rs.getMetaData(); ... >=20 > thanks, > aunts >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org > For additional commands, e-mail: torque-user-help@db.apache.org >=20 >=20 Duke CE Privacy Statement Please be advised that this e-mail and any files transmitted with it are = confidential communication or may otherwise be privileged or = confidential and are intended solely for the individual or entity to = whom they are addressed. If you are not the intended recipient you may = not rely on the contents of this email or any attachments, and we ask = that you please not read, copy or retransmit this communication, but = reply to the sender and destroy the email, its contents, and all copies = thereof immediately. Any unauthorized dissemination, distribution or = copying of this communication is strictly prohibited. --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org