本文整理汇总了Java中org.hsqldb.lib.ArrayUtil.fillArray方法的典型用法代码示例。如果您正苦于以下问题:Java ArrayUtil.fillArray方法的具体用法?Java ArrayUtil.fillArray怎么用?Java ArrayUtil.fillArray使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.hsqldb.lib.ArrayUtil
的用法示例。
在下文中一共展示了ArrayUtil.fillArray方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: release
import org.hsqldb.lib.ArrayUtil; //导入方法依赖的package包/类
public void release() {
if (!isCached) {
destroy();
}
if (isCached) {
cache.adjustStoreCount(-1);
cache = null;
isCached = false;
}
elementCount.set(0);
ArrayUtil.fillArray(accessorList, null);
}
示例2: release
import org.hsqldb.lib.ArrayUtil; //导入方法依赖的package包/类
public void release() {
ArrayUtil.fillArray(accessorList, null);
if (isCached) {
cache.storeCount--;
if (cache.storeCount == 0) {
cache.clear();
}
cache = null;
isCached = false;
} else {
rowIdMap.clear();
}
manager.setStore(table, null);
}
示例3: removeAll
import org.hsqldb.lib.ArrayUtil; //导入方法依赖的package包/类
public void removeAll() {
destroy();
setTimestamp(0);
elementCount.set(0);
ArrayUtil.fillArray(accessorList, null);
}
示例4: release
import org.hsqldb.lib.ArrayUtil; //导入方法依赖的package包/类
public void release() {
destroy();
setTimestamp(0);
elementCount.set(0);
ArrayUtil.fillArray(accessorList, null);
}
示例5: changeToDiskTable
import org.hsqldb.lib.ArrayUtil; //导入方法依赖的package包/类
public final void changeToDiskTable(Session session) {
cache =
((PersistentStoreCollectionSession) manager).getSessionDataCache();
if (cache != null) {
tableSpace = cache.spaceManager.getTableSpace(
DataSpaceManager.tableIdDefault);
IndexAVL idx = (IndexAVL) indexList[0];
NodeAVL root = (NodeAVL) accessorList[0];
RowIterator iterator = table.rowIterator(this);
ArrayUtil.fillArray(accessorList, null);
elementCount.set(0);
isCached = true;
cache.adjustStoreCount(1);
while (iterator.hasNext()) {
Row row = iterator.getNextRow();
Row newRow = (Row) getNewCachedObject(session, row.getData(),
false);
indexRow(session, newRow);
}
idx.unlinkNodes(root);
}
maxMemoryRowCount = Integer.MAX_VALUE;
}
示例6: removeAll
import org.hsqldb.lib.ArrayUtil; //导入方法依赖的package包/类
public void removeAll() {
destroy();
elementCount.set(0);
ArrayUtil.fillArray(accessorList, null);
}
示例7: removeAll
import org.hsqldb.lib.ArrayUtil; //导入方法依赖的package包/类
public void removeAll() {
elementCount.set(0);
cache.spaceManager.freeTableSpace(tableSpace.getSpaceID());
ArrayUtil.fillArray(accessorList, null);
}
示例8: addAllColumns
import org.hsqldb.lib.ArrayUtil; //导入方法依赖的package包/类
public void addAllColumns() {
if (usedColumns != null) {
ArrayUtil.fillArray(usedColumns, true);
}
}
示例9: removeAll
import org.hsqldb.lib.ArrayUtil; //导入方法依赖的package包/类
public void removeAll() {
rowIdMap.clear();
ArrayUtil.fillArray(accessorList, null);
}
示例10: release
import org.hsqldb.lib.ArrayUtil; //导入方法依赖的package包/类
public void release() {
ArrayUtil.fillArray(accessorList, null);
table.database.logger.closeTextCache((Table) table);
cache = null;
}
示例11: 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);
}
示例12: setAttribute
import org.hsqldb.lib.ArrayUtil; //导入方法依赖的package包/类
private void setAttribute(Object property, int id) throws HsqlException {
resultOut.setResultType(ResultConstants.SETSESSIONATTR);
ArrayUtil.fillArray(resultOut.rRoot.data, null);
resultOut.rRoot.data[id] = property;
Result resultIn = execute(resultOut);
if (resultIn.isError()) {
throw Trace.error(resultIn);
}
}
示例13: setAttribute
import org.hsqldb.lib.ArrayUtil; //导入方法依赖的package包/类
private void setAttribute(Object property, int id) throws HsqlException {
resultOut.setResultType(ResultConstants.SETSESSIONATTR);
ArrayUtil.fillArray(resultOut.rRoot.data, null);
resultOut.rRoot.data[id] = property;
Result resultIn = execute(resultOut);
if (resultIn.mode == ResultConstants.ERROR) {
throw Trace.error(resultIn);
}
}
示例14: clearCalls
import org.hsqldb.lib.ArrayUtil; //导入方法依赖的package包/类
void clearCalls() {
TriggerClass.callCount = 0;
ArrayUtil.fillArray(TriggerClass.callCounts, 0);
}
示例15: 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);
}