Issue 57654 - com.sun.star.sdb.Datasource service does not support com.sun.star.frame.XStorable interface as stated in the developer guide (Java-UNO binding)
Summary: com.sun.star.sdb.Datasource service does not support com.sun.star.frame.XStor...
Status: CLOSED DUPLICATE of issue 57664
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: PC Linux, all
: P3 Trivial
Target Milestone: ---
Assignee: Frank Schönheit
QA Contact: issues@api
URL: http://www.oooforum.org/forum/viewtop...
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-10 09:30 UTC by ifrs
Modified: 2013-02-24 21:09 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description ifrs 2005-11-10 09:30:32 UTC
Java Example from the 2.0 RC2 SDK Section 12.2.2 "Adding and editing 
DataSources" does not work. 
Indeed the Object returned from 
com.sun.star.sdbc.DatabaseContext.createInstance() does not support 
com.sun.star.frame.XStorable interface 
 
This interface is necessary as according to the dev guide [quote]"Before data 
sources can be registered at the database context, they have to be stored with 
the com.sun.star.frame.XStorable interface. The method storeAsURL should be 
used for that purpose."[/quote]  
 
Executing the code below returns NULL : 
XStorable store = ( XStorable)UnoRuntime.queryInterface(XStorable.class, xDs); 
 
Also querying the datasource object's property "DatabaseDocument" throws an 
UnsupportedPropertyException : 
 
// "reference"  is returned by createInstance() on the DatabaseContext  
 XPropertySet properties = UnoRuntime.queryInterface(XPropertySet.class, 
object)  
 Object document = properties.getProperty("DatabaseDocument");  
  
The above code throws an UnsupportedPropertyException. 
 
The "DatabaseDocument" property should give access to the 
com.sun.star.frame.XStorable interface according to some OOBasic examples
Comment 1 jsc 2005-11-10 09:54:12 UTC
JSC: FS: i think that is for you
Comment 2 Frank Schönheit 2005-11-10 12:57:30 UTC
duplicate of issue 57664 (which is more recent, but contains more info)

*** This issue has been marked as a duplicate of 57664 ***
Comment 3 Frank Schönheit 2005-11-10 12:57:53 UTC
closing duplicate