Examples of Database


Examples of org.apache.derby.iapi.db.Database

      // if we are shutting down don't attempt to boot or create the database
      boolean shutdown = Boolean.valueOf(info.getProperty(Attribute.SHUTDOWN_ATTR)).booleanValue();

      // see if database is already booted
      Database database = (Database) Monitor.findService(Property.DATABASE_MODULE, tr.getDBName());

      // See if user wants to create a new database.
      boolean  createBoot = createBoot(info)

      // DERBY-2264: keeps track of whether we do a plain boot before an
View Full Code Here

Examples of org.apache.hadoop.hive.metastore.api.Database

        String obj = hiveObjectDesc.getObject();
        boolean notFound = true;
        String dbName = null;
        String tableName = null;
        Table tableObj = null;
        Database dbObj = null;

        if (hiveObjectDesc.getTable()) {
          String[] dbTab = obj.split("\\.");
          if (dbTab.length == 2) {
            dbName = dbTab[0];
View Full Code Here

Examples of org.apache.ode.il.dbutil.Database

   
   
  }

  private void initDataSource() throws Exception {
    _db = new Database(_odeConfig);
    _db.setTransactionManager(_txMgr);
    // TODO: Not sure if needed for ODE1.3.3
    //_db.setWorkRoot(_workRoot);

    try {
View Full Code Here

Examples of org.apache.sentry.core.Database

        inputTabHierarcyList, outputTabHierarcyList);
  }
  @Test
  public void testValidateCreateFunctionAppropiateURI() throws Exception {
    inputTabHierarcyList.add(Arrays.asList(new Authorizable[] {
        new Server(SERVER1), new Database(CUSTOMER_DB), new Table(AccessConstants.ALL)
    }));
    inputTabHierarcyList.add(Arrays.asList(new Authorizable[] {
        new Server(SERVER1), new AccessURI("file:///path/to/some/lib/dir/my.jar")
    }));
    testAuth.authorize(HiveOperation.CREATEFUNCTION, createFuncPrivileges, ANALYST_SUBJECT,
View Full Code Here

Examples of org.apache.sentry.core.model.db.Database

    append("malicious_role = server=server1->db=customers->table=purchases->action=select", otherPolicyFile);
    PolicyEngine policy = new DBPolicyFileBackend(globalPolicyFile.getPath(), "server1");
    ImmutableSet<String> permissions = policy.getPermissions(
        Arrays.asList(new Authorizable[] {
            new Server("server1"),
            new Database("other_group_db")
    }), Lists.newArrayList("other_group")).get("other_group");
    Assert.assertTrue(permissions.toString(), permissions.isEmpty());
  }
View Full Code Here

Examples of org.apache.torque.Database

            throw new TorqueException("Database insert attempted without "
                    + "anything specified to insert");
        }

        String dbName = criteria.getDbName();
        Database database = Torque.getDatabase(dbName);
        DatabaseMap dbMap = database.getDatabaseMap();
        TableMap tableMap = dbMap.getTable(table);
        Object keyInfo = tableMap.getPrimaryKeyMethodInfo();
        IdGenerator keyGen
                = database.getIdGenerator(tableMap.getPrimaryKeyMethod());

        ColumnMap pk = getPrimaryKey(criteria);

        // If the keyMethod is SEQUENCE or IDBROKERTABLE, get the id
        // before the insert.
View Full Code Here

Examples of org.apache.torque.engine.database.model.Database

            {
                File file = (File) files.elementAt(i);
                String filename = file.getAbsolutePath();
                // load the sql file
                SQLToAppData s2a = new SQLToAppData(filename);
                Database ad = s2a.execute();
                // write the output to a new xml file
                String xmlFilename = filename + ".xml";
                PrintWriter out = new PrintWriter(
                        new FileOutputStream(xmlFilename, false),true);
                out.println(ad);
View Full Code Here

Examples of org.apache.turbine.torque.engine.database.model.Database

         * object that represents our model.
         */
        XmlToAppData xmlParser = new XmlToAppData();
        app = xmlParser.parseFile(xmlFile);

        Database db = app.getDatabase(databaseName);
        if (db == null)
        {
            db = app.getDatabases()[0];
        }
        try
View Full Code Here

Examples of org.apache.xindice.client.corba.db.Database

      // xindice:///db-instance/collection-path
      String collectionName = getCollectionFromURI(uri);
      org.xmldb.api.base.Collection collection = null;
      try {
         Database db = (Database) dbs.get(dbKey);

         collection =
            new CollectionImpl(db.getCollection(collectionName), db, this);
      }
      catch (APIException e) {
         if (e.faultCode == FaultCodes.COL_COLLECTION_NOT_FOUND) {
            return null;
         }
View Full Code Here

Examples of org.apache.xindice.core.Database

            // The rest of the name locates the collection
            colName = name.substring( colIndex + 1 );
         }

         Database db = Database.getDatabase( dbName );
         if ( db == null ) {
            throw new Exception( "Database " + dbName + " could not be found" );
         }
         Collection col = db.getCollection( colName );
         if ( col == null ) {
            throw new Exception( "Collection " + colName + " could not be found" );
         }

         return col;
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.