Siegfried,
Could you pls give me an opinion on something. I need
to know that before making an insert into a table, if
I want to check whether the table or its corresponding
column is readOnly, then what would be the best and
generic way to do that:
1. Do some kind of select on that table and then get
the ResultSetMetaData from the returned resultSet.
or
2.Get the use the DataBaseMetaData for the tables in
that database.
Thanks
Vikas
--- "Göschl,Siegfried" <Siegfried.Goeschl@drei.com>
wrote:
> Hi Sonu,
>
> some help for an entry level programmer with a
> console application - life is harsh sometimes ...
> :-)
>
> +) add the p6spy.jar to your classpath
> +) copy the spy.properties into your classpath (same
> location as log4j.properties)
> +) set the real driver in spy.properties, e.g.
> realdriver=oracle.jdbc.driver.OracleDriver in my
> case
> +) change the Torque.properties, e.g.
> torque.dsfactory.XXX.connection.driver =
> com.p6spy.engine.spy.P6SpyDriver
>
> The program creates a spy.log in your current
> directory ... piece of cake looking at it ... ;-)
>
> Cheers,
>
> Siegfried Goeschl
>
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> torque-user-unsubscribe@db.apache.org
> For additional commands, e-mail:
> torque-user-help@db.apache.org
>
__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org
|