本文整理汇总了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;
}
示例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);
}
示例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);
}
示例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);
}
}