本文整理汇总了Java中org.hsqldb.lib.Set类的典型用法代码示例。如果您正苦于以下问题:Java Set类的具体用法?Java Set怎么用?Java Set使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Set类属于org.hsqldb.lib包,在下文中一共展示了Set类的17个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getUserDefinedPropertyData
import org.hsqldb.lib.Set; //导入依赖的package包/类
public Set getUserDefinedPropertyData() {
Set set = new HashSet();
Iterator it = dbMeta.values().iterator();
while (it.hasNext()) {
Object[] row = (Object[]) it.next();
if (((Integer) row[HsqlProperties.indexType]).intValue()
== SQL_PROPERTY) {
set.add(row);
}
}
return set;
}
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:17,代码来源:HsqlDatabaseProperties.java
示例2: collectObjectNames
import org.hsqldb.lib.Set; //导入依赖的package包/类
public void collectObjectNames(Set set) {
for (int i = 0; i < indexStartAggregates; i++) {
exprColumns[i].collectObjectNames(set);
}
if (queryCondition != null) {
queryCondition.collectObjectNames(set);
}
if (havingCondition != null) {
havingCondition.collectObjectNames(set);
}
for (int i = 0, len = rangeVariables.length; i < len; i++) {
HsqlName name = rangeVariables[i].getTable().getName();
set.add(name);
}
}
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:21,代码来源:QuerySpecification.java
示例3: visibleGrantees
import org.hsqldb.lib.Set; //导入依赖的package包/类
/**
* Iteration of all visible grantees, including self. <p>
*
* For grantees with admin, this is all grantees.
* For regular grantees, this is self plus all roles granted directly
* or indirectly
*/
public Set visibleGrantees() {
HashSet grantees = new HashSet();
GranteeManager gm = granteeManager;
if (isAdmin()) {
grantees.addAll(gm.getGrantees());
} else {
grantees.add(this);
Iterator it = getAllRoles().iterator();
while (it.hasNext()) {
grantees.add(it.next());
}
}
return grantees;
}
开发者ID:s-store,项目名称:sstore-soft,代码行数:27,代码来源:Grantee.java
示例4: collectRangeVariables
import org.hsqldb.lib.Set; //导入依赖的package包/类
/**
* collects all range variables in expression tree
*/
void collectRangeVariables(RangeVariable[] rangeVariables, Set set) {
for (int i = 0; i < nodes.length; i++) {
if (nodes[i] != null) {
nodes[i].collectRangeVariables(rangeVariables, set);
}
}
if (subQuery != null && subQuery.queryExpression != null) {
HsqlList unresolvedExpressions =
subQuery.queryExpression.getUnresolvedExpressions();
if (unresolvedExpressions != null) {
for (int i = 0; i < unresolvedExpressions.size(); i++) {
Expression e = (Expression) unresolvedExpressions.get(i);
e.collectRangeVariables(rangeVariables, set);
}
}
}
}
开发者ID:s-store,项目名称:sstore-soft,代码行数:25,代码来源:Expression.java
示例5: collectRangeVariables
import org.hsqldb.lib.Set; //导入依赖的package包/类
/**
* collects all range variables in expression tree
*/
void collectRangeVariables(RangeVariable[] rangeVariables, Set set) {
for (int i = 0; i < nodes.length; i++) {
if (nodes[i] != null) {
nodes[i].collectRangeVariables(rangeVariables, set);
}
}
if (rangeVariable != null) {
for (int i = 0; i < rangeVariables.length; i++) {
if (rangeVariables[i] == rangeVariable) {
set.add(rangeVariables[i]);
}
}
}
}
开发者ID:s-store,项目名称:sstore-soft,代码行数:20,代码来源:ExpressionColumn.java
示例6: setToString
import org.hsqldb.lib.Set; //导入依赖的package包/类
public String setToString(Set set) {
// Should be sorted
// Iterator it = (new java.util.TreeSet(roles)).iterator();
Iterator it = set.iterator();
StringBuffer sb = new StringBuffer();
while (it.hasNext()) {
if (sb.length() > 0) {
sb.append(',');
}
sb.append(it.next());
}
return sb.toString();
}
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:18,代码来源:Grantee.java
示例7: collectRangeVariables
import org.hsqldb.lib.Set; //导入依赖的package包/类
/**
* collects all range variables in expression tree
*/
void collectRangeVariables(RangeVariable[] rangeVariables, Set set) {
for (int i = 0; i < nodes.length; i++) {
if (nodes[i] != null) {
nodes[i].collectRangeVariables(rangeVariables, set);
}
}
if (rangeVariable != null) {
for (int i = 0; i < rangeVariables.length; i++) {
if (rangeVariables[i] == rangeVariable) {
set.add(rangeVariable);
break;
}
}
}
}
开发者ID:RabadanLab,项目名称:Pegasus,代码行数:22,代码来源:ExpressionColumn.java
示例8: collectObjectNames
import org.hsqldb.lib.Set; //导入依赖的package包/类
/**
* collects all schema objects
*/
void collectObjectNames(Set set) {
for (int i = 0; i < nodes.length; i++) {
if (nodes[i] != null) {
nodes[i].collectObjectNames(set);
}
}
if (table != null) {
if (table.queryExpression != null) {
table.queryExpression.collectObjectNames(set);
}
}
}
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:18,代码来源:Expression.java
示例9: collectObjectNames
import org.hsqldb.lib.Set; //导入依赖的package包/类
void collectObjectNames(Set set) {
switch (opType) {
case OpTypes.SEQUENCE :
HsqlName name = sequence.getName();
set.add(name);
return;
case OpTypes.MULTICOLUMN :
case OpTypes.DYNAMIC_PARAM :
case OpTypes.ASTERISK :
case OpTypes.SIMPLE_COLUMN :
case OpTypes.COALESCE :
break;
case OpTypes.PARAMETER :
case OpTypes.VARIABLE :
break;
case OpTypes.COLUMN :
set.add(column.getName());
if (column.getName().parent != null) {
set.add(column.getName().parent);
}
return;
}
}
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:33,代码来源:ExpressionColumn.java
示例10: getColumnNames
import org.hsqldb.lib.Set; //导入依赖的package包/类
public void getColumnNames(boolean[] columnCheckList, Set set) {
for (int i = 0; i < columnCheckList.length; i++) {
if (columnCheckList[i]) {
set.add(((ColumnSchema) columnList.get(i)).getName());
}
}
}
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:9,代码来源:Table.java
示例11: collectObjectNames
import org.hsqldb.lib.Set; //导入依赖的package包/类
public void collectObjectNames(Set set) {
leftQueryExpression.collectObjectNames(set);
if (rightQueryExpression != null) {
rightQueryExpression.collectObjectNames(set);
}
}
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:9,代码来源:QueryExpression.java
示例12: collectObjectNames
import org.hsqldb.lib.Set; //导入依赖的package包/类
void collectObjectNames(Set set) {
set.add(column.getName());
if (column.getName().parent != null) {
set.add(column.getName().parent);
}
}
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:9,代码来源:ExpressionColumnAccessor.java
示例13: getUserDefinedPropertyData
import org.hsqldb.lib.Set; //导入依赖的package包/类
public Set getUserDefinedPropertyData() {
Set set = new HashSet();
Iterator it = meta.values().iterator();
while (it.hasNext()) {
Object[] row = (Object[]) it.next();
if (((Integer) row[indexType]).intValue() == SET_PROPERTY) {
set.add(row);
}
}
return set;
}
开发者ID:s-store,项目名称:sstore-soft,代码行数:16,代码来源:HsqlDatabaseProperties.java
示例14: nonReservedVisibleGrantees
import org.hsqldb.lib.Set; //导入依赖的package包/类
/**
* Set of all non-reserved visible grantees, including self. <p>
*
* For grantees with admin, this is all grantees.
* For regular grantees, this is self plus all roles granted directly
* or indirectly. <P>
*
* @param andPublic when <tt>true</tt> retains the reserved PUBLIC grantee
*/
public Set nonReservedVisibleGrantees(boolean andPublic) {
Set grantees = visibleGrantees();
GranteeManager gm = granteeManager;
grantees.remove(gm.dbaRole);
grantees.remove(GranteeManager.systemAuthorisation);
if (!andPublic) {
grantees.remove(gm.publicRole);
}
return grantees;
}
开发者ID:s-store,项目名称:sstore-soft,代码行数:24,代码来源:Grantee.java
示例15: collectObjectNames
import org.hsqldb.lib.Set; //导入依赖的package包/类
/**
* collects all range variables in expression tree
*/
void collectObjectNames(Set set) {
for (int i = 0; i < nodes.length; i++) {
if (nodes[i] != null) {
nodes[i].collectObjectNames(set);
}
}
if (subQuery != null) {
if (subQuery.queryExpression != null) {
subQuery.queryExpression.collectObjectNames(set);
}
}
}
开发者ID:s-store,项目名称:sstore-soft,代码行数:18,代码来源:Expression.java
示例16: collectRangeVariables
import org.hsqldb.lib.Set; //导入依赖的package包/类
void collectRangeVariables(RangeVariable[] rangeVars, Set set) {
for (int i = 0; i < indexStartAggregates; i++) {
exprColumns[i].collectRangeVariables(rangeVars, set);
}
if (queryCondition != null) {
queryCondition.collectRangeVariables(rangeVars, set);
}
if (havingCondition != null) {
havingCondition.collectRangeVariables(rangeVars, set);
}
}
开发者ID:s-store,项目名称:sstore-soft,代码行数:15,代码来源:QuerySpecification.java
示例17: collectObjectNames
import org.hsqldb.lib.Set; //导入依赖的package包/类
public void collectObjectNames(Set set) {
for (int i = 0; i < indexStartAggregates; i++) {
exprColumns[i].collectObjectNames(set);
}
if (queryCondition != null) {
queryCondition.collectObjectNames(set);
}
if (havingCondition != null) {
havingCondition.collectObjectNames(set);
}
}
开发者ID:s-store,项目名称:sstore-soft,代码行数:15,代码来源:QuerySpecification.java
注:本文中的org.hsqldb.lib.Set类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论