Is there any database-like feature in SDK?

I have thousands of json objects to be saved and read.

They are application level.

What's the best way to do this kinda job? A BIG xml via PersistentStateComponent?

Best regards,

IL

5 comments

I thnk the JDK comes with the Derby DB built in.

0

Is there any api in OpenAPI or platform SDK?

If no, where should I save my db file?

0

If you don't  know what Derby is just Google it. It's an API in the JDK itself I think....the db ships with the JDK at any rate.... and as such is available for you to use just like any other java library in the JDK.

0

I sure know derby! And I know that not every JDK(see openjdk) includes Java DB.
I can choose H2 as my embedded DB engine, or db4o as well.

If there is something like PersistentStateComponent, I just use it.
Or I need a folder to save my db file.
Maybe PathManager.getOptionsPath.


IL

0

There is no general purpose database facility in the IntelliJ IDEA platfrom. Storing a Derby or HSQLDB file in the directory returned by PathManager.getOptionsPath() is a perfectly fine approach.

0

Please sign in to leave a comment.