Examples of asJavaClass()


Examples of com.datastax.driver.core.DataType.asJavaClass()

      log.trace("Extract data from CQL column [keyspace:{},table:{},column:{}]", column.getKeyspace(),
          column.getTable(), column.getName());
    }

    DataType type = column.getType();
    Class<?> javaClass = type.asJavaClass();
    String name = column.getName();
    Object value;
    if (type.isCollection()) {
      List<DataType> typeArguments = type.getTypeArguments();
      if (List.class.isAssignableFrom(javaClass)) {
View Full Code Here

Examples of com.datastax.driver.core.DataType.asJavaClass()

    public boolean isEqual(ColumnMetadata source, ColumnMetadata target) {
        boolean isEqual;
        final String sourceName = source.getName();
        final TableMetadata sourceTable = source.getTable();
        final DataType sourceType = source.getType();
        final Class<?> sourceClass = sourceType.asJavaClass();
        final List<DataType> sourceTypeParams = sourceType.getTypeArguments();

        final String targetName = target.getName();
        final TableMetadata targetTable = target.getTable();
        final DataType targetType = target.getType();
View Full Code Here

Examples of com.datastax.driver.core.DataType.asJavaClass()

        final List<DataType> sourceTypeParams = sourceType.getTypeArguments();

        final String targetName = target.getName();
        final TableMetadata targetTable = target.getTable();
        final DataType targetType = target.getType();
        final Class<?> targetClass = targetType.asJavaClass();
        final List<DataType> targetTypeParams = targetType.getTypeArguments();

        final boolean isPartiallyEqual = ComparisonChain.start()
                                           .compare(sourceName, targetName)
                                           .compare(sourceTable.getName(), targetTable.getName())
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.