client/src/main/java/com/orientechnologies/orient/client/remote/OServerAdmin.java
public synchronized boolean existsDatabase(final String iDatabaseName, final String storageType) throws IOException {
    OExistsDatabaseRequest request = new OExistsDatabaseRequest(iDatabaseName, storageType);
    OExistsDatabaseResponse response = networkAdminOperation(request,
        "Error on checking existence of the remote storage: " + storage.getName());
    return response.isExists();

  }
public synchronized boolean existsDatabase(final String iDatabaseName, final String storageType) throws IOException {
    OExistsDatabaseRequest request = new OExistsDatabaseRequest(iDatabaseName, storageType);
    OExistsDatabaseResponse response = networkAdminOperation(request,
        "Error on checking existence of the remote storage: " + storage.getName());
    return response.isExists();

  }
public synchronized boolean existsDatabase ( final String iDatabaseName , final String storageType ) throws IOException { OExistsDatabaseRequest request = new OExistsDatabaseRequest ( iDatabaseName , storageType ) ; OExistsDatabaseResponse response = networkAdminOperation ( request , "Error on checking existence of the remote storage: " + storage . getName ( ) ) ; return response . isExists ( ) ; }
Checks if a database exists in the remote server.

@param iDatabaseName The database name
@param storageType   Storage type between "plocal" or "memory".

@return true if exists, otherwise false

@throws IOException
Checks if a database exists in the remote server .