Hi Alessandro,
Sure I've used that method before, but what I mean is why not unify the
methods in the OServerAdmin by overriding the dropDatabase method to
include the final String *iDatabaseName *parameter*.*
This way I can drop it if I am connected to the database (as you mentioned)
OServerAdmin remoteServer = new OServerAdmin("remote:localhost/my_database"
);
or if I am only connected to the server instance
OServerAdmin remoteServer = new OServerAdmin("remote:localhost");
El miércoles, 29 de julio de 2015, 9:51:45 (UTC+2), [email protected]
escribió:
>
> Hi Daniel,
> look at the chapter Drop Database at this link
> http://orientdb.com/docs/last/Server-Management-Java.html
> or https://code.google.com/p/orient/wiki/ServerManagementJava
> You must specify the storage name in dropDatabase method.
>
> public OServerAdmin dropDatabase(String storageType) throws IOException
> Drops a database from a remote server instance.
>
> Regards,
> Alessandro
>
--
---
You received this message because you are subscribed to the Google Groups
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.