当前位置: 首页>>代码示例>>Java>>正文


Java ArrayUtil.clearArray方法代码示例

本文整理汇总了Java中org.hsqldb.lib.ArrayUtil.clearArray方法的典型用法代码示例。如果您正苦于以下问题:Java ArrayUtil.clearArray方法的具体用法?Java ArrayUtil.clearArray怎么用?Java ArrayUtil.clearArray使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.hsqldb.lib.ArrayUtil的用法示例。


在下文中一共展示了ArrayUtil.clearArray方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: next

import org.hsqldb.lib.ArrayUtil; //导入方法依赖的package包/类
/**
 * Advances to the next available value. <p>
 *
 * @return true if a next value is available upon exit
 *
 * @throws HsqlException if a database access error occurs
 */
boolean next(Session session) throws HsqlException {

    boolean result = false;

    nonJoinIsNull  = false;
    isCurrentOuter = false;

    while (true) {
        currentRow = it.next();

        if (currentRow == null) {
            break;
        }

        currentData = currentRow.getData();

        if (isMultiFindFirst) {
            if (filterIndex.compareRowNonUnique(
                    session, currentJoinData, filterIndex.colIndex,
                    currentData, multiFindCount) != 0) {
                break;
            }
        }

        if (!(eEnd == null || eEnd.testCondition(session))) {
            break;
        }

        if (eAnd == null || eAnd.testCondition(session)) {
            result = true;

            break;
        }
    }

    if (result) {
        return true;
    }

    if (isMultiFindFirst) {
        ArrayUtil.clearArray(ArrayUtil.CLASS_CODE_OBJECT, currentJoinData,
                             0, currentJoinData.length);
    }

    currentRow  = null;
    currentData = emptyData;

    return false;
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:57,代码来源:TableFilter.java

示例2: clearParameters

import org.hsqldb.lib.ArrayUtil; //导入方法依赖的package包/类
/**
 * <!-- start generic documentation -->
 * Clears the current parameter values immediately.
 * <P>In general, parameter values remain in force for repeated use of a
 * statement. Setting a parameter value automatically clears its
 * previous value.  However, in some cases it is useful to immediately
 * release the resources used by the current parameter values; this can
 * be done by calling the method <code>clearParameters</code>.
 * <!-- end generic documentation -->
 *
 * @exception SQLException if a database access error occurs or
 * this method is called on a closed <code>PreparedStatement</code>
 */
public synchronized void clearParameters() throws SQLException {

    if (isClosed || connection.isClosed) {
        checkClosed();
    }
    ArrayUtil.fillArray(parameterValues, null);
    ArrayUtil.fillArray(parameterSet, null);
    ArrayUtil.clearArray(ArrayUtil.CLASS_CODE_LONG, streamLengths, 0,
                         streamLengths.length);
}
 
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:24,代码来源:JDBCPreparedStatement.java

示例3: clearParameters

import org.hsqldb.lib.ArrayUtil; //导入方法依赖的package包/类
/**
 * <!-- start generic documentation -->
 * Clears the current parameter values immediately.
 * <P>In general, parameter values remain in force for repeated use of a
 * statement. Setting a parameter value automatically clears its
 * previous value.  However, in some cases it is useful to immediately
 * release the resources used by the current parameter values; this can
 * be done by calling the method <code>clearParameters</code>.
 * <!-- end generic documentation -->
 *
 * @exception SQLException if a database access error occurs or
 * this method is called on a closed <code>PreparedStatement</code>
 */
public synchronized void clearParameters() throws SQLException {

    checkClosed();
    ArrayUtil.fillArray(parameterValues, null);
    ArrayUtil.clearArray(ArrayUtil.CLASS_CODE_BOOLEAN, parameterSet, 0,
                         parameterSet.length);
    ArrayUtil.clearArray(ArrayUtil.CLASS_CODE_BOOLEAN, parameterStream, 0,
                         parameterStream.length);
    ArrayUtil.clearArray(ArrayUtil.CLASS_CODE_LONG, streamLengths, 0,
                         parameterStream.length);
}
 
开发者ID:s-store,项目名称:sstore-soft,代码行数:25,代码来源:JDBCPreparedStatement.java

示例4: clearParameters

import org.hsqldb.lib.ArrayUtil; //导入方法依赖的package包/类
/**
 * <!-- start generic documentation -->
 * Clears the current parameter values immediately. <p>
 *
 * In general, parameter values remain in force for repeated use of a
 * statement. Setting a parameter value automatically clears its
 * previous value.  However, in some cases it is useful to immediately
 * release the resources used by the current parameter values; this can
 * be done by calling the method <code>clearParameters</code>.<p>
 * <!-- end generic documentation -->
 *
 * @exception SQLException if a database access error occurs
 */
public void clearParameters() throws SQLException {

    checkClosed();
    ArrayUtil.fillArray(parameterValues, null);
    ArrayUtil.clearArray(ArrayUtil.CLASS_CODE_BOOLEAN, parameterSet, 0,
                         parameterSet.length);

    if (parameterStream != null) {
        ArrayUtil.clearArray(ArrayUtil.CLASS_CODE_BOOLEAN,
                             parameterStream, 0, parameterStream.length);
    }
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:26,代码来源:jdbcPreparedStatement.java


注:本文中的org.hsqldb.lib.ArrayUtil.clearArray方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。