Package com.foundationdb.server.types.value

Examples of com.foundationdb.server.types.value.ValueSource


    public String getNString(int index) {
        throw new UnsupportedOperationException();
    }

    public boolean getBoolean(int index) {
        ValueSource value = value(index);
        if (wasNull)
            return false;
        else
            return cachedCast(index, value, Types.BOOLEAN).getBoolean();
    }
View Full Code Here


        else
            return cachedCast(index, value, Types.BOOLEAN).getBoolean();
    }

    public byte getByte(int index) {
        ValueSource value = value(index);
        if (wasNull)
            return 0;
        else
            return (byte)getTypesTranslator()
                .getIntegerValue(cachedCast(index, value, Types.TINYINT));
View Full Code Here

            return (byte)getTypesTranslator()
                .getIntegerValue(cachedCast(index, value, Types.TINYINT));
    }

    public short getShort(int index) {
        ValueSource value = value(index);
        if (wasNull)
            return 0;
        else
            return (short)getTypesTranslator()
                .getIntegerValue(cachedCast(index, value, Types.SMALLINT));
View Full Code Here

            return (short)getTypesTranslator()
                .getIntegerValue(cachedCast(index, value, Types.SMALLINT));
    }

    public int getInt(int index) {
        ValueSource value = value(index);
        if (wasNull)
            return 0;
        else
            return (int)getTypesTranslator()
                .getIntegerValue(cachedCast(index, value, Types.INTEGER));
View Full Code Here

            return (int)getTypesTranslator()
                .getIntegerValue(cachedCast(index, value, Types.INTEGER));
    }

    public long getLong(int index) {
        ValueSource value = value(index);
        if (wasNull)
            return 0;
        else
            return getTypesTranslator()
                .getIntegerValue(cachedCast(index, value, Types.BIGINT));
View Full Code Here

            return getTypesTranslator()
                .getIntegerValue(cachedCast(index, value, Types.BIGINT));
    }

    public float getFloat(int index) {
        ValueSource value = value(index);
        if (wasNull)
            return 0.0f;
        else
            return cachedCast(index, value, Types.FLOAT).getFloat();
    }
View Full Code Here

        else
            return cachedCast(index, value, Types.FLOAT).getFloat();
    }

    public double getDouble(int index) {
        ValueSource value = value(index);
        if (wasNull)
            return 0.0;
        else
            return cachedCast(index, value, Types.DOUBLE).getDouble();
    }
View Full Code Here

        else
            return cachedCast(index, value, Types.DOUBLE).getDouble();
    }

    public BigDecimal getBigDecimal(int index) {
        ValueSource value = value(index);
        if (wasNull)
            return null;
        else
            return getTypesTranslator().getDecimalValue(cachedCast(index, value, Types.DECIMAL));
    }
View Full Code Here

        else
            return getTypesTranslator().getDecimalValue(cachedCast(index, value, Types.DECIMAL));
    }

    public byte[] getBytes(int index) {
        ValueSource value = value(index);
        if (wasNull)
            return null;
        else
            return cachedCast(index, value, Types.VARBINARY).getBytes();
    }
View Full Code Here

        else
            return cachedCast(index, value, Types.VARBINARY).getBytes();
    }

    public Date getDate(int index) {
        ValueSource value = value(index);
        if (wasNull)
            return null;
        else
            return new Date(getTypesTranslator().getTimestampMillisValue(value));
    }
View Full Code Here

TOP

Related Classes of com.foundationdb.server.types.value.ValueSource

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.