Package com.asakusafw.runtime.value

Examples of com.asakusafw.runtime.value.LongOption.modify()


     */
    @Test
    public void emitLong() throws Exception {
        LongOption value = new LongOption();

        value.modify(0L);
        emitter.emit(value);
        value.modify(10L);
        emitter.emit(value);
        value.modify(-10L);
        emitter.emit(value);
View Full Code Here


    public void emitLong() throws Exception {
        LongOption value = new LongOption();

        value.modify(0L);
        emitter.emit(value);
        value.modify(10L);
        emitter.emit(value);
        value.modify(-10L);
        emitter.emit(value);
        emitter.endRecord();
View Full Code Here

        value.modify(0L);
        emitter.emit(value);
        value.modify(10L);
        emitter.emit(value);
        value.modify(-10L);
        emitter.emit(value);
        emitter.endRecord();

        value.setNull();
        emitter.emit(value);
View Full Code Here

        emitter.emit(value);
        emitter.endRecord();

        value.setNull();
        emitter.emit(value);
        value.modify(Long.MAX_VALUE);
        emitter.emit(value);
        value.modify(Long.MIN_VALUE);
        emitter.emit(value);
        emitter.endRecord();
View Full Code Here

        value.setNull();
        emitter.emit(value);
        value.modify(Long.MAX_VALUE);
        emitter.emit(value);
        value.modify(Long.MIN_VALUE);
        emitter.emit(value);
        emitter.endRecord();

        emitter.close();
        emitter.close();
View Full Code Here

                LongOption longOption = new LongOption();
                long l = rs.getLong(columnIndex);
                if (rs.wasNull()) {
                    longOption.setNull();
                } else {
                    longOption.modify(l);
                }
                modelClass.getMethod(name, LongOption.class).invoke(model, longOption);
                break;
            case INT:
                IntOption intOption = new IntOption();
View Full Code Here

        Long l = getLong(cell);
        LongOption op = new LongOption();
        if (l == null) {
            op.setNull();
        } else {
            op.modify(l);
        }
        return op;
    }

View Full Code Here

    @SuppressWarnings("deprecation")
    private void testModelObjectList(List<Writable> list) throws Exception {

        // C_BINGINTのテスト
        LongOption longOption = new LongOption();
        testField(list, "getCBigintOption", DATA.NUMERIC_0, longOption.modify(0));
        testField(list, "getCBigintOption", DATA.NUMERIC_1, longOption.modify(1));
        testField(list, "getCBigintOption", DATA.NUMERIC_MINUS1, longOption.modify(-1));
        testField(list, "getCBigintOption", DATA.NUMERIC_MAX, longOption.modify(999999999999999L));
        testField(list, "getCBigintOption", DATA.NUMERIC_MIN, longOption.modify(-999999999999999L));
        testField(list, "getCBigintOption", DATA.NUMERIC_DECIMAL, longOption.setNull());
View Full Code Here

    private void testModelObjectList(List<Writable> list) throws Exception {

        // C_BINGINTのテスト
        LongOption longOption = new LongOption();
        testField(list, "getCBigintOption", DATA.NUMERIC_0, longOption.modify(0));
        testField(list, "getCBigintOption", DATA.NUMERIC_1, longOption.modify(1));
        testField(list, "getCBigintOption", DATA.NUMERIC_MINUS1, longOption.modify(-1));
        testField(list, "getCBigintOption", DATA.NUMERIC_MAX, longOption.modify(999999999999999L));
        testField(list, "getCBigintOption", DATA.NUMERIC_MIN, longOption.modify(-999999999999999L));
        testField(list, "getCBigintOption", DATA.NUMERIC_DECIMAL, longOption.setNull());
        testField(list, "getCBigintOption", DATA.NUMERIC_OVER_MAX, longOption.setNull());
View Full Code Here

        // C_BINGINTのテスト
        LongOption longOption = new LongOption();
        testField(list, "getCBigintOption", DATA.NUMERIC_0, longOption.modify(0));
        testField(list, "getCBigintOption", DATA.NUMERIC_1, longOption.modify(1));
        testField(list, "getCBigintOption", DATA.NUMERIC_MINUS1, longOption.modify(-1));
        testField(list, "getCBigintOption", DATA.NUMERIC_MAX, longOption.modify(999999999999999L));
        testField(list, "getCBigintOption", DATA.NUMERIC_MIN, longOption.modify(-999999999999999L));
        testField(list, "getCBigintOption", DATA.NUMERIC_DECIMAL, longOption.setNull());
        testField(list, "getCBigintOption", DATA.NUMERIC_OVER_MAX, longOption.setNull());
        testField(list, "getCBigintOption", DATA.NUMERIC_UNDER_MIN, longOption.setNull());
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.