Examples of Database


Examples of com.sleepycat.db.Database

        dbConfig.setType(DatabaseType.BTREE);

        // Create the Serial class catalog.  This holds the serialized class
        // format for all database records of serial format.
        //
        Database catalogDb = env.openDatabase(null, CLASS_CATALOG, null,
                                              dbConfig);
        javaCatalog = new StoredClassCatalog(catalogDb);

        // Open the Berkeley DB database for the part, supplier and shipment
        // stores.  The stores are opened with no duplicate keys allowed.
View Full Code Here

Examples of com.sleepycat.je.Database

      /* Verify the database name by trying to open it. */
      Environment env = new Environment(new File(envHome), null);
      DatabaseConfig dbConfig = new DatabaseConfig();
      dbConfig.setTransactional(transactional);
      Database db = env.openDatabase(null, dbName, dbConfig);
      db.close();
      env.close();
   }
View Full Code Here

Examples of com.totsp.gwittir.client.util.html5db.Database

*
* @author kebernet
*/
public class DBTest {
    public static void doInsert() {
        Database db = Databases.openDatabase("gwittir-windowcontext", "1.0",
                "This is the gwittir test db", 512000);
        db.run(new TransactionTask() {
                public void run(Transaction tx) {
                    tx.execute("SELECT COUNT(*) FROM Gwittir", null,
                        new ResultsCallback() {
                            public void onSuccess(Transaction tx, ResultSet rs) {
                                Window.alert("Worked!");
View Full Code Here

Examples of com.vhdlprogramer.DataBase

  }
  public Port[] getAllGenerics(){
    return (Port[]) generics.toArray();
  }
  public void writeToDB(){
    DataBase db = new DataBase("user");
    db.setTable("entity");
    String cols[]={"name", "config_id"};
    String vals[]={this.name,"0"};
    String types[]={"varchar","int"};
   
    db.createConnection();
    db.insert(cols, vals, types);
    db.closeConnection();
   
  }
View Full Code Here

Examples of com.yammer.dropwizard.db.Database

  @Override
  protected void initialize(TodoServiceConfiguration configuration,
                            Environment environment) throws Exception {

    final DatabaseFactory factory = new DatabaseFactory(environment);
    Database database = factory.build(configuration.getDatabase(), "todo");

    final TodoDao dao = database.onDemand(TodoDao.class);
    dao.createTableIfNotExists();

    environment.addResource(new TodoResource(dao));
    environment.addResource(new HtmlPageResource());
  }
View Full Code Here

Examples of dao.DataBase

* connect me:419723443@qq.com
*/
public class GridTreeDao {
  private DataBase dao  = null;
  public GridTreeDao(){
    dao = new DataBase();
  }
View Full Code Here

Examples of database.Database

         *
         */
        String dbPath = configMap.get("databaseFilePath");
        String outDir = configMap.get("outputDirectoryPath");
       
        Database db = new Database(dbPath);
       
        System.out.println(" Extracting input peptide sequences...");
        // instantiate objects
        JMotifXAroundSitePeptideObjectsMaker objsMaker = new JMotifXAroundSitePeptideObjectsMaker();
       
View Full Code Here

Examples of datomic.Database

    }
   
    @RequestMapping(value = "/database/{dbname}/search", method = GET)
    public ModelAndView search(@PathVariable String dbname, @RequestParam String terms) {
        final Connection connection = connect(dbname);
        final Database db = connection.db();
        final Collection<List<Object>> results =
            Peer.q("[:find ?o ?c :in $ % ?t :where (ft ?o ?c ?t)]",
                connection.db(),
                Rules.universalFullTextRule(connection.db()),
                terms);
        final List<Entity> entities = Lists.newArrayListWithCapacity(results.size());
        for (List<Object> result : results) {
            entities.add(db.entity(result.get(0)));
        }
        return new ModelAndView("search")
            .addObject("dbname", dbname)
            .addObject("uri", toUri(dbname))
            .addObject("terms", terms)
View Full Code Here

Examples of de.bananaco.permissions.handlers.Database

        // sanity checking
        world = (world == null || Packages.instance.global) ? "global" : world;
        List<Carrier> carriers = Packages.instance.handler.carriers;
        for(Carrier c : carriers) {
            if(c.getName().equalsIgnoreCase(world)) {
                Database db = c.getDatabase();
                return db.hasEntry(player);
            }
        }
        return false;
    }
View Full Code Here

Examples of de.fuberlin.wiwiss.d2rq.map.Database

  private void parseDatabases() {
    Iterator<Individual> it = this.model.listIndividuals(D2RQ.Database);
    while (it.hasNext()) {
      Resource dbResource = it.next();
      Database database = new Database(dbResource);
      parseDatabase(database, dbResource);
      this.mapping.addDatabase(database);
    }
  }
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.