本文整理汇总了Java中org.hsqldb.lib.WrapperIterator类的典型用法代码示例。如果您正苦于以下问题:Java WrapperIterator类的具体用法?Java WrapperIterator怎么用?Java WrapperIterator使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
WrapperIterator类属于org.hsqldb.lib包,在下文中一共展示了WrapperIterator类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: schemaObjectIterator
import org.hsqldb.lib.WrapperIterator; //导入依赖的package包/类
Iterator schemaObjectIterator(int type) {
switch (type) {
case SchemaObject.SEQUENCE :
return sequenceLookup.map.values().iterator();
case SchemaObject.TABLE :
case SchemaObject.VIEW :
return tableLookup.map.values().iterator();
case SchemaObject.CHARSET :
return charsetLookup.map.values().iterator();
case SchemaObject.COLLATION :
return collationLookup.map.values().iterator();
case SchemaObject.PROCEDURE :
return procedureLookup.map.values().iterator();
case SchemaObject.FUNCTION :
return functionLookup.map.values().iterator();
case SchemaObject.ROUTINE :
Iterator functions = functionLookup.map.values().iterator();
return new WrapperIterator(
functions, procedureLookup.map.values().iterator());
case SchemaObject.SPECIFIC_ROUTINE :
return specificRoutineLookup.map.values().iterator();
case SchemaObject.DOMAIN :
case SchemaObject.TYPE :
return typeLookup.map.values().iterator();
case SchemaObject.ASSERTION :
return assertionLookup.map.values().iterator();
case SchemaObject.TRIGGER :
return triggerLookup.map.values().iterator();
case SchemaObject.REFERENCE :
return referenceLookup.map.values().iterator();
case SchemaObject.INDEX :
return indexLookup.map.values().iterator();
case SchemaObject.CONSTRAINT :
return constraintLookup.map.values().iterator();
default :
throw Error.runtimeError(ErrorCode.U_S0500, "Schema");
}
}
示例2: schemaObjectIterator
import org.hsqldb.lib.WrapperIterator; //导入依赖的package包/类
Iterator schemaObjectIterator(int type) {
switch (type) {
case SchemaObject.SEQUENCE :
return sequenceLookup.map.values().iterator();
case SchemaObject.TABLE :
case SchemaObject.VIEW :
return tableLookup.map.values().iterator();
case SchemaObject.STREAM :
return streamLookup.map.values().iterator();
case SchemaObject.CHARSET :
return charsetLookup.map.values().iterator();
case SchemaObject.COLLATION :
return collationLookup.map.values().iterator();
case SchemaObject.PROCEDURE :
return procedureLookup.map.values().iterator();
case SchemaObject.FUNCTION :
return functionLookup.map.values().iterator();
case SchemaObject.ROUTINE :
Iterator functions = functionLookup.map.values().iterator();
return new WrapperIterator(
functions, procedureLookup.map.values().iterator());
case SchemaObject.DOMAIN :
case SchemaObject.TYPE :
return typeLookup.map.values().iterator();
case SchemaObject.ASSERTION :
return assertionLookup.map.values().iterator();
case SchemaObject.TRIGGER :
return triggerLookup.map.values().iterator();
case SchemaObject.INDEX :
case SchemaObject.CONSTRAINT :
default :
throw Error.runtimeError(ErrorCode.U_S0500, "SchemaManager");
}
}
示例3: schemaObjectIterator
import org.hsqldb.lib.WrapperIterator; //导入依赖的package包/类
Iterator schemaObjectIterator(int type) {
switch (type) {
case SchemaObject.SEQUENCE :
return sequenceLookup.map.values().iterator();
case SchemaObject.TABLE :
case SchemaObject.VIEW :
return tableLookup.map.values().iterator();
case SchemaObject.CHARSET :
return charsetLookup.map.values().iterator();
case SchemaObject.COLLATION :
return collationLookup.map.values().iterator();
case SchemaObject.PROCEDURE :
return procedureLookup.map.values().iterator();
case SchemaObject.FUNCTION :
return functionLookup.map.values().iterator();
case SchemaObject.ROUTINE :
Iterator functions = functionLookup.map.values().iterator();
return new WrapperIterator(
functions, procedureLookup.map.values().iterator());
case SchemaObject.SPECIFIC_ROUTINE :
return specificRoutineLookup.map.values().iterator();
case SchemaObject.DOMAIN :
case SchemaObject.TYPE :
return typeLookup.map.values().iterator();
case SchemaObject.ASSERTION :
return assertionLookup.map.values().iterator();
case SchemaObject.TRIGGER :
return triggerLookup.map.values().iterator();
case SchemaObject.INDEX :
return indexLookup.map.values().iterator();
case SchemaObject.CONSTRAINT :
return constraintLookup.map.values().iterator();
default :
throw Error.runtimeError(ErrorCode.U_S0500, "Schema");
}
}
示例4: fullSchemaNamesIterator
import org.hsqldb.lib.WrapperIterator; //导入依赖的package包/类
/**
* Iterator includes INFORMATION_SCHEMA
*/
Iterator fullSchemaNamesIterator() {
return new WrapperIterator(new WrapperIterator(INFORMATION_SCHEMA),
schemaMap.keySet().iterator());
}
示例5: allTables
import org.hsqldb.lib.WrapperIterator; //导入依赖的package包/类
/**
* Retrieves an enumeration over all of the tables in this database.
* This means all user tables, views, system tables, system views,
* including temporary and text tables. <p>
*
* @return an enumeration over all of the tables in this database
*/
protected final Iterator allTables() {
return new WrapperIterator(
database.schemaManager.databaseObjectIterator(SchemaObject.TABLE),
new WrapperIterator(sysTables, true));
}
示例6: getAllDirectFullRights
import org.hsqldb.lib.WrapperIterator; //导入依赖的package包/类
public Iterator getAllDirectFullRights(SchemaObject object) {
Grantee owner = object.getOwner();
if (owner == this) {
return new WrapperIterator(ownerRights);
}
return directRightsMap.get(object.getName());
}
示例7: iterateCatalogNames
import org.hsqldb.lib.WrapperIterator; //导入依赖的package包/类
/**
* Retrieves an <code>Iterator</code> whose elements form the set of
* distinct names of all visible catalogs, relative to this object's
* database. <p>
*
* If catalog reporting is turned off, then the empty Iterator is
* returned. <p>
*
* <b>Note:</b> in the present implementation, if catalog reporting is
* turned on, then the iteration consists of a single element that is the
* uri of this object's database; HSQLDB currently does not support the
* concept a single engine hosting multiple catalogs. <p>
*
* @return An Iterator whose elements are <code>String</code> objects
* naming all visible catalogs, relative to this object's database.
*/
Iterator iterateCatalogNames() {
return catalogName == null ? new WrapperIterator()
: new WrapperIterator(catalogName);
}
示例8: allTables
import org.hsqldb.lib.WrapperIterator; //导入依赖的package包/类
/**
* Retrieves an enumeration over all of the tables in this database.
* This means all user tables, views, system tables, system views,
* including temporary and text tables. <p>
*
* @return an enumeration over all of the tables in this database
*/
protected final Iterator allTables() {
return new WrapperIterator(database.getTables().iterator(),
new WrapperIterator(sysTables, true));
}
示例9: iterateCatalogNames
import org.hsqldb.lib.WrapperIterator; //导入依赖的package包/类
/**
* Retrieves an <code>Iterator</code> whose elements form the set of
* distinct names of all visible catalogs, relative to this object's
* database. <p>
*
* If catalog reporting is turned off, then the empty Iterator is
* returned. <p>
*
* <b>Note:</b> in the present implementation, if catalog reporting is
* turned on, then the iteration consists of a single element that is the
* uri of this object's database; HSQLDB currently does not support the
* concept a single engine hosting multiple catalogs. <p>
*
* @return An Iterator whose elements are <code>String</code> objects
* naming all visible catalogs, relative to this object's database.
* @throws HsqlException never (reserved for future use)
*/
Iterator iterateCatalogNames() throws HsqlException {
return isReportCatalogs() ? new WrapperIterator(catalogName)
: new WrapperIterator();
}
示例10: iterateSysSchemaNames
import org.hsqldb.lib.WrapperIterator; //导入依赖的package包/类
/**
* Retrieves an <code>Iterator</code> object whose elements form the set
* of distinct names of system schemas visible in this object's
* database. <p>
*
* If schema reporting is turned off, then the empty Iterator is
* returned. <p>
*
* @return An <code>Iterator</code> whose elements are <code>String</code>
* objects naming the system schemas
* @throws HsqlException never (reserved for future use)
*/
Iterator iterateSysSchemaNames() throws HsqlException {
return isReportSchemas() ? sysSchemas.iterator()
: new WrapperIterator();
}
示例11: allTables
import org.hsqldb.lib.WrapperIterator; //导入依赖的package包/类
/**
* Retrieves an enumeration over all of the tables in this database.
* This means all user tables, views, system tables, system views,
* including temporary and text tables. <p>
*
* @return an enumeration over all of the tables in this database
*/
protected final Iterator allTables() {
return new WrapperIterator(database.schemaManager.allTablesIterator(),
new WrapperIterator(sysTables, true));
}