Examples of Database


Examples of org.sonar.core.persistence.Database

public class DatabaseCheckerTest {

  @Test
  public void require_oracle_11_2() throws Exception {
    Database db = mockDb(new Oracle(), "11.2.0.0.1");
    new DatabaseChecker(db).start();
    // no error

    db = mockDb(new Oracle(), "11.3.1");
    new DatabaseChecker(db).start();
View Full Code Here

Examples of org.springframework.roo.addon.dbre.model.Database

            return null;
        }

        // Abort if the database couldn't be deserialized. This can occur if the
        // DBRE XML file has been deleted or is empty.
        final Database database = dbreModelService.getDatabase(false);
        if (database == null) {
            return null;
        }

        // We know governor type details are non-null and can be safely cast
View Full Code Here

Examples of org.voltdb.catalog.Database

        // ----------------------------------------------------------------------------
        ParameterMappingsSet mappings = new ParameterMappingsSet();
        if (hstore_conf.site.mappings_path != null) {
            File path = new File(hstore_conf.site.mappings_path);
            if (path.exists()) {
                Database catalog_db = catalogContext.database;
                try {
                    mappings.load(path, catalog_db);
                } catch (IOException ex) {
                    throw new RuntimeException(ex);
                }
View Full Code Here

Examples of org.xmldb.api.base.Database

    final String driver = "org.exist.xmldb.DatabaseImpl";

    // initialize database driver
    Class cl = Class.forName(driver);
    Database database = (Database) cl.newInstance();
    database.setProperty("create-database", "true");
    DatabaseManager.registerDatabase(database);

    Collection col = null;
    XMLResource res = null;
    try {
View Full Code Here

Examples of org.xtreemfs.babudb.api.database.Database

                2, 1024 * 1024 * 16, 5 * 60, SyncMode.SYNC_WRITE, 0, 0, false, 16, 1024 * 1024 * 512));
            DatabaseManager dbm = databaseSystem.getDatabaseManager();
           
            // create a new database called myDB
            dbm.createDatabase("myDB", 2);
            Database db = dbm.getDatabase("myDB");
           
            // create an insert group for atomic inserts
            DatabaseInsertGroup group = db.createInsertGroup();
           
            // insert one key in each index
            group.addInsert(0, "Key1".getBytes(), "Value1".getBytes());
            group.addInsert(1, "Key2".getBytes(), "Value2".getBytes());
           
            // and execute group insert
            db.insert(group, null).get();
           
            // now do a lookup
            byte[] result = db.lookup(0, "Key1".getBytes(), null).get();
           
            // create a checkpoint for faster start-ups
            databaseSystem.getCheckpointer().checkpoint();
           
            // shutdown database
View Full Code Here

Examples of quickdb.db.AdminBase.DATABASE

public class App
{
    public static void main( String[] args )
    {
        DATABASE db = DATABASE.MYSQL;
        String host = "localhost";
        String port = "3306";
        String database = "testQuickDB";
        String user = "root";
        String pass = "";
View Full Code Here

Examples of uptimemart.Database

            java.util.logging.Logger.getLogger(UptimeMart.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        //Set up the tables in the db
        Database db = new Database();
        db.initialize();

        // Begin running the server
        HttpServer mock_server = HttpServer.create(new InetSocketAddress(8000), 0);
        mock_server.createContext("/", new HTTPHandler());
        mock_server.setExecutor(null); // creates a default executor
View Full Code Here

Examples of wolf.util.Database

//        bm.save("data/blocks.txt", "data/lots.txt");
//      }
//    }).start();
   
    try {
      Database d = new Database();
      d.open("data/city.db");
      d.saveCityData(this);
      d.close();
      log.log("Database saved");
    } catch (ClassNotFoundException e) {
      e.printStackTrace();
      System.err.println("Sqlite did not launch correctly!");
    } catch (SQLException e) {
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.