user2081554
user2081554

Reputation:

OrientDb - export Object database

When I want to export my Object database and I get an error:

constructor ODatabaseExport.ODatabaseExport(
           ODatabaseDocumentInternal,
           String,
           OCommandOutputListener
) is not applicable

argument mismatch;
          OObjectDatabaseTx cannot be converted to ODatabaseDocumentInternal

Since ODatabaseExport constructor is only for documents I'm wondering what options do I have obout export / importing database from java.

Upvotes: 2

Views: 53

Answers (1)

user2081554
user2081554

Reputation:

Since OObjectDatabase is a wraper around ODatabaseDocument you can easily access the underlying element by method getUnderlying() which will return wated ODatabaseDocumentInternal on which you can execute export/import.

See docs for more info...

Upvotes: 2

Related Questions