Package com.salesforce.phoenix.exception

Examples of com.salesforce.phoenix.exception.ValueTypeIncompatibleException


        }
        if (getMaxLength() != null && getScale() != null) {
            result = NumberUtil.setDecimalWidthAndScale(result, getMaxLength(), getScale());
        }
        if (result == null) {
            throw new ValueTypeIncompatibleException(PDataType.DECIMAL, getMaxLength(), getScale());
        }
        ptr.set(PDataType.DECIMAL.toBytes(result));
        return true;
    }
View Full Code Here


        }
        if (maxLength != null && scale != null) {
            result = NumberUtil.setDecimalWidthAndScale(result, maxLength, scale);
        }
        if (result == null) {
            throw new ValueTypeIncompatibleException(PDataType.DECIMAL, maxLength, scale);
        }
        ptr.set(PDataType.DECIMAL.toBytes(result));
        return true;
    }
View Full Code Here

        }
        if (getMaxLength() != null && getScale() != null) {
            result = NumberUtil.setDecimalWidthAndScale(result, getMaxLength(), getScale());
        }
        if (result == null) {
            throw new ValueTypeIncompatibleException(PDataType.DECIMAL, getMaxLength(), getScale());
        }
        ptr.set(PDataType.DECIMAL.toBytes(result));
        return true;
    }
View Full Code Here

                                    // We are guaranteed that the two column will have the same type.
                                    if (!column.getDataType().isSizeCompatible(column.getDataType(),
                                            value, bytes,
                                            expression.getMaxLength(), column.getMaxLength(),
                                            expression.getScale(), column.getScale())) {
                                        throw new ValueTypeIncompatibleException(column.getDataType(),
                                                column.getMaxLength(), column.getScale());
                                    }
                                    bytes = column.getDataType().coerceBytes(bytes, value, expression.getDataType(),
                                            expression.getMaxLength(), expression.getScale(), column.getMaxLength(), column.getScale());
                                    row.setValue(column, bytes);
View Full Code Here

        }
        if (maxLength != null && scale != null) {
            result = NumberUtil.setDecimalWidthAndScale(result, maxLength, scale);
        }
        if (result == null) {
            throw new ValueTypeIncompatibleException(PDataType.DECIMAL, maxLength, scale);
        }
        ptr.set(PDataType.DECIMAL.toBytes(result));
        return true;
    }
View Full Code Here

TOP

Related Classes of com.salesforce.phoenix.exception.ValueTypeIncompatibleException

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.