when creating a new HsqlDatabase, make sure it does not appear in the pick list
This commit is contained in:
parent
616109598f
commit
f949bcea10
1 changed files with 4 additions and 3 deletions
|
@ -30,6 +30,7 @@
|
|||
package connectivity.tools;
|
||||
|
||||
import com.sun.star.beans.PropertyValue;
|
||||
import com.sun.star.beans.PropertyState;
|
||||
import com.sun.star.beans.XPropertySet;
|
||||
import com.sun.star.container.ElementExistException;
|
||||
import com.sun.star.frame.XStorable;
|
||||
|
@ -82,9 +83,9 @@ public class HsqlDatabase extends AbstractDatabase
|
|||
dsProperties.setPropertyValue("URL", "sdbc:embedded:hsqldb");
|
||||
|
||||
final XStorable storable = (XStorable) UnoRuntime.queryInterface(XStorable.class, m_databaseDocument);
|
||||
storable.storeAsURL(m_databaseDocumentFile, new PropertyValue[]
|
||||
{
|
||||
});
|
||||
storable.storeAsURL( m_databaseDocumentFile, new PropertyValue[]
|
||||
{ new PropertyValue( "PickListEntry", 0, false, PropertyState.DIRECT_VALUE )
|
||||
} );
|
||||
}
|
||||
|
||||
/** drops the table with a given name
|
||||
|
|
Loading…
Reference in a new issue