Package com.impetus.client.cassandra.schemamanager

Examples of com.impetus.client.cassandra.schemamanager.CassandraSchemaManager


    {
        if (schemaManager == null)
        {
            initializePropertyReader();
            setExternalProperties(externalProperty);
            schemaManager = new CassandraSchemaManager(PelopsClientFactory.class.getName(), externalProperty,
                    kunderaMetadata);
        }

        return schemaManager;
    }
View Full Code Here


    {
        if (schemaManager == null)
        {
            initializePropertyReader();
            externalProperties.put(CassandraConstants.CQL_VERSION, CassandraConstants.CQL_VERSION_3_0);
            schemaManager = new CassandraSchemaManager(this.getClass().getName(), externalProperties, kunderaMetadata);
        }
        return schemaManager;

    }
View Full Code Here

    {
        EntityManagerFactoryImpl emf = getEntityManagerFactory();
        CassandraPropertyReader reader = new CassandraPropertyReader(null, emf.getKunderaMetadataInstance()
                .getApplicationMetadata().getPersistenceUnitMetadata("cassandraProperties"));
        reader.read(persistenceUnit);
        CassandraSchemaManager manager = new CassandraSchemaManager(ThriftClientFactory.class.getName(), null,
                emf.getKunderaMetadataInstance());
        boolean valid = manager.validateEntity(ValidCounterColumnFamily.class);
        Assert.assertTrue(valid);
        valid = manager.validateEntity(InvalidCounterColumnEntity.class);
        Assert.assertFalse(valid);
    }
View Full Code Here

    public SchemaManager getSchemaManager(Map<String, Object> externalProperty)
    {
        if (schemaManager == null)
        {
            initializePropertyReader();
            schemaManager = new CassandraSchemaManager(ThriftClientFactory.class.getName(), externalProperties,
                    kunderaMetadata);
        }
        return schemaManager;
    }
View Full Code Here

TOP

Related Classes of com.impetus.client.cassandra.schemamanager.CassandraSchemaManager

Copyright © 2018 www.massapicom. 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.