Use org.knime.database classes

Hi,

I would like to use the classes from org.knime.database.
Specifically the “org.knime.database.port.DBSessionPortObject”.

Is there a way to implement it in my own nodes?
Do I need to add it somehow to the target plattform?

Thank you!

Hi @Keurkyyy,

you will need to either select the KNIME-full target platform or add the database features manually by browsing the update site and selecting them. Then you can add the database plugins as dependencies to your extension.

best,
Gabriel

Hi @gab1one,
I added the following plugin:

grafik

I want to specifically use the the following class: org.knime.database.port.DBSessionPortObject. I can only use the DB port objects of the legacy DB framework.
(It is related to my other post regarding the db node integration)
Unfortunately, I am not able to find it even after choosing the according plugin:

Do you have also here an idea what might be the problem?

1 Like

Hi @Keurkyyy,
Have you added the plugin org.knime.database.nodes as a dependency to your project? You can do this in the Dependencies tab of editor for the plugin.xml file.

best,
Gabriel

1 Like

That helped, it works now. Thank you!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.