Need a help
"digumarthi venkata sita rama swami" <[email protected]> 22 Sep 2005 09:10:51 -0000
| Newsgroups | gmane.comp.java.ozone.user |
|---|---|
| Message-ID | <[email protected]> |
This is venkata Prashanth,
My problem is that when i am passing an object to a package
Example:
My package name is Library and i am importing this package in My main class (MyLibrary). Now I am sending an object to the package Library from MyLibrary class. I am able to receive the object in my Package Library, but I am not able to access the Data of that object ozone DataBase (ie. we r not able to access the methods which are declared in an interface out side this package and this interface is implemented by our main class MyLibrary)
We r catching the object(through a method which is in the package) as follow's:
Ex:
//Main class MyLibrary
import Library.*;
class MyLibrary extends ozoneRemote implements LibInter
{
//LibInter----is Our Interface
//Body;
LibInter lb = (LibInter)(objectForName("my_first_book"));
Lib l = new Lib();//l---object of class Lib which is in package Library
l.getVerified(lb);//passing lb to package
}
//This is package Library
package Library;
public class Lib
{
public getVerified(object cc)
{
we r catching the object lb into cc
//body of the method;
//we r able to check whether we r retriving the correct object or //not,but we r unable to access the data of that object here
//r their any methods in ozone to retrive the data of an object from the database ...if so please help us with an example;......if not please state alternative.....
}
}
So this is r problem,please help us as soon as possible
Bye