Home » Developer & Programmer » JDeveloper, Java & XML » Re: Usage of Oracle Objects in Java
Re: Usage of Oracle Objects in Java [message #90934] Wed, 12 December 2001 05:57
Jason Ladd
Messages: 7
Registered: December 2001
Junior Member
You'll probably want to create some custom classes to match the object types in your database. Oracle has a tool called JPublisher that can do this automagically. You can then import them in your java app like:

import myPackage.myOracleObjs.MyObjType;

this object will then have all the getters and setters to use to access the fields in the database.

I'd recommend the O'reilly book: Java Programming with Oracle SQLJ. It has a good couple chapters on working with Oracle objects. It's been an invaluable resource to me. Hope this helps.



----------------------------------------------------------------------
Previous Topic: JVM
Next Topic: Re: Bigger type length than Maximum
Goto Forum:
  


Current Time: Mon Aug 02 10:25:11 CDT 2021