Examples of DB


Examples of br.edu.puc.campinas.si.pw.pucstore.persistence.DB

public class OperadorNegocio implements INegocio<Operador> {

  @Override
  public void adicionar(Operador entidade) throws Exception {
    DB db = DBFactory.getInstancia();
   
    String sql = "";
    sql += "INSERT INTO operador (nome, email, senha)";
    sql +=   " VALUES ('{nome}', '{email}', '{senha}');";   
   
    sql = replaceParametrosComandoSql(sql, entidade);
   
    db.execComando(sql);

  }
View Full Code Here

Examples of cc.concurrent.mango.DB

                }
            }
        }

        // 数据源与表信息
        DB dbAnno = method.getDeclaringClass().getAnnotation(DB.class);
        if (dbAnno != null) {
            dataSourceName = dbAnno.dataSource();
            tableName = dbAnno.table();
        }

        // 类型上下文
        typeContext = buildTypeContext(method);
View Full Code Here

Examples of com.celum.dbtool.Db


    @Override
    public Db build()
    {
        return new Db(this);
    }
View Full Code Here

Examples of com.cloud.utils.db.DB

        for (IMethodInstance methodIns : methods) {
            ITestNGMethod method = methodIns.getMethod();
            ConstructorOrMethod meth = method.getConstructorOrMethod();
            Method m = meth.getMethod();
            if (m != null) {
                DB db = m.getAnnotation(DB.class);
                if (db != null) {
                    Transaction txn = Transaction.open(m.getName());
                }
            }
        }
View Full Code Here

Examples of com.codecademy.eventhub.base.DB

  @Provides
  public DatedEventIndex getDatedEventIndex(
      @Named("eventhub.directory") String eventIndexDirectory) throws IOException {
    Options options = new Options();
    options.createIfMissing(true);
    DB db = new DB(
        JniDBFactory.factory.open(new File(eventIndexDirectory + "/dated_event_index.db"), options));

    return DatedEventIndex.create(db);
  }
View Full Code Here

Examples of com.google.devtools.moe.client.database.Db

    } catch (InvalidProject e) {
      AppContext.RUN.ui.error(e, "Error creating project");
      return 1;
    }

    Db db;
    if (options.dbLocation.equals("dummy")) {
      db = new DummyDb(true);
    } else {
      // TODO(user): also allow for url dbLocation types
      try {
View Full Code Here

Examples of com.jengine.orm.DB

        ConnectionManager connectionManager = new DBCPConnectionPool(newDBCPDataSource());
//        ConnectionManager connectionManager = new SingleConnectionManager("com.mysql.jdbc.Driver", "jdbc:mysql://localhost:3306/bookdb?", "root", "");
        Adapter adapter = new JDBCAdapter(connectionManager);
        EhcacheManager cacheManager = new EhcacheManager(newEhcacheManager());
        Provider provider = new MySQLProvider(adapter, cacheManager);
        DB db = DBFactory.register(new DB(provider));

        // testing
        DBConnection connection = db.getConnection();
        try {
            test1();
            test2();
            test3();
            test4();
            test5();
            test6();
            test7();
            test8();
            test9();
            test10();
            test11();
        } finally {
            db.closeConnection(connection);
            db.getCacheManager().shutdown();
        }
    }
View Full Code Here

Examples of com.liferay.portal.kernel.dao.db.DB

      runSQL(importSQLs);
    }
  }

  protected void runSQL(String[] sqls) throws Exception {
    DB db = DBFactoryUtil.getDB();

    db.runSQL(sqls);
  }
View Full Code Here

Examples of com.massivecraft.mcore.store.Db

  @Override
  public void perform()
  {
    // Args
    final String dbAlias = this.arg(0, ARString.get(), ConfServer.dburi);
    final Db db = MStore.getDb(dbAlias);
    if (db == null)
    {
      msg("<b>could not get the database.");
      return;
    }
   
    // Prepare
    Set<String> collnames = new TreeSet<String>(NaturalOrderComparator.get());
    collnames.addAll(db.getCollnames());
   
    // Do it!
    msg(Txt.titleize("Collections in "+db.getName()));
    for (String collname : collnames)
    {
      String message = Txt.parse("<h>") + collname;
     
      Coll<?> coll = null;
View Full Code Here

Examples of com.massivecraft.mcore.xlib.mongodb.DB

  // -------------------------------------------- //
 
  @Override
  public Db getDb(String uri)
  {
    DB db = this.getDbInner(uri);
    return new DbMongo(this, db);
  }
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.