Package org.cassandraunit.type

Examples of org.cassandraunit.type.GenericTypeEnum


        }

        GenericType columnValue = null;
        if (parsedColumn.getValue() != null) {
            if (metaData != null && !TypeExtractor.containFunctions(parsedColumn.getValue())) {
                GenericTypeEnum genTypeEnum = GenericTypeEnum.fromValue(metaData.getValidationClass().name());
                columnValue = new GenericType(parsedColumn.getValue(), genTypeEnum);
            } else {
                columnValue = TypeExtractor.extract(parsedColumn.getValue(), defaultColumnValueType);
            }
        }
View Full Code Here


        }

        GenericType columnValue = null;
        if (xmlColumn.getValue() != null) {
            if (metaData != null && !TypeExtractor.containFunctions(xmlColumn.getValue())) {
                GenericTypeEnum genTypeEnum = GenericTypeEnum.valueOf(metaData.getValidationClass().name());
                columnValue = new GenericType(xmlColumn.getValue(), genTypeEnum);
            } else {
                columnValue = TypeExtractor.extract(xmlColumn.getValue(), defaultColumnValueType);
            }
        }
View Full Code Here

    @Override
    public ByteBuffer toByteBuffer(GenericType genericType) {
        ByteBuffer byteBuffer = null;

        GenericTypeEnum currentType = genericType.getType();

        if (currentType == null) {
            currentType = GenericTypeEnum.BYTES_TYPE;
        }
View Full Code Here

TOP

Related Classes of org.cassandraunit.type.GenericTypeEnum

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.