Package org.jcouchdb.db

Examples of org.jcouchdb.db.Server.deleteDatabase()


    Server currentServer = server;
    if ( currentServer != null ) {
      for ( Iterator<CouchDatabase> iterator = dbs.iterator(); iterator.hasNext(); ) {
        CouchDatabase couchDatabase = iterator.next();
        currentServer.deleteDatabase( couchDatabase.getDbName() );
        iterator.remove();
      }
    }
    db = null;
  }
View Full Code Here


  public void deleteDb( @Nonnull String dbName ) {
    Server currentServer = server;
    if ( currentServer == null ) {
      throw new IllegalArgumentException( "Invalid state - server is null" );
    }
    currentServer.deleteDatabase( dbName );
  }

  /**
   * Creates  a new database object - but does *not* create anything on the server
   *
 
View Full Code Here

    Server currentServer = server;
    if ( currentServer != null ) {
      for ( Iterator<CouchDatabase> iterator = dbs.iterator(); iterator.hasNext(); ) {
        CouchDatabase couchDatabase = iterator.next();
        currentServer.deleteDatabase( couchDatabase.getDbName() );
        iterator.remove();
      }
    }
    db = null;
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.