Package com.asakusafw.runtime.value

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


    public void emitInt() throws Exception {
        IntOption value = new IntOption();

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


        value.modify(0);
        emitter.emit(value);
        value.modify(10);
        emitter.emit(value);
        value.modify(-10);
        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(Integer.MAX_VALUE);
        emitter.emit(value);
        value.modify(Integer.MIN_VALUE);
        emitter.emit(value);
        emitter.endRecord();
View Full Code Here

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

        emitter.close();
View Full Code Here

     */
    @Test
    public void emitInt() throws Exception {
        IntOption value = new IntOption();

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

                IntOption intOption = new IntOption();
                int i = rs.getInt(columnIndex);
                if (rs.wasNull()) {
                    intOption.setNull();
                } else {
                    intOption.modify(i);
                }
                modelClass.getMethod(name, IntOption.class).invoke(model, intOption);
                break;
            case SMALL_INT:
                ShortOption shortOption = new ShortOption();
View Full Code Here

        } else {
            if (l < Integer.MIN_VALUE || Integer.MAX_VALUE < l) {
                String msg = createExceptionMsg(cell, "表現可能な範囲外の数値(" + l + ")");
                throw new NumberFormatException(msg);
            }
            op.modify(l.intValue());
        }
        return op;
    }

    /**
 
View Full Code Here

        testField(list, "getCBigintOption", DATA.DATETIME_DATETIME_FIMT2, longOption.setNull());
        testField(list, "getCBigintOption", DATA.STRING_DATETIME, longOption.setNull());

        // C_INTのテスト
        IntOption intOption = new IntOption();
        testField(list, "getCIntOption", DATA.NUMERIC_0, intOption.modify(0));
        testField(list, "getCIntOption", DATA.NUMERIC_1, intOption.modify(1));
        testField(list, "getCIntOption", DATA.NUMERIC_MINUS1, intOption.modify(-1));
        testField(list, "getCIntOption", DATA.NUMERIC_MAX, intOption.modify(Integer.MAX_VALUE));
        testField(list, "getCIntOption", DATA.NUMERIC_MIN, intOption.modify(Integer.MIN_VALUE));
        testField(list, "getCIntOption", DATA.NUMERIC_DECIMAL, intOption.setNull());
View Full Code Here

        testField(list, "getCBigintOption", DATA.STRING_DATETIME, longOption.setNull());

        // C_INTのテスト
        IntOption intOption = new IntOption();
        testField(list, "getCIntOption", DATA.NUMERIC_0, intOption.modify(0));
        testField(list, "getCIntOption", DATA.NUMERIC_1, intOption.modify(1));
        testField(list, "getCIntOption", DATA.NUMERIC_MINUS1, intOption.modify(-1));
        testField(list, "getCIntOption", DATA.NUMERIC_MAX, intOption.modify(Integer.MAX_VALUE));
        testField(list, "getCIntOption", DATA.NUMERIC_MIN, intOption.modify(Integer.MIN_VALUE));
        testField(list, "getCIntOption", DATA.NUMERIC_DECIMAL, intOption.setNull());
        testField(list, "getCIntOption", DATA.NUMERIC_OVER_MAX, intOption.setNull());
View Full Code Here

        // C_INTのテスト
        IntOption intOption = new IntOption();
        testField(list, "getCIntOption", DATA.NUMERIC_0, intOption.modify(0));
        testField(list, "getCIntOption", DATA.NUMERIC_1, intOption.modify(1));
        testField(list, "getCIntOption", DATA.NUMERIC_MINUS1, intOption.modify(-1));
        testField(list, "getCIntOption", DATA.NUMERIC_MAX, intOption.modify(Integer.MAX_VALUE));
        testField(list, "getCIntOption", DATA.NUMERIC_MIN, intOption.modify(Integer.MIN_VALUE));
        testField(list, "getCIntOption", DATA.NUMERIC_DECIMAL, intOption.setNull());
        testField(list, "getCIntOption", DATA.NUMERIC_OVER_MAX, intOption.setNull());
        testField(list, "getCIntOption", DATA.NUMERIC_UNDER_MIN, intOption.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.