Package com.datastax.driver.core

Examples of com.datastax.driver.core.ColumnMetadata$IndexMetadata


    }

    @Test
    public void should_validate_simple_column() throws Exception {
        //Given
        final ColumnMetadata nameColumnMeta = create(tableMetadata, "name", text());

        when(meta.getCQL3ColumnName()).thenReturn("name");
        when(meta.config().<String>getCQL3ValueType()).thenReturn(String.class);
        when(meta.isStaticColumn()).thenReturn(false);
        when(entityMeta.config().isSchemaUpdateEnabled()).thenReturn(false);
View Full Code Here


    }

    @Test
    public void should_verify_indexed_simple_column() throws Exception {
        //Given
        final ColumnMetadata nameColumnMeta = create(tableMetadata, "name", text());

        when(meta.getCQL3ColumnName()).thenReturn("name");
        when(meta.config().<String>getCQL3ValueType()).thenReturn(String.class);
        when(meta.isStaticColumn()).thenReturn(false);
        when(entityMeta.config().isSchemaUpdateEnabled()).thenReturn(false);
View Full Code Here

    }

    @Test
    public void should_validate_list_column() throws Exception {
        //Given
        final ColumnMetadata listColumnMeta = create(tableMetadata, "list", DataType.list(DataType.text()));

        when(meta.getCQL3ColumnName()).thenReturn("list");
        when(meta.type()).thenReturn(LIST);
        when(meta.config().<String>getCQL3ValueType()).thenReturn(String.class);
        when(meta.isStaticColumn()).thenReturn(false);
View Full Code Here

    }

    @Test
    public void should_validate_set_column() throws Exception {
        //Given
        final ColumnMetadata setColumnMeta = create(tableMetadata, "set", DataType.set(DataType.text()));

        when(meta.getCQL3ColumnName()).thenReturn("set");
        when(meta.type()).thenReturn(SET);
        when(meta.config().<String>getCQL3ValueType()).thenReturn(String.class);
        when(meta.isStaticColumn()).thenReturn(false);
View Full Code Here

    }

    @Test
    public void should_validate_map_column() throws Exception {
        //Given
        final ColumnMetadata mapColumnMeta = create(tableMetadata, "map", DataType.map(DataType.cint(), DataType.text()));

        when(meta.getCQL3ColumnName()).thenReturn("map");
        when(meta.type()).thenReturn(MAP);
        when(meta.config().<Integer>getCQL3KeyType()).thenReturn(Integer.class);
        when(meta.config().<String>getCQL3ValueType()).thenReturn(String.class);
View Full Code Here

        view.validateCollectionAndMapColumn(tableMetadata, entityMeta);
    }

    @Test
    public void should_validate_clustered_counter_column() throws Exception {
        final ColumnMetadata counterColumnMeta = create(tableMetadata, "count", counter());

        when(meta.getCQL3ColumnName()).thenReturn("count");
        when(meta.config().<Counter>getCQL3ValueType()).thenReturn(Counter.class);
        when(meta.isStaticColumn()).thenReturn(false);
        when(entityMeta.config().isSchemaUpdateEnabled()).thenReturn(false);
View Full Code Here

TOP

Related Classes of com.datastax.driver.core.ColumnMetadata$IndexMetadata

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.