Examples of countClusterElements()


Examples of com.orientechnologies.orient.object.db.OObjectDatabaseTx.countClusterElements()

            company = new Company((int) i, "Microsoft" + i);
            company.setEmployees((int) (100000 + i));
            company.getAddresses().add(new Address("Headquarter", redmond, "WA 98073-9717"));
            database.save(company);
        }
        assertEquals(database.countClusterElements("Company") - startRecordNumber, TOT_RECORDS);
        final List<Account> result = database.query(new OSQLSynchQuery<Account>(
                "select from Company where name.length() > 0"));

        assertTrue(result.size() > 0);
        assertEquals(result.size(), TOT_RECORDS);
View Full Code Here

Examples of com.orientechnologies.orient.object.db.OObjectDatabaseTx.countClusterElements()

        for (int i = 0; i < result.size(); ++i) {
            account2 = result2.get(i);
            assertNotSame(account2.getName().length(), 0);
        }

        startRecordNumber = database.countClusterElements("Company");

        // DELETE ALL THE RECORD IN THE CLUSTER
        for (Object obj : database.browseCluster("Company")) {
            database.delete(obj);
            break;
View Full Code Here

Examples of com.orientechnologies.orient.object.db.OObjectDatabaseTx.countClusterElements()

        for (Object obj : database.browseCluster("Company")) {
            database.delete(obj);
            break;
        }

        assertEquals(database.countClusterElements("Company"), startRecordNumber - 1);
    }

    @Test
    public void graphDB() {
        OGraphDatabase database = ODB.openGraphDB();
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.