本文整理汇总了Java中org.hsqldb.lib.ArrayUtil.containsAllTrueElements方法的典型用法代码示例。如果您正苦于以下问题:Java ArrayUtil.containsAllTrueElements方法的具体用法?Java ArrayUtil.containsAllTrueElements怎么用?Java ArrayUtil.containsAllTrueElements使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.hsqldb.lib.ArrayUtil
的用法示例。
在下文中一共展示了ArrayUtil.containsAllTrueElements方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getIndexForColumns
import org.hsqldb.lib.ArrayUtil; //导入方法依赖的package包/类
/**
* Used for TableFilter to get an index for the columns
*/
Index getIndexForColumns(boolean[] columnCheck) {
Index indexChoice = null;
int colCount = 0;
for (int i = 0; i < indexList.length; i++) {
Index index = indexList[i];
boolean result = ArrayUtil.containsAllTrueElements(columnCheck,
index.colCheck);
if (result && index.getVisibleColumns() > colCount) {
colCount = index.getVisibleColumns();
indexChoice = index;
}
}
return indexChoice;
}
示例2: setConditions
import org.hsqldb.lib.ArrayUtil; //导入方法依赖的package包/类
/**
* Chooses certain query conditions and assigns a copy of them to this
* filter. The original condition is set to Expression.TRUE once assigned.
*
* @param condition
*
* @throws HsqlException
*/
void setConditions(Expression condition) throws HsqlException {
setCondition(condition);
if (filterIndex == null) {
filterIndex = filterTable.getPrimaryIndex();
}
if (filterIndex.getVisibleColumns() == 1 || eStart == null
|| eAnd == null || eStart.exprType != Expression.EQUAL) {
return;
}
boolean[] check = filterTable.getNewColumnCheckList();
Expression[] expr = new Expression[check.length];
int colindex = eStart.getArg().getColumnNr();
check[colindex] = true;
expr[colindex] = eStart.getArg2();
eAnd.getEquiJoinColumns(this, check, expr);
if (ArrayUtil.containsAllTrueElements(check, filterIndex.colCheck)) {
isMultiFindFirst = true;
findFirstExpressions = expr;
}
}
示例3: setConditions
import org.hsqldb.lib.ArrayUtil; //导入方法依赖的package包/类
/**
* Chooses certain query conditions and assigns a copy of them to this
* filter. The original condition is set to Expression.TRUE once assigned.
*
* @param condition
*
* @throws HsqlException
*/
void setConditions(Session session,
Expression condition) throws HsqlException {
setCondition(session, condition);
if (filterIndex == null) {
filterIndex = filterTable.getPrimaryIndex();
}
if (filterIndex.getVisibleColumns() == 1 || eStart == null
|| eAnd == null || eStart.exprType != Expression.EQUAL) {
return;
}
boolean[] check = filterTable.getNewColumnCheckList();
Expression[] expr = new Expression[check.length];
int colindex = eStart.getArg().getColumnNr();
check[colindex] = true;
expr[colindex] = eStart.getArg2();
eAnd.getEquiJoinColumns(this, check, expr);
if (ArrayUtil.containsAllTrueElements(check, filterIndex.colCheck)) {
isMultiFindFirst = true;
findFirstExpressions = expr;
}
}