Examples of Database


Examples of com.cin.test.util.Database

  static StaticDataService staticDataService;
  static TransactionRemote aRemote;

  @BeforeClass
  public static void setUpBeforeClass() throws Exception {
    db = new Database();
    db.resetAllData();
   
    staticDataService = new StaticDataService();
    aRemote = EJBLookup.getInstance().getTransactionEJB();
  }
View Full Code Here

Examples of com.danidemi.jlubricant.embeddable.Database

     
      String expectedUsername = strings[0];
      String expectedPassword = strings[1];
     
      // given
      Database db = null;
      try {
        db = buildADatabaseWithUsernameAndPassword(expectedUsername, expectedPassword);
      } catch (Exception e1) {
        throw new RuntimeException(e1);
      }
View Full Code Here

Examples of com.dbxml.db.core.Database

  
   public static final String[] PARAMS_shutdown = {"exitCode"};

   public void shutdown(int exitCode) throws DBException {
    // Do an access control check
    Database db = Database.getInstance();
    if ( db != null ) {
      Collection col = db.getSystemCollection();
      String path = col.getCanonicalName();
      db.getSecurityManager().access(path, Access.EXECUTE);
    }
    server.shutDown(exitCode);
   }
View Full Code Here

Examples of com.directededge.Database

    }

    @Before
    public void setUp() throws ResourceException
    {
        database = new Database("testdb", "test");
        database.importFromFile("../testdb.xml");
    }
View Full Code Here

Examples of com.founder.fix.bpmn2extensions.coreconfig.DataBase

  private ProcessEngine getProcessEngine(String userId) throws Exception{
      Connection connection = null;
      ProcessEngine processEngine=ProcessEngineManagement.getDefaultProcessEngine();
    //获取流程当前配置的数据库信息
    DataBase dataBase=processEngine.getProcessEngineConfiguration().getSelectedDatabase();
    String driver = dataBase.getDriverClassName();
    String url = dataBase.getUrl();
    String user = dataBase.getUsername();
    String password = dataBase.getPassword();
    //创建Connection
    Class.forName(driver);
    connection = DriverManager.getConnection(url, user, password);
    connection.setAutoCommit(false);
    ExternalContent externalContent =new ExternalContent();
View Full Code Here

Examples of com.fourspaces.couchdb.Database

    }

    private synchronized Database getDatabase(RequestContext request) {
        String name = request.getTarget().getParameter("feed");
        Session session = new Session(host, port);
        Database db = null;
        try {
            db = session.getDatabase(name);
        } catch (Exception e) {
            // error if the db is not found, ignore the error,
            // we're going to create it
View Full Code Here

Examples of com.github.rnewson.couchdb.lucene.couchdb.Database

                         final HttpServletResponse resp) throws IOException, JSONException {
        final Couch couch = getCouch(req);
        final Set<String> dbKeep = new HashSet<String>();
        final JSONArray databases = couch.getAllDatabases();
        for (int i = 0; i < databases.length(); i++) {
            final Database db = couch.getDatabase(databases.getString(i));
            final UUID uuid = db.getUuid();
            if (uuid == null) {
                continue;
            }
            dbKeep.add(uuid.toString());

            final Set<String> viewKeep = new HashSet<String>();

            for (final DesignDocument ddoc : db.getAllDesignDocuments()) {
                for (final View view : ddoc.getAllViews().values()) {
                    viewKeep.add(view.getDigest());
                }
            }

            // Delete all indexes except the keepers.
            final File[] dirs = DatabaseIndexer.uuidDir(root, db.getUuid()).listFiles();
            if (dirs != null) {
                for (final File dir : dirs) {
                    if (!viewKeep.contains(dir.getName())) {
                        LOG.info("Cleaning old index at " + dir);
                        FileUtils.deleteDirectory(dir);
View Full Code Here

Examples of com.google.gwt.gears.client.database.Database

   * Test method for
   * {@link com.google.gwt.gears.client.Factory#createDatabase()}.
   */
  public void testCreateDatabase() {
    Factory factory = Factory.getInstance();
    Database database = factory.createDatabase();
    assertNotNull("Factory.createDatabase() returned null", database);
  }
View Full Code Here

Examples of com.healthmarketscience.jackcess.Database

    try
    {
      ResultSetMetaData rsmd = temp.getMetaData();
      String tablename = rsmd.getTableName(1);
      Database db = DatabaseBuilder.create(Database.FileFormat.V2007, new File(getExportFilename()));
      db = DatabaseBuilder.open(new File(getExportFilename()));
      new ImportUtil.Builder(db, tablename).importResultSet(temp);
      db.close();

    } catch (Exception e)
    {
      result = false;
      setErrorMessage(e.getMessage());
View Full Code Here

Examples of com.iCo6.IO.Database

            Commands.setPermission("empty", "iConomy.accounts.empty");
            Commands.setHelp("empty", new String[] { "", "Empty database of accounts." });

            // Setup Database.
            try {
                Database = new Database(
                    Constants.Nodes.DatabaseType.toString(),
                    Constants.Nodes.DatabaseUrl.toString(),
                    Constants.Nodes.DatabaseUsername.toString(),
                    Constants.Nodes.DatabasePassword.toString()
                );
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.