I suppose if you really need the table names you could load up the mapping
file used to map your tables to classes and store the class names and there
associated tables in a HashMap for runtime reference. You can find the
mapping file objects in org.exolab.castor.xml.

----- Original Message -----
From: "Vijayanand Sukumar" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, March 04, 2005 5:41 PM
Subject: Re: [castor-user] how to get the table name of a class from inside
the java code ?


>
> Hi ,
>
> Thanks for you response. My Problem is to find the table name associated
> with the Jdo class mapped to the it from the client code, so that I can
> process that information.
>
> Any help would be really appreciated.
>
>
> Thanks
>
> Vijayanand Sukumar
> MedRule Business Solutions
> 2400 Lincoln Avenue, Suite 109
> Altadena, CA 91001
> 626.296.6217
> 626.296.6229 fax
>
> Confidential, unpublished property of MedRule Business Solutions, Inc. (c)
> copyright as of the date of this email. MedRule Business Solutions, Inc.
> CONFIDENTIALITY NOTICE: This e-mail message, including any attachments and
> files transmitted with it, are confidential and are intended solely for
the
> use of the individual or entity to whom they are addressed. It may contain
> information that is privileged, confidential and exempt from disclosure
> under applicable laws. Moreover, this communication may contain the
original
> sender's personal views and opinions, which do not necessarily reflect
those
> of MedRule Business Solutions Inc. If the reader of this message is not
the
> intended recipient, or the employee or agent responsible for delivering
the
> message to the intended recipient, or if you have received this
> communication in error, please notify us immediately by return e-mail and
> delete the original message and any copies of it from your system. If you
> are not the intended recipient, be advised that you have received this
> e-mail in error, and that any unauthorized review, use, disclosure,
> distribution, forwarding, printing, or copying of this e-mail is strictly
> prohibited without our prior, written permission.
>
>
>
> -----Original Message-----
> From: Guttmann Werner MAX SD [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 04, 2005 1:16 AM
> To: [email protected]
> Subject: Re: [castor-user] how to get the table name of a class from
> inside the java code ?
>
>
> HI,
>
> if your question is about whether it is possible to obtain that
information
> from client code that uses Castor JDO, the answer is no. Castor JDO
classes
> of couse maintain this information internally.
>
> If you explained your 'problem' in more detail, maybe we can advise you on
a
> workaround..
>
> Regards
> Werner
>
> -----Urspr�ngliche Nachricht-----
> Von: Vijayanand Sukumar [mailto:[EMAIL PROTECTED]
> Gesendet: Freitag, 04. M�rz 2005 03:17
> An: [email protected]
> Betreff: [castor-user] how to get the table name of a class from inside
> the java code ?
>
>
>
>
> Hi,
>
> Is there a way in castor JDO to get the table name the class is being
mapped
> to , from inside the java code by having a handle to the configuration
file
> ?
>
> Thanks
>
> Vijayanand Sukumar
> MedRule Business Solutions
> 2400 Lincoln Avenue, Suite 109
> Altadena, CA 91001
> 626.296.6217
> 626.296.6229 fax
>
> Confidential, unpublished property of MedRule Business Solutions, Inc. (c)
> copyright as of the date of this email. MedRule Business Solutions, Inc.
> CONFIDENTIALITY NOTICE: This e-mail message, including any attachments and
> files transmitted with it, are confidential and are intended solely for
the
> use of the individual or entity to whom they are addressed. It may contain
> information that is privileged, confidential and exempt from disclosure
> under applicable laws. Moreover, this communication may contain the
original
> sender's personal views and opinions, which do not necessarily reflect
those
> of MedRule Business Solutions Inc. If the reader of this message is not
the
> intended recipient, or the employee or agent responsible for delivering
the
> message to the intended recipient, or if you have received this
> communication in error, please notify us immediately by return e-mail and
> delete the original message and any copies of it from your system. If you
> are not the intended recipient, be advised that you have received this
> e-mail in error, and that any unauthorized review, use, disclosure,
> distribution, forwarding, printing, or copying of this e-mail is strictly
> prohibited without our prior, written permission.
>
>
>
> -----Original Message-----
> From: Daniel Dyer [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 03, 2005 1:20 PM
> To: [email protected]
> Subject: [castor-user] Mapping questions: Inner classes and nillable
> elements
>
>
>
> Hi, just a couple of quick questions about XML mapping.
>
> Firstly, can Castor map XML elements to inner classes (obviously they
> would have to be public static inner classes), or just to normal,
> top-level classes?
>
> Secondly, what is the status of support for nillable elements?  I know
> there is something in Castor (maybe just in the CVS version?), because
> I've been reading through the source and bug reports and have seen some
> discussion about it.  Can I map a null field to a nil element like this:
>
> <myElement xsi:nil="true" />
>
> And on a related note, if I have a field mapping like this:
>
> <field name="myField" required="false"><bind-xml
> location="myWrapper"></field>
>
> I get the following fragment when myField is null:
>
> <myWrapper />
>
> Can I get Castor to omit the myWrapper part, which doesn't map to a field,
> if there's nothing in it?
>
>
> Thanks,
>
> Dan.
>
> --
> Daniel Dyer
> E-Mail: [EMAIL PROTECTED]
> WWW: http://www.footballpredictions.net
> AIM: danielwdyer / MSN: [EMAIL PROTECTED]
>
>
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>         unsubscribe castor-user
>
>
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>         unsubscribe castor-user
>
>
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>         unsubscribe castor-user
>



----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-user

Reply via email to