All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.seasar.extension.jdbc.IterationContext Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2004-2015 the Seasar Foundation and the Others.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
 * either express or implied. See the License for the specific language
 * governing permissions and limitations under the License.
 */
package org.seasar.extension.jdbc;


/**
 * 問い合わせ結果を反復するコンテキストです。
 * 
 * @author koichik
 */
public class IterationContext {

    /**
     * 反復を終了する場合true
     */
    protected boolean exit;

    /**
     * 反復を終了する場合はtrueを設定します。
     * 

* {@link IterationCallback#iterate(Object, IterationContext)}の中でこのプロパティをtrueに設定すると、 * 問い合わせ結果の残りは無視されて反復は終了します。 *

* * @param exit * 反復を終了する場合はtrue */ public void setExit(final boolean exit) { this.exit = exit; } /** * 反復を終了する場合trueを返します。 * * @return 反復を終了する場合true */ public boolean isExit() { return exit; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy